Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upisotropic Display for 1920x1200 monitors #224
Comments
|
What system are you running on? On the rpi the screen dimensions come from bcm.graphics_get_display_size() on x11 they come from xlib.XWidthOfScreen() and xlib.XHeightOfScreen() and using pygame (on windows or x11 but not rpi) they come from pygame.display.Info() Does it work OK with different monitors? Do other applications get the correct size? |
|
Yes, we are only talking RPi (thank you, though, for investing so much work for multi-platform). When I use a 1920x1080 monitor there is no problem (ViewSonic TD2220). I see anisotropic stretching on my 1920x1200 monitor (Asus VS24A). I think you are suggesting there is a disagreement between bcm and x11 for this case. Do you have means to test on a 1920x1200 monitor? |
|
Sorry, maybe there is a disagreement between bcm and pygame. Is x11 even used on RPi? |
|
I've not managed to get pi3d to work with x11 or pygame on the RPi (but haven't tried too hard either). I've seen a couple of comments on forums about getting the pi or monitor to set themselves up correctly, various suggestions for using different HDMI numbers. To check what the broadcom driver thinks the monitor is you can type this in a python terminal
If you can't get the monitor detection to work properly you can quite easily modify the value used in pi3d by changing it just after the Display object has been created:
Ideally you would change the fourth value in the lens array that you can optionally pass to the Camera which defines the aspect ratio, however the orthographic camera doesn't have a lens and uses display.width and display.height directly. Hope this solves your problem |
Something believes my 1920 x 1200 monitor has only 1080 units of height. Spheres are stretched to eggs. I'd like to see correct display of 3D objects.