I'm trying to use OptiTrack SDK in Unity, but since I can only get the Texture buffer in float form (from 0.0 to 1.0 instead of BYTE from 0 to 255). Is there a function to get the frame image in the float form? Or what do you recommend to do the conversion? Since doing a for statement for the entire image is running very slow.
2 posts • Page 1 of 1
There isn't a function available to render the image into floats in the OptiTrack SDK. We don't have any recommendations on an optimal conversion of unsigned char arrays to floats, but there might be some information available at programming specific sites.