OpenGL upside down?

Discussions about using Windows guests in VirtualBox.

OpenGL upside down?

Postby preslmayer » 1. May 2019, 12:53

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.jpg
Opengl upside down
opengl_upside_down.jpg (61.96 KiB) Viewed 10132 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?

Postby socratis » 1. May 2019, 18:22

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.
socratis
Site Moderator
 
Posts: 27690
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: OpenGL upside down?

Postby mpack » 1. May 2019, 19:12

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.
mpack
Site Moderator
 
Posts: 35030
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: OpenGL upside down?

Postby preslmayer » 2. May 2019, 19:33

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 136 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?

Postby preslmayer » 6. May 2019, 11:30

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

Postby mpack » 6. May 2019, 14:26

Well, I'd be more convinced if others were reporting the same problem... this is a very specific symptom.
mpack
Site Moderator
 
Posts: 35030
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: OpenGL upside down?

Postby preslmayer » 6. May 2019, 15:15

I have forgotten ... that i had to add the option
Code: Select all   Expand viewCollapse view
mks.gl.allowBlacklistedDrivers = "TRUE"
in VMware
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?

Postby htrex » 30. Dec 2019, 13:54

Screenshot from 2019-12-30 13-16-43.jpg
Screenshot from 2019-12-30 13-16-43.jpg (120.45 KiB) Viewed 9551 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 122 times
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?

Postby fourseasons » 8. Jan 2020, 17:55

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: 17
Joined: 27. Aug 2015, 11:03

Re: OpenGL upside down?

Postby fourseasons » 8. Jan 2020, 18:00

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 9472 times
fourseasons
 
Posts: 17
Joined: 27. Aug 2015, 11:03

Re: OpenGL upside down?

Postby fourseasons » 8. Jan 2020, 18:08

The log file!
fourseasons
 
Posts: 17
Joined: 27. Aug 2015, 11:03

Re: OpenGL upside down?

Postby scottgus1 » 8. Jan 2020, 18:27

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.
scottgus1
Site Moderator
 
Posts: 14177
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: OpenGL upside down?

Postby fourseasons » 9. Jan 2020, 07:00

The log file again.
Attachments
Windows (19.09)-2020-01-08-17-06-15.log.zip
(35.88 KiB) Downloaded 124 times
fourseasons
 
Posts: 17
Joined: 27. Aug 2015, 11:03

Re: OpenGL upside down?

Postby mpack » 9. Jan 2020, 11:54

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.
mpack
Site Moderator
 
Posts: 35030
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: OpenGL upside down?

Postby Martin » 9. Jan 2020, 12:24

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.
Martin
Volunteer
 
Posts: 2523
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Linux, OS/2

Next

Return to Windows Guests

Who is online

Users browsing this forum: No registered users and 10 guests