HI Paul,

You need to a make sure all your osg::Geometry have a colour array
attached, otherwise colours will bleed into one another.

Robert.

On 11/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello,

I have a minor problem that I am sure that somebody has encountered before
although I could not immediately find a solution in the archives.

I do a lot of dynamically created geometry and when my scenegraph looks
something like this (extremely simplified):

                       |
       +---------------+--------------+
       |               |              |
  loaded geom    dynamic geom    loaded geom

the color information from the dynamically created geometry -- set with
geom->setColorBinding(osg::Geometry::BIND_OVERALL) -- shows up in the
color of the second loaded geometry, even though the second loaded
geometry does have a material associated with it.

Of course I can "fix" the problem by moving the dynamic geometry node to
the right of the second loaded geometry, but that is really only a
temporary fix as later development will make this order no longer
determinant. I am thinking there is some sort of way to "pop" the color
state when traversing the scenegraph, but for the life of me I am not
finding it.

So any help with this or pointers to solving this problem would be greatly
appreciated. I am sure I a missing something very simple.

--
Paul Sherman
SimQuest



_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to