Manually set normal vectors are ignored for backface culling
Posted by
Schorsch on
Jul 27, 2015; 9:22am
URL: https://forum.jogamp.org/Manually-set-normal-vectors-are-ignored-for-backface-culling-tp4034976.html
Hi there,
if I set the vertices' normal vectors manually during creation of a GeometryArray, should those normal vectors not be used for the backface culling, too?
However, when I enable backface culling, java3d seems to determine the normals automatically (right-hand-rule, anti-clockwise vertices order, etc.) and apply those normals regardless of the previously manually set normal vectors. Is that a bug or have I missed anything?
See the small sample file attached, which visualizes the problem.
CullingTest.javaMy difficulty is that I have a lot of legacy code which sets the normal vectors manually and now I want to render these objects with correct backface culling.
Thanks a lot in advance,
Schorsch