Page 1 of 1

GetFrameImage in float buffer instead of BYTE buffer

Posted: Wed Jun 24, 2009 1:03 pm
by Veehmot
Hello,

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.

Best regards,
Jorge.

Re: GetFrameImage in float buffer instead of BYTE buffer

Posted: Wed Jun 24, 2009 1:33 pm
by Birch
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.