Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

bcome

DirectX 9 ? My own software device ?

This topic is 5397 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
do you wanna rephrase that in non-gibberish?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!