Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ok, this might be a really specific question but,

I'm running Ubuntu and I need to do some programming work in Windows. I installed VirtualBox on Ubuntu and loaded an XP image. When I run the graphics code in visual studio, it pops up with 'No Direct3D harware detected', even though I checked the 'Enable 3D acceleration' on the virtual machine setup.

I've heard that I may need Shader Model 2.0 acceleration for this code to work(it's XNA from microsoft), so is that what's holding me back? If so, is it possible to get SM 2.0+ acceleration on VirtualBox? and if not, what should I be using?

share|improve this question
I don't think game development in a virtual environment is a very good idea... – BFree Oct 20 '09 at 15:49
agreed. but i still need to do it. – LoveMeSomeCode Oct 20 '09 at 16:04
up vote 1 down vote accepted

It depends on how your hardware is virtualized. I used VMWare Fusion and I do get 3D acceleration under windows 7, E.G. I run Half-life 2 and Civ 4 sometimes. Neither of these use Shader Model 2.0 so it could be that, or VirtualBox itself. It's also important to check that you installed the correct windows drivers for this virtualized hardware.

share|improve this answer

This is definitely in it's infancy, and you'd have to test in windows anyway, just in case something different happens.

If you really want to do some windows based game development, I'd highly recommend using windows, just dual boot.

share|improve this answer

From Slashdot :

Apparently, Virtualbox 3.0 released today (2009-07-01) brings with it 'OpenGL 2.0 for Windows, Linux and Solaris guests; and experimental support for Direct3D 8/9 applications on Windows guests.'

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .