Weird DX Debug/Release problem

Started by
2 comments, last by Shadowed 17 years, 5 months ago
Hello all, I'm trying to implement a simple particle system under DX9 using point sprites. Everything works perfect when I'm building in Debug configuration. However, when building under Release, the application doesn't look the way it's supposed to: it looks as if the sprites are not lit (maybe I'm wrong?) Here is the debug version: http://corner.dark.am/files/debug.rar and here is the release version: http://corner.dark.am/files/release.rar Compare. I've been cracking my head all day long on this problem now.. If someone would help, that'd be greatly appreciated.
--I hate you.
Advertisement
Hi Shadowed,
I tried both your links and couldn't download from either of them (the download doesn't start or hangs after starting).

Anyway, have you enabled the DirectX debug runtimes via control panel?

If so, do you get any errors or warnings in the debug output when running your app from the debugger/IDE?

TIA,
Cambo_frog
For the love of god, please tell me that you've just omitted your error checking code for brevity, and you don't really assume that all those functions succeed.
Ahh...

I forget to mention that the latest DX SDKs do not provide DirectX control via the standard Control Panel:
Start->Control Panel->DirectX.

If you are using one of the later SDKs you need to use:
Start->All Programs->Microsoft DirectX SDK(August 2006)->DirectX Utilities->DirectX Control Panel.

(Obviously your version may be different from August)

Make sure the Direct3D tab is selected in the dialog:



Set the runtime to debug:



Set the debug output to maximum:



Note: Remember to set the runtime back to retail after you have finished testing, or you will experience major slowdowns in all DX apps!!!

HTH,
Cambo_frog
For the love of god, please tell me that you've just omitted your error checking code for brevity, and you don't really assume that all those functions succeed.
Thanks a lot, Cambo_frog, I really appreciate your assistance!

The reason why my application looked different in Debug and Release is because of a silly bug in my code: my vertex structure didn't match my FVF declaration. I had declared the FVF as D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1, however in my vertex structure I also had RHW, which I forgot to delete after deleting it from the FVF. After removing it from the vertex declaration everything started to work smooth and fine. I met a couple of other guys online who had the same problem, so I hope that maybe this to some extent may be helpful for them as well.

By the way, here is the link to the resulting particle fire :) it's my first ever particle app's first alpha, so don't be too harsh :) Thanks again!

http://forum.armkb.com/attachment.php?attachmentid=12640&d=1163033864
--I hate you.

This topic is closed to new replies.

Advertisement