Page 1 of 2
Direct X 9 Demo in PB
Posted: Sat Nov 01, 2003 6:00 am
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.

Posted: Sat Nov 01, 2003 6:34 am
by J. Baker
Unable to run it. I have WIN XP SP1, DX 9.0B and the latest NVidia drivers.
Posted: Sat Nov 01, 2003 6:53 am
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
Posted: Sat Nov 01, 2003 6:54 am
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 ?
Posted: Sat Nov 01, 2003 7:10 am
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

Posted: Sat Nov 01, 2003 7:50 am
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.
Posted: Sat Nov 01, 2003 7:56 am
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
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.
Posted: Sat Nov 01, 2003 10:53 am
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

?
MFG
WolfgangS
Posted: Sun Nov 02, 2003 1:04 am
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.
New Forum
Posted: Sun Nov 02, 2003 7:30 am
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

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
Posted: Sun Nov 02, 2003 9:12 pm
by dontmailme
It worked for me with the d3dx9.dll in the same dir....
Nice start !
Nice looking forum too

Posted: Mon Nov 03, 2003 6:43 am
by Shopro
worked!
I put just d3dX9.dll in the same folder as the exe, and it worked:)
good job!
-Shopro
Posted: Mon Nov 03, 2003 7:03 am
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.
Posted: Mon Nov 03, 2003 7:28 pm
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

Posted: Mon Nov 03, 2003 8:01 pm
by Num3
Where can i find d3dx9.dll ??? It's nowhere in my system...