GetFrameImage in float buffer instead of BYTE buffer

Post Reply
Veehmot
Posts: 10
Joined: Fri Mar 06, 2009 5:28 am

GetFrameImage in float buffer instead of BYTE buffer

Post by Veehmot » 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.

Birch
Posts: 1139
Joined: Thu Jan 30, 2003 5:00 am
Location: Corvallis, Oregon

Re: GetFrameImage in float buffer instead of BYTE buffer

Post by Birch » Wed Jun 24, 2009 1:33 pm

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.

Post Reply