www.jpct.net
jPCT-AE - a 3d engine for Android => Bugs => Topic started by: jaco robier on January 07, 2018, 10:38:41 am
-
Hello,
I use the class PolyLine and i have problem with the method SetWidth in mode Point in OpenGL 2
mGLView.setEGLContextClientVersion(1); // OpenGL 1
...;
Polyline1.setPointMode(True); // mode point
polyline1.setWidth(35);
=> the width of the point is correct.
mGLView.setEGLContextClientVersion(2); // OpenGL 2
...;
Polyline1.setPointMode(True); // mode point
polyline1.setWidth(35);=> The Width of the point never change and are always microscopic ? see photo openGL2.jpg
thank you for your support !.
-
That's not a bug. OpenGL ES 2.0 doesn't support point sizes directly so I left out the option to set the width back then and never revisited it. I'll look at it again...
-
Try this jar: http://jpct.de/download/beta/jpct_ae.jar (http://jpct.de/download/beta/jpct_ae.jar)
-
I tried your version 1.32 and I saw no difference : the points must measure 1 pixel.
What is surprising is that the thickness of the lines work fine in OpenGL1 and OpengGL2 with JPCT version 1.31, when i use Polyline1.setPointMode(False)
-
No, that's actually not surprinsing. ES 2.0 cares about lines width, it just has not method to set the point size, because of...reasons. For me, the new jar actually works fine simply be using the method to set the line width and apply it to points. It might be that some driver do this and some don't. Which device are you using? Can you try it on another one with a different GPU?
-
Yesterday I tested your version 1.32 on my Genymotion emulator on PC. :o
today, I test on my Samsung tablet and it works.
It's solved with your version 1.32
thank you very much.