Hi,

Use "setVertexArray" method of Quad. Set four sides of Quad with Vect3Array. 

vertices->push_back( osg::Vec3(-0.250f, 0.0f,-0.250f) );
vertices->push_back( osg::Vec3( 0.250f, 0.0f,-0.250f) );
vertices->push_back( osg::Vec3( 0.250f, 0.0f, 0.250f) );
vertices->push_back( osg::Vec3(-0.250f, 0.0f, 0.250f) );

Numbers may chage on your screen. Use the color array to fill wiht color.


... 

Thank you!

Cheers,
wiz

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




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

Reply via email to