Device Creation Problem
Hi,
I am a starter to the game development. I planned to create a small program(game) that just initializes a device as a startup.
I decided to do it in c#. I have the VS2005 Express Edition to start development. I have also downloaded the DirectX SDK, oct 2006.
But the express edition throws an error InvallidCallExcpetion Every time i create a device. This is how i create it.
PresentParameters presentParams = new PresentParameters();
presentParams.Windowed = true;
presentParams.SwapEffect = SwapEffect.Discard;
device = new Device(0, Microsoft.DirectX.Direct3D.DeviceType.Reference, this.Handle, CreateFlags.SoftwareVertexProcessing, presentParams);
}
I have a old graphics unit(sis 6326, 4 Mb) and a PII system for development. I have also tried different Device type and Flags combinations.
Can any body see how i can make this work ? If at all !!!
Hi,
I am confused. The dxdiag run tests do pass in the system.
I have even played Warcraft III, Counter Strike in this system. My
system has DX9.0c installed(WinXP SP2). That's why, I thought there
might be a work around.
Hi,
Thanks for the info. Looks like i will have to wait to get
my new system. Is there any harware limitations for developing in XNA.
So that i can buy a Graphics card that stays running for some more time.
I have one more doubt. Is it that the WC III comes with its own dx.dll
files or can the DX9.0c redist support previous versions ?
David Weller - MSFT wrote: |
| Possibly. You can force the device to use software rendering and it will work, but the frame rate will be extremely low. |
|
Hi all,
I face exactly the same problem with my laptop using SIS 661FX graphic chipset with exactly the same piece of code.
David, to "force" the device, which parameters I need to change in the instanciation
device = new Device(0, Microsoft.DirectX.Direct3D.DeviceType.Reference, this.Handle, CreateFlags.SoftwareVertexProcessing, presentParams);
I've already tried to put DeviceType.NullReference or CreateFlags.somethingElse but without any success....
Polo.French touch...