Login  Register

Re: Problem with displaying the line segments

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

5.1 I have already checked different variants of Box and lineShape addition.
For example this one:
trans.addChild(new Box(w, w, w, app));
//trans.addChild(lineShape(w, lineColor));
//group.addChild(new Box(w, w, w, app));
group.addChild(lineShape(w, lineColor));
gives the same set of pictures as BasicBox4.java (see above) both with enabled and disabled antialiasing.

8. Adding the following code:
polyAttr.setPolygonOffset(0.2f);
polyAttr.setPolygonOffsetFactor(0.2f);
Doesn't change result in all cases.
Checked 4 combinations: with/without OrderedGroup, enabled/disabled antialiasing.