[osg-users] Image containing floats

David Heitbrink david-heitbrink at uiowa.edu
Thu Sep 20 14:07:49 PDT 2018


yes this is doable. You need to set the internal format to something like: GL_RGBA32F

and the source type to float on your texture.

You might look at the OSG forest example, and its use of osg::TextureBuffer. Basically with the forest example, its doing instancing where the transforms are loaded into a texture, and the data is used in the vertex shader.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74954#74954







More information about the osg-users mailing list