Hi Nilix,
I've successfully displayed an image in a HUD taking the following general 
approach:

create an osg::geometry
set the vertices based on the image size
create an osg::Texture2D
create an osg::Vec2Array for texture coordinates
call setTexCoordArray on the osg::geometry
add the osg::geometry to a parent osg::Geode
create a stateset on the geometry and call setTextureAttributeAndModes with the 
above texture

HTH

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to