Points are always microscopic in OpenGL 2

Started by jaco robier, January 07, 2018, 10:38:41 AM

Previous topic - Next topic

jaco robier

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 !.


EgonOlsen

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...



jaco robier

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)


EgonOlsen

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?

jaco robier

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.