Folks,
I'm trying to setup my scene so that every "thing" can be rendered using
fixed function, simple shaders, complex shaders. I've created a switch with
3 children (fixed, simple, complex) and each child has the "thing" as it's
child.
switch
fixed group without shaders
thing
simple group with simple shader
thing
complex group with complex shader
thing
I create statesets for each child and add the appropriate program/shaders
to the simple and complex statesets.
I set the switch initial state to use the fixed child so that the "thing"s
ive file can be viewed in osgviewer.
It works fine in my app, but when I bring it up in osgviewer it's black.
When I remove the shaders from simple/complex, and resave the ive file it
looks fine.
Why does the presence of the shaders on the switch's other children change
how osgviewer works?
Brian
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org