OpenGL upside down?

Discussions about using Windows guests in VirtualBox.
preslmayer
Posts: 5
Joined: 1. May 2019, 12:21
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 10; Windows 7; Linux Ubuntu; Linux Mint; Linux CentOs

OpenGL upside down?

Post by preslmayer »

Hello!

I have a problem with opengl on a Linux host (Version 6.0.6) with Windows 10 guest installed.
I have configured the windows 10 guest to use the VboxSVGA controller and Guest Additions are installed.
If i test opengl with "GPU Caps Viewer" the Logos in the 3D Demos are displayed upside down.
I have this problem in other applications too!
What i am doing wrong?
Opengl upside down
Opengl upside down
opengl_upside_down.jpg (61.96 KiB) Viewed 23969 times
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: OpenGL upside down?

Post by socratis »

preslmayer wrote:I have this problem in other applications too!
Like???

We need to see a complete VBox.log, from a complete VM run, where the problem occurs:
  • Start the VM from cold-boot (not from a paused or saved state) / Observe problem / Shutdown the VM (force close it if you have to).
  • With the VM completely shut down (not paused or saved), right-click on the VM in the VirtualBox Manager and select "Show Log".
  • Save only the first "VBox.log", ZIP it and attach it to your response. See the "Upload attachment" tab below the reply form.
Image
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: OpenGL upside down?

Post by mpack »

I'm going to guess that this has nothing to do with VirtualBox, and that the problem is that the software (or the model, depending on your POV) is using the wrong convention for X-Y-Z axes.

The US convention for computer graphics (especially from a gaming background) is to have X across the screen, Y up the screen, and Z as depth into the screen. This is a left handed coordinate system.

In many other places, particularly in software from a mathematical or engineering background, the convention is to have X and Y as the horizontal plane, Z as height above the plane. This is a right handed coordinate system. In a normally 3D viewing position that means X is across the screen, Y is depth into the screen, Z is up the screen.

I.e. If you load a model using the wrong convention then Y and Z are swapped, or more accurately, Y'=(-Z), Z'=Y.

Decent viewing software should have an option to adapt to the model's convention.
preslmayer
Posts: 5
Joined: 1. May 2019, 12:21
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 10; Windows 7; Linux Ubuntu; Linux Mint; Linux CentOs

Re: OpenGL upside down?

Post by preslmayer »

socratis wrote:
preslmayer wrote:I have this problem in other applications too!
Like???
Archicad 21; OpenGL Extension Viewer

You can find my log in the attachment
Attachments
VBoxVM-2019-05-02-19-24-42_log.zip
(36.97 KiB) Downloaded 197 times
preslmayer
Posts: 5
Joined: 1. May 2019, 12:21
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 10; Windows 7; Linux Ubuntu; Linux Mint; Linux CentOs

Re: OpenGL upside down?

Post by preslmayer »

I have tried the same setup on VMware Workstation 15 Pro (15.0.4) for Linux.
There is no problem with OpenGL.
This shows me that this is NO problem with the software i use!
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: OpenGL upside down?

Post by mpack »

Well, I'd be more convinced if others were reporting the same problem... this is a very specific symptom.
preslmayer
Posts: 5
Joined: 1. May 2019, 12:21
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 10; Windows 7; Linux Ubuntu; Linux Mint; Linux CentOs

Re: OpenGL upside down?

Post by preslmayer »

I have forgotten ... that i had to add the option

Code: Select all

mks.gl.allowBlacklistedDrivers = "TRUE"
in VMware
htrex
Posts: 10
Joined: 4. Dec 2009, 14:32
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Vista, Win2000, W7

Re: OpenGL upside down?

Post by htrex »

Screenshot from 2019-12-30 13-16-43.jpg
Screenshot from 2019-12-30 13-16-43.jpg (120.45 KiB) Viewed 23388 times
I'm seeing the same problem, Photoshop shows images upside down.
Vbox.log is attached, please fix it!
Attachments
Win 10 Home-2019-12-30-12-45-24.zip
(38.29 KiB) Downloaded 176 times
fourseasons
Posts: 18
Joined: 27. Aug 2015, 11:03

Re: OpenGL upside down?

Post by fourseasons »

Same problem here. See srceenshot.
Using Virtualbox 6.1 on Catalina (latest update) host and WIndows 1909 guest.

(Please tell me how to generate helpful logs!)

I have a sreenshot, but the size is app. 212KByte. I can't upload it.
fourseasons
Posts: 18
Joined: 27. Aug 2015, 11:03

Re: OpenGL upside down?

Post by fourseasons »

Reduced (in size and quality) picture is attached.
Area in the "circle" is upside down.
Attachments
Bildschirmfoto-OGL.jpeg
Bildschirmfoto-OGL.jpeg (52.28 KiB) Viewed 23309 times
fourseasons
Posts: 18
Joined: 27. Aug 2015, 11:03

Re: OpenGL upside down?

Post by fourseasons »

The log file!
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: OpenGL upside down?

Post by scottgus1 »

fourseasons wrote:(Please tell me how to generate helpful logs!)
Though I have no idea how to fix this upside-down display trouble, I can help with posting a log:

Please zip and post a guest vbox.log, from the guest's Logs folder, using the forum's Upload Attachment tab.
fourseasons
Posts: 18
Joined: 27. Aug 2015, 11:03

Re: OpenGL upside down?

Post by fourseasons »

The log file again.
Attachments
Windows (19.09)-2020-01-08-17-06-15.log.zip
(35.88 KiB) Downloaded 181 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: OpenGL upside down?

Post by mpack »

There won't be anything in the log. A question I'd want answered is why the text outside the highlighted section is not also upside down, and perhaps look to the host drivers for answers, or the guest app whatever it is.
Martin
Volunteer
Posts: 2560
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: OpenGL upside down?

Post by Martin »

Did you also test with 3d support disabled for the VM?
This would show if the problem is in the "translation" of OpenGL by the host video driver or inside the guest.
Post Reply