Choosing a graphics library on run-time

Hi .
I built the bootcamp demo and run it on my computer ( Windows 7 + DirectX 11 ) and it run with Direct3D .
When I run it on other computers - no matter what the operating system is , It runs with OpenGL .
I want to make it run on other computers also with Direct3D .
I tried -force-d3d - It didn’t work .
How can it be done ?

Thanks ,
Lior .

Anyone ? please .

There is nothing you need to enforce as it already is unless override.
It will use DirectX on windows independent of which windows incarnation, all the system has to do is have a DX9.0c installation present which any Vista+ system has, XP ones might be too outdated.

All you could do is enforce opengl on standalone but I would recommend against it.

On OSX it uses OpenGL
On mobiles it uses OpenGL ES

Hi .
First , Thanks for the reply .
The problem is that it runs with OpenGL on all other computers , except on my computer -
All computers running windows versions XP - 7.0 with DirectX 9.0c and above installed ( on 7 DX11.0 is installed ) .
I know this by looking with ProcessExplorer .
I am trying to do a DX manipulation , but can’t do it , if Unity3D doesn’t load D3D and Uses OpenGL .
Is there any registry key I should insert / update on the target computers ,
Any other means of forcing Unity3D to choose Direct3D ?

A lot of thanks ,
Lior .

Towards the bottom of this page:

http://unity3d.com/support/documentation/Manual/Command%20Line%20Arguments.html

Thanks .
I read the arguments page and based on it - there is no official way to force the engine to choose D3D other than the reference device .
So , Do you have any assumption as to what may be the reason that the run-time allways selects OpenGL on all of those windows
computers except my computer ?
If I would know the reason , I coul’d fix it and make the condition right so the run-time will choose D3D .

Thanks ,
Lior .

My guess would be that either your DirectX installation isn’t registered properly or that Unity isn’t seeing it properly, but that’s just a guess. You might want to contact tech support directly and see if they can help you with this.