mrmsbarnes
Posts: 14
Joined: Thu Jul 31, 2014 11:27 pm

getting a square-pixels pi3d Display

Tue May 15, 2018 5:50 pm

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?

mrmsbarnes
Posts: 14
Joined: Thu Jul 31, 2014 11:27 pm

Re: getting a square-pixels pi3d Display

Tue May 15, 2018 10:47 pm

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.

User avatar
PeterO
Posts: 4100
Joined: Sun Jul 22, 2012 4:14 pm

Re: getting a square-pixels pi3d Display

Wed May 16, 2018 6:24 am

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:
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

Return to “OpenGLES”

Who is online

Users browsing this forum: No registered users and 0 guests