Direct X 9 Demo in PB

Advanced game related topics
Codemonger
Enthusiast
Enthusiast
Posts: 384
Joined: Sat May 24, 2003 8:02 pm
Location: Canada
Contact:

Direct X 9 Demo in PB

Post by Codemonger »

Heres a little Direct9 Demo ... It's nothing much and it is not optimized at all for speed. Anyway check it out.

--> Get it here <--

Hold the 'R' key down to rotate the cylinders and up and down arrows to move forward and backward. Also the lighting might seem a little funny in a realistic sense because their is no culling. Also I'm hoping to get some of this stuff up as tutorials etc.. and if anyone is interested in helping to get dx9 working 100% it would be great to know their is interest. :?
<br>"I deliver Justice, not Mercy"

    - Codemonger, 2004 A.D.
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

Unable to run it. I have WIN XP SP1, DX 9.0B and the latest NVidia drivers.
Shopro
Enthusiast
Enthusiast
Posts: 148
Joined: Tue May 13, 2003 8:05 am

Post by Shopro »

Sorry, unable to run it here too.

WinXP SP1, DirectX9, Mobility Radeon

It would be cool to have a DX9 library though:)

I wish you luck!

-Shopro
Codemonger
Enthusiast
Enthusiast
Posts: 384
Joined: Sat May 24, 2003 8:02 pm
Location: Canada
Contact:

Post by Codemonger »

That's definately not a good start ... anyone else have the same problem..

It calls on two dll's -

D3D9.DLL
D3DX9.DLL

check to see if they are available ... I wonder if the helper library d3dx9.dll is on your system ?
<br>"I deliver Justice, not Mercy"

    - Codemonger, 2004 A.D.
Codemonger
Enthusiast
Enthusiast
Posts: 384
Joined: Sat May 24, 2003 8:02 pm
Location: Canada
Contact:

Post by Codemonger »

Heres a link to the dll's, i guess you can just place them in the same directory as the program ...

D3D9.Dll (do not use this one, should already be installed)

and

D3DX9.Dll


this is just for testing purposes right now ... so don't overwrite any files you already have :!:
Last edited by Codemonger on Sat Nov 01, 2003 8:04 am, edited 1 time in total.
<br>"I deliver Justice, not Mercy"

    - Codemonger, 2004 A.D.
Shopro
Enthusiast
Enthusiast
Posts: 148
Joined: Tue May 13, 2003 8:05 am

Post by Shopro »

I put both dlls the same folder as the exe, but this time it actually crashed with an error message, instead of just not doing anything.
Codemonger
Enthusiast
Enthusiast
Posts: 384
Joined: Sat May 24, 2003 8:02 pm
Location: Canada
Contact:

Post by Codemonger »

I think you just need the d3dx9.dll in the same directory not both ... too bad it is already problematic, maybe my code just sucks :lol:

Ok I just placed the d3D9.DLL file in the same directory and it's not a good idea, but works OK with just the d3dx9.dll in the same directory.

Thanks for testing guys.
<br>"I deliver Justice, not Mercy"

    - Codemonger, 2004 A.D.
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

Post by WolfgangS »

Codemonger wrote:Thanks for testing guys.
It works if you put the d3dx9.dll and the exe in one same directory for me.
How about to provide the community with the source :wink: ?

MFG
WolfgangS
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel
Codemonger
Enthusiast
Enthusiast
Posts: 384
Joined: Sat May 24, 2003 8:02 pm
Location: Canada
Contact:

Post by Codemonger »

The d3dx9.dll needs to be integrated into a purebasic user library ?( I'm guessing) using the d3dx9.lib file that comes with Directx9 SDK.

But unfortunately I don't know how to do that ... so ... I'm going to put a forum up just for dx9 development. Anyway I'm getting problems with the dll , so eventually I will want to use the static library. Anyway I'll put the code up soon, as I need to tidy it up and unfortunately I'm having trouble with vertex buffers and am currently using user defined primitives for compatibility reasons.

So If anyone is interested in helping to develop this further let me know, I'll release the code as soon as tonight.
<br>"I deliver Justice, not Mercy"

    - Codemonger, 2004 A.D.
Codemonger
Enthusiast
Enthusiast
Posts: 384
Joined: Sat May 24, 2003 8:02 pm
Location: Canada
Contact:

New Forum

Post by Codemonger »

I just put up a new forum on my website for the DirectX 9 and PureBasic Stuff, if anyone is interested in helping build it up. I haven't yet put any source code up yet :cry: as it is getting late. So probably tommorrow I will upload the source etc.. in the meantime join up on the forum and test it out.

http://www.Codemonger.com/Forum
<br>"I deliver Justice, not Mercy"

    - Codemonger, 2004 A.D.
dontmailme
Enthusiast
Enthusiast
Posts: 537
Joined: Wed Oct 29, 2003 10:35 am

Post by dontmailme »

It worked for me with the d3dx9.dll in the same dir....

Nice start !

Nice looking forum too :wink:
Shopro
Enthusiast
Enthusiast
Posts: 148
Joined: Tue May 13, 2003 8:05 am

Post by Shopro »

worked!

I put just d3dX9.dll in the same folder as the exe, and it worked:)

good job!

-Shopro
Codemonger
Enthusiast
Enthusiast
Posts: 384
Joined: Sat May 24, 2003 8:02 pm
Location: Canada
Contact:

Post by Codemonger »

Cool, i'm just working on a tutorial right now , very basic .. anyway check out the forum I set up, when you get a chance. I just added some pure basic include files.
<br>"I deliver Justice, not Mercy"

    - Codemonger, 2004 A.D.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Hmm, and here I thought DX9 was for managed languages :) Anyways, this is great news for non-managed languages :) Very good news. For this alone, I may have to buy :)
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Where can i find d3dx9.dll ??? It's nowhere in my system...
Post Reply