Page 1 of 1

getting a square-pixels pi3d Display

Posted: Tue May 15, 2018 5:50 pm
by mrmsbarnes
Nothing I can think to do corrects the anisotropy I see in my full screen display. Spheres look more like eggs. Any ideas where in the openGL or pi3d code this can be fixed?

Re: getting a square-pixels pi3d Display

Posted: Tue May 15, 2018 10:47 pm
by mrmsbarnes
My question stands, but I did find out no anisometric display on a normal HDMI monitor of 1920 x 1080 pixels. On my Asus monitor of 1920 x 1200, the stretching is very noticeable. Something in pi3d believes a monitor width of 1920 means 1080 units of height. I'll try to contact the author.

Re: getting a square-pixels pi3d Display

Posted: Wed May 16, 2018 6:24 am
by PeterO
Without seeing your code it's hard to diagnose your problem.
Are you profucing a 2D or 3D display ?

For 2D the screen is always the same size, -1 < X < +1 and -1 < Y +1. You can get the size in pixels from graphics_get_display_size() and work out the appropriate scaling factors to use in your vertex shader.

For 3D it will depend on any transforms your vertex shader performs.

PeterO
PS: You really shouldn't be thinking about "pixels" in openGLES :lol:

Re: getting a square-pixels pi3d Display

Posted: Thu May 24, 2018 7:51 am
by paddyg
Just for completeness. The further discussion here https://github.com/tipam/pi3d/issues/224 hopefully solved the problem for the OP