Re: [osg-users] Rendering each primitive set differently in one osg::Geometry?

2010-09-01 Thread Robert Osfield
Hi Andrew, You can't toggle on and off state from with a single osg::Geometry, it's been designed to have just one value of OpenGL state throughout it's operation, only vertex attributes can be changed from within one geometry object. So if you want some parts light, and other parts not then

Re: [osg-users] Rendering each primitive set differently in one osg::Geometry?

2010-09-01 Thread Andrew Cunningham
Hi Robert, I thought that was probably the case I had QUADS/TRIS/LINES in one geometry to centralize some moderately painful picking by primitive index logic. Oh well, back to the picking drawing board... Thanks -- Read this topic online here:

[osg-users] Rendering each primitive set differently in one osg::Geometry?

2010-08-31 Thread Andrew Cunningham
Hi, I am rendering three separate primitive sets of TRIS,QUADS and LINES in one osg::Geometry object. I am rendering them using BIND_PER_PRIMITIVE of the normals with lighting enabled. Lighting of lines is not really very useful and it would be better to render the lines only in solid color.