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 you'll need
to use two or more osg::Geometry.

Robert.

On Wed, Sep 1, 2010 at 12:13 AM, Andrew Cunningham <[email protected]> 
wrote:
> 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.
>
> Is there any straightforward way of rendering the LINES only without lighting 
> or is the only way to move them to their own osg::Geometry object.
>
> Is their some way of using BIND_PER_PRIMITIVE_SET to achieve this?
>
> Andrew
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=31231#31231
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to