Login  Register

Re: Problem with displaying the line segments

Posted by world on Apr 26, 2017; 9:45pm
URL: https://forum.jogamp.org/Problem-with-displaying-the-line-segments-tp4037890p4037900.html

Thank you for your large investigation.
My expected graphics on previous java3d-1.5.2 looks as on your first row of images (called "non transparent pass"),
where the lines are entirely white and sharp and all internal lines are visible (on the 2nd and 3rd images).

First my new information.

2. Good news - is that if in original BasicBox.java the only one line is changed to:
trans = new TransformGroup(initialLocation());
Then the lines are correctly displayed on all 3 images. It is almost OK, with only one small disadvantage:
On the 2nd and 3rd images line color changes from 'white' to 'blue' when the line visually intersects internal cube.

Modified source for this case:
BasicBox2.java

3. Bad news - is that if the angles of initial transform are changed, than in most cases lines are disappeared again.
For example it is enough to change Z-rotation angle from PI/6 to PI/4.
Modified source for this case:
BasicBox3.java