J-S wrote:
> 
> I (and probably Robert too) thought you wanted to change the value of a 
> Uniform in mid-traversal...
> 


While it is true that one cannot affect the values of uniforms during a 
rendering pass in the default OSG implementation, there is nothing preventing 
one from changing the values of uniforms while rendering out any single 
geometry object in general. It's just that in OSG, one would require a custom 
drawImplementation (and explicitly bind/apply the uniform as well as set it).

Now, you can't change a uniform during a single OpenGL "traversal", of course 
(i.e., between glBegin() and glEnd()), but there is nothing stopping you from 
changing a uniform at any other time. If a single "object" is broken into 
several glBegin()/glEnd() sections for a given rendering pass, it is perfectly 
acceptable to change the value of a uniform in between each individual section.

------------------------
Matthew W Fuesz
Software Engineer Asc
Lockheed Martin STS

------------------
Read this topic online here:
http://osgforum.tevs.eu/viewtopic.php?p=4909#4909





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to