3D Acceleration Support

This is for discussing general topics about how to use VirtualBox.
jnygaard
Posts: 6
Joined: 27. Oct 2010, 23:55
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windoze

Re: 3D Acceleration Support

Post by jnygaard »

Hope this is not covered in the FAQ or too obvious - I've just discovered VB and the possibilities it offers:

I got OpenGL to work, at least it seems so at the moment (Ubuntu 9.10 host, XP guest, VB version 3.0.8) but my application also makes use of some (relatively simple) GL shaders. Something, and I suspect these shaders, really messes up the display, even though the app or guest OS does not actually crash. The app does behave odd, and the framebuffer somehow gets corrupted beyond the VB's ability to repaint/fix it.

Am I right in my suspicions, or should such shaders work? Would it be different for a newer VB? (3.0.8 is the one my ubuntu offers per default.)

J.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: 3D Acceleration Support

Post by Technologov »

few ideas:
1. update host OS video drivers for ATI/NVIDIA
2. Try VirtualBox 4.0.0 BETA (if you want)
mcp
Volunteer
Posts: 132
Joined: 12. May 2007, 23:55
Primary OS: PCLinuxOS
VBox Version: PUEL
Guest OSses: Windows XP Pro

Re: 3D Acceleration Support

Post by mcp »

Quick question: If I previously installed the 3d driver do I have to reinstall it each time the GA is updated?

MCP
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: 3D Acceleration Support

Post by Technologov »

Unfortunately, Yes.
wotan
Posts: 71
Joined: 30. Apr 2009, 17:35
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: Linux

Re: 3D Acceleration Support

Post by wotan »

In the 4.0 series (including the Betas, other more pressing problems prevented me from spending time one it) results in the following messages when trying to enable 3D support:

Code: Select all

[    53.790] (II) Next line is added to allow vboxvideo_drv.so to appear as whit
elisted driver
[    53.790] (II) The file referenced, is *NOT* loaded
[    53.790] (II) Loading /usr/lib/xorg/modules/drivers//ati_drv.so
[    53.790] (EE) AIGLX error: vboxvideo does not export required DRI extension
[    53.791] (EE) AIGLX: reverting to software rendering
[    54.046] (II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
[    54.046] (II) GLX: Initialized DRISWRAST GL provider for screen 0
Host is XP SP3, guest is a rolling release of Sabayon+limbo repository.
ZioNemo
Posts: 28
Joined: 19. Sep 2008, 22:05

Re: 3D Acceleration Support

Post by ZioNemo »

I have VirtualBox 4.0.2 r.69518 installed on an up-to-date ubunu-10.10 host.
The Graphic card is an ATI Radeon HD4250 (I do attach an image with full specs).
I prepared a test Guest (WinXpSP3) and installed GA (YES I did check 3D support AND installed in safe-mode).
Unfortunately the 3D support does not work well; I do attach full DxDiag results.
To that I should add Direct3D 9 tests reports "All tests were successful" because I could see the rotating cube, but that is somewhat not true since the screen was flickering badly between that full-screen image and the background (green hill and bottom toolbar with "start" button).

Did I do something wrong or the support is still this buggy?
I assume the "Several files (d3d8.dll, d3d9.dll) are old versions" warning is due to the GA patched files, but I could be wrong.

Thanks for any comment
ZioNemo
Attachments
GraphicCardSpecs.png
GraphicCardSpecs.png (80.45 KiB) Viewed 30739 times
DxDiag.txt
(29.15 KiB) Downloaded 113 times
Bushwalker
Posts: 2
Joined: 29. Jan 2011, 23:08
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Win XP, Ubuntu, Win 95, Win 98

Re: 3D Acceleration Support

Post by Bushwalker »

My VM (4.0.2) crashes during Win XP guest start-up when 3D acceleration is enabled. I've reported it here: http://forums.virtualbox.org/viewtopic.php?f=6&t=38570.
Has anybody else experienced the same issue?
boeroboy
Posts: 17
Joined: 8. Dec 2010, 17:04
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Win XP,Vista,7, CentOS Linux

Re: 3D Acceleration Support

Post by boeroboy »

Yes I have the same problem after an upgrade to 4.0.2. I was developing an OpenGL app in Win 7 Home Prem x86 (Sabayon 2.6.36 x86_64 host). After the upgrade and guest additions upgrade, my windows appeared blank. I tried to revert my guest additions to 3.2.10 and now the application fails out with an invalid rendering context. Once again an upgrade causes more damage than good. I will be reverting to 3.2.10 or 3.2.12 later. Too much time wasted on it today. Unless someone posts a handy workaround over the weekend?? *wink-wink*
Thanks
SoftCoder
Posts: 3
Joined: 29. Mar 2011, 19:31
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows, Linux

Re: 3D Acceleration Support

Post by SoftCoder »

Yes I have the same problems, after going up to 4.x opengl apps crash with invalid enumerant etc (I am an open source author working on an RTS game for Linux / Windows). The same OpenGL code that used to work in 3.x no longer works on 4.x, even though the binaries work fine on the native Operating Systems.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: 3D Acceleration Support

Post by Technologov »

It would be nice if you could upload the demo of those binaries, that crash on VBox 4.0, so we can open bug about this.

Could you make such a freeware demo ?
SoftCoder
Posts: 3
Joined: 29. Mar 2011, 19:31
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows, Linux

Re: 3D Acceleration Support

Post by SoftCoder »

Download the 3.4.0 release of megaglest from megaglest.org (source is fully available on sourceforge.net, wiki etc mentioned on megaglest.org). For any assistance looking at code etc visit us on freenode at #glest.

Thanks
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: 3D Acceleration Support

Post by Technologov »

Open bug in VBox bugzilla, and provide links to demo there.

Drop bug number here (after you open bug).
SoftCoder
Posts: 3
Joined: 29. Mar 2011, 19:31
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows, Linux

Re: 3D Acceleration Support

Post by SoftCoder »

Ticket #8666, thanks
JFekete9076
Posts: 1
Joined: 26. Jul 2011, 14:40
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: 3D Acceleration Support

Post by JFekete9076 »

Is there any information about whether VirtualBox supports OpenGL 2.1 and newer versions?
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: 3D Acceleration Support

Post by Technologov »

OpenGL 2.1 is supported, according to change-log of "Version 3.2.0 (2010-05-18)".

No new versions of OpenGL were added since then... just bug fixes.
Locked