GetFrameImage in float buffer instead of BYTE buffer
Posted: Wed Jun 24, 2009 1:03 pm
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.
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.