Hi,

During development of a new shader-based point-rendering system I started 
getting "INVALID_OPERATION at start of State::apply(StateSet*)" for the first 
rendered frame (subsequent frames are OK).

The scene consists of a geode, shapedrawable box (no stateset/fixed function 
pipeline) and the point rendering node (shader pipeline) both under the same 
parent group. When rendering, the box is drawn before the points.

It turned out to be due to my point shader being active for the box. The shader 
becomes active (by mistake?) as a result of the renderer calling compile().

Adding a stateset to the box node with an empty program fixes the issue since 
it forces fixed function into effect before drawing the box.

It would be nice to avoid this initial INVALID_OPERATION message.

Has anyone else encountered this or something similar? It looks like a bug to 
me. What do you think?

Thank you!

Cheers,
Michael

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57951#57951





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

Reply via email to