On 1/13/2011 3:27 AM, Robert Osfield wrote:
Object linear TexGen isn't positional state so can be applied in the normal way and you have multiple of these per stage without problem.
Ah! Thanks, this was my problem. I mistakenly thought OpenGL transformed the object planes by the modelview matrix, and I was trying to set up an OSG scene graph to do that. My mistake. So I use TexGenNode to transform the eye planes, and for OBJECT_LINEAR I just attach the TexGen to a StateSet like any other StateAttribute. This works great!
(Sheesh, I go off an code in shaders for a couple years, and I forget everything I ever knew about the FFP...)
Thanks Robert! -Paul _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

