Jump to content

  • Log In with Google      Sign In   
  • Create Account


Weird DX Debug/Release problem


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Shadowed   Members   -  Reputation: 232

Like
0Likes
Like

Posted 08 November 2006 - 10:53 AM

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.

Sponsor:

#2 Cambo_frog   Members   -  Reputation: 709

Like
0Likes
Like

Posted 08 November 2006 - 11:19 AM

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

#3 Cambo_frog   Members   -  Reputation: 709

Like
0Likes
Like

Posted 08 November 2006 - 01:46 PM

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

#4 Shadowed   Members   -  Reputation: 232

Like
0Likes
Like

Posted 09 November 2006 - 09:26 AM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS