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 !!!

[891 byte] By [ArunMurali] at [2007-12-29]
# 1
Do the samples that come with the SDK work on your machine?
WessamBahnassi at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 2
Hi,
Looks like my system does not support Direct3d(device Creation). When i run Samples given it tells. Appropiate device not found. Does that mean that DX development is not possible with this machine ?
ArunMurali at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 3
Possibly. You can force the device to use software rendering and it will work, but the frame rate will be extremely low.
DavidWeller-MSFT at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 4
I believe you don't have a DX7-level display driver in the first place... You should really consider upgrading your machine now...
WessamBahnassi at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 5
Hi,
Thank you. I will look for new systems. Then try coding in DX.
ArunMurali at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 6

HI,

I decided to wait for some more time. I heard that the prices of the processors are set to fall after jan'07.
How do i force software rendering in DX? I can in this way continue to learn DX. Till my new system comes.

ArunMurali at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 7
Unfortunately, you won't be able to run any D3D9 application if your driver level is below DX7.
WessamBahnassi at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 8
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.

ArunMurali at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 9
Were you able to run the BasicHLSL sample from the SDK's sample browser? WC3 is DX8 which supports up to DX6-level drivers IIRC.
WessamBahnassi at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 10
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 ?

ArunMurali at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 11

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...

turboPolo at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 12
SIS really shouldn't be allowed to make graphics chips.
NightCabbage at 2007-9-4 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...