Page 1 of 1

Direct3D on Linux Guest

Posted: 23. May 2010, 00:16
by kavika
Is it possible to get Direct3D working with Wine, on a Linux Guest?
I've seen people mention that they got this working on the Wine forums, but when I drilled down, I couldn't find any details on their exact configuration.

Yes, I know this is likely a Wine related issue, but other people say they have gotten something like this working, and people w/ these errors that solved the issue were running on hardware, not virtualized.

Note that OpenGL is working for me on this guest, with hardware acceleration, as is the Ubuntu "visual effects" feature (Compiz?)

Windows 7 x64 Host
nVidia GTX 260
Virtualbox 3.20
Ubuntu 10.04 x86, updated
Guest additions are installed

The error I'm getting is:
"err:wgl:X11DRV_wglCreateContext Cannot get FB Config for iPixelFormat 0, expect problems!
err:d3d:InitAdapters Failed to get a gl context for default adapter
Direct3D9 is not available without OpenGL."

I get this error on both World of Warcraft and SysWOW64/dxdiag.exe (shared from the host machine).

I also get an error in WoW with opengl32.dll if I try to launch in OpenGL mode:
"err:module:attach_process_dlls "opengl32.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"E:\\Users\\Public\\Games\\World of Warcraft\\Wow.exe" failed, status c0000005"

Is there more info I can provide, or more logs that would be useful to drill down into this error?

Re: Direct3D on Linux Guest

Posted: 23. May 2010, 18:57
by stefan.becker
For what the hell do you need WINE in a Linux Guest on a Windows Host?

Anyway, no way to tweak this. If Compiz works, then 3D is working in the Linux Guest. I think best is to forget this and use Windows native for Windows Software.

Re: Direct3D on Linux Guest

Posted: 23. May 2010, 19:59
by Technologov
it is possible that wine uses more advanced opengl commmands than compiz does...

Re: Direct3D on Linux Guest

Posted: 24. May 2010, 09:16
by kavika
@stefan.becker: I don't NEED it, I just would like to evaluate both what is possible right now, both in terms of virtualization and in terms of WINE. I'd like to move off Windows, but last two times I dual booted/tried to go pure-Linux, games pulled me back. Virtualization will let me test out the current state of WINE, and know when I can hop over safely without worrying about my games.

@Technologov: Yes, that would make sense. However, VirtualBox is supposed to handle pretty advanced OpenGL, isn't it? Like, 2.0 or 2.1?

Anyhow, what I'm looking for is more verbose logging so I can figure out what is wrong, or someone who knows definitively that this will not work right now, and can tell me why :)

Thanks for your answers so far, tho.

Re: Direct3D on Linux Guest

Posted: 24. May 2010, 10:37
by Technologov
My level of OpenGL is not good enough.
You need to find a developer, that is familiar with OpenGL.

Re: Direct3D on Linux Guest

Posted: 24. May 2010, 21:17
by Sasquatch
Even if you get it working, it's unworkable. Wine inside VB is very, very slow and consumes about 30x more CPU than when it's on a native Linux system. Just starting a notepad or something else is terrible. I tried it a year ago or so to test NewsLeecher so the dev could get the VM and test his application for Linux/Wine. It's just not doable.