Hi everyone. In a program I'm using some FBOs that correctly render to
float-16 textures (setInternalFormat(GL_RGBA16F_ARB)). But I need to create,
via a C function, a float 16 texture (Image) and write it to a file. The
texture must contain float values between 0.0 and 1.0 and it's used to
split the other textures it renders with in the FBO (used as indices for
accessing the other textures and reorder the pixels in the output).
If I work with float 32 textures all is working and I create the texture
file, the one containing those indices, writing GLfloat variables to a file.
But how can I write to a binary file 16-bit floating values? I read that
there's an OpenGL extension that should add the "half" GL data type (
http://www.nvidia.com/dev_content/nvopenglspecs/GL_ARB_half_float_pixel.txt)...butI
didn't succed in including it in any way. Anyone has already used this
or
another type of variable to write float 16 values to a file?
Thanx
Erik
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users