Sign in to follow this  
Shadowed

Weird DX Debug/Release problem

Recommended Posts

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.

Share this post


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

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this