DirectX 9 ? My own software device ?
Ok. I was trying to create a software device, but DirectX 9 said that I needed to register a software device first. I''m not interested in writing my own software device. So how can I get software without registering one of my own?
When I was executing the App in the debugger, I got this little message (minus the red):
Direct3D9: (ERROR) :App specified D3DDEVTYPE_SW without first registering a software device. ValidateCreateDevice failed.
Direct3D9: (ERROR) :App specified D3DDEVTYPE_SW without first registering a software device. ValidateCreateDevice failed.
There are three types of device in DirectX. You can create a hardware device (which is an interface to a graphics card), you can create a reference device (which is an interface to the reference software renderer which supports all features of DX, but is extremely slow), or you can create a software device, which is an interface to a sofware renderer.
However, DirectX does not come with a built in software renderer (other than the reference device) so if you wish to create a sofware device, you must tell DirectX where to find it. You are trying to create a software device without telling DX where to find the relevant drivers, and so the create call fails.
John B
However, DirectX does not come with a built in software renderer (other than the reference device) so if you wish to create a sofware device, you must tell DirectX where to find it. You are trying to create a software device without telling DX where to find the relevant drivers, and so the create call fails.
John B
quote:Original post by JohnBSmall
However, DirectX does not come with a built in software renderer (other than the reference device) so if you wish to create a sofware device, you must tell DirectX where to find it. You are trying to create a software device without telling DX where to find the relevant drivers, and so the create call fails.
Arrggghhh...
Does anybody know where I can get a software device for DirectX 9?
Because, when I try to create a HAL device I get a D3DERR_NOTAVAILABLE thrown in my face. Even though Direct3D says that it is available.
Eh...
I can''t imaging that you can''t instantiate a HAL... do the examples included in the SDK run... if so... it might be a nice idea to use parts of that code to get your own stuff to run.
Creating a ''software device'' as you call it... is probably called ''reference device''. But it REALLY ISN''T of any use to use that one instead of the HAL... since it is SSLLOOWW! I mean it... Just run one of the included examples and force it to use the reference drive... you will see what I mean.
I probably is also a good idea to download the latest drivers for your video card (if it is an exotic type anyway).
And if that all fails... Just use the tutorial in the SDK... I did it once to get started VERY QUICKLY... it is just copy/paste... voila.. Direct3D
Hope this helps... but probably doesn''t
Dark
PS: Are you a rookie programmer?
ICQ: 130925152
Email: e.j.folkertsma@student.utwente.nl
I can''t imaging that you can''t instantiate a HAL... do the examples included in the SDK run... if so... it might be a nice idea to use parts of that code to get your own stuff to run.
Creating a ''software device'' as you call it... is probably called ''reference device''. But it REALLY ISN''T of any use to use that one instead of the HAL... since it is SSLLOOWW! I mean it... Just run one of the included examples and force it to use the reference drive... you will see what I mean.
I probably is also a good idea to download the latest drivers for your video card (if it is an exotic type anyway).
And if that all fails... Just use the tutorial in the SDK... I did it once to get started VERY QUICKLY... it is just copy/paste... voila.. Direct3D
Hope this helps... but probably doesn''t
Dark
PS: Are you a rookie programmer?
ICQ: 130925152
Email: e.j.folkertsma@student.utwente.nl
quote:Original post by Dark
Eh...
PS: Are you a rookie programmer?
Just cause some one doesnt know how to use dx (and you dont know what hes trying to do), doesnt mean hes a rookie programmer, just that hes never used it.
Stop being so anal
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement