Andrew, I would recommend converting your glBegin/glEnd code to use native osg drawing constructs (geode,geometry,primitives,...). Check out the osggeometry example.
Brian This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. • -----osg-users-boun...@lists.openscenegraph.org wrote: ----- To: osg-users@lists.openscenegraph.org From: "Andrew Thompson" <andyb1...@yahoo.co.uk> Sent by: osg-users-boun...@lists.openscenegraph.org Date: 08/07/2009 10:57AM Subject: Re: [osg-users] Infinite Grid in OSG Ok, so I could use a HUD and attach behind my scene - clever, I like it :-) Now the question is, how do I get access to just glBegin/glEnd? I was thinking of creating a class that inherits ShapeDrawable and just rendering my lines (I have found some legacy code that calculates the lines and subdivisions using simple GL calls). However I realised that was a stupid idea as Shapes do not draw themselves, but ShapeDrawable draws them, so I assume that a custom shape will not get rendered. Thank you! Andrew ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15962#15962 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org