Re: JOGL + Swing + Multiple viewports
Posted by
Wilds on
Jan 18, 2018; 10:35am
URL: https://forum.jogamp.org/JOGL-Swing-Multiple-viewports-tp4038537p4038553.html
Here some code and a picture of my problem (two cubes next to each other):

This code is copied and pasted into an image and should be read as pseudo code.
Depth test with LESS and CW backface culling are enabled.
This is test code and I know that creating new instances of my vector is not the way to do it and does not belong in this class. (will become a mesh class in the future)
The problem is that my east side polygon for a cube is drawn over the top and front polygons! I tried different depth test settings but to no avail. (this does not happen with the cube on the west, -x axis)