Re: Java3D to Jogamp Ardor3D Continuation...
Posted by
ThomasR on
Dec 12, 2016; 5:13pm
URL: https://forum.jogamp.org/Java3D-to-Jogamp-Ardor3D-Continuation-tp4036855p4037519.html
Thanks this works! I think the above is older documentation, so I used com.ardor3d.renderer.state.OffsetState with
a unit=1f and a factor=1.
I noticed in this class there's support for LINE and POINT offset but from OpenGL doc:
While polygon offset can alter the depth value of filled primitives in point and line mode, under no circumstances will polygon offset affect the depth values of GL_POINTS, GL_LINES, GL_LINE_STRIP, or GL_LINE_LOOP primitives. If you are trying to render point or line primitives over filled primitives, use polygon offset to push the filled primitives back. (It can't be used to pull the point and line primitives forward.)
And indeed noticed no effect for LINE type. Does Jogamp's Ardor3D Continuation do something else under the hood?
Tom