Hi,

I used the rendering hint to draw different objects in different order in my
scene graph.

 

In short, I set a rendering hint = 0 for the state set associated to a geode
containing an opaque object (the depth test is enabled).

Then, since I want to draw anti-aliased lines over that object, I set a
state set for a geode containing a line.

This state set basically has the blending enabled, and the depth test
enabled but with the depth mask = false (to avoid visual artifacts

in the junctions of adjacent segments of the line).

This is the issue:

If I used a rendering hint = 99 for such a state set, all would work fine
(the opaque object partially hides the line).

But if I used a rendering hint = 100 for the same state set, the line would
appear over the opaque object, even if it is behind (it looks like the depth
test has been disabled).

 

So, my question is: is the value for a rendering hint limited to 99?

If so, what happens if I used higher values? Unpredictable results?

 

Thanks in advance

Gianluca

 

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

Reply via email to