Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 08.11.2006, 20:54   #1
Easy rider
 
Silver's Avatar
 
Join Date: 11 2005
Location: tristeza
Age: 32
Posts: 1,082
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Unhappy Problem with the compiler

Hello,

I'm implementing a simple particle system on Direct3D9 using point sprites, however I'm having a problem building the project on VS.Net 2003.

When building under Debug, everything looks fine, just as programmed:



However, when building under Release, the sprites of the particle look as if they are not lit!



I didn't touch the project properties except for adding the libraries. What'd be the problem?
__________________
http://sssilver.googlepages.com/blog...ner_300x30.jpg

http://www.hra.am/img/Gulyan1.gif

You must spread before giving to Silver again.
Reply With Quote
Old 08.11.2006, 20:57   #2
Easy rider
 
Silver's Avatar
 
Join Date: 11 2005
Location: tristeza
Age: 32
Posts: 1,082
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

Note that in Release, several particles do have their original red color. Weird, huh.
Reply With Quote
Old 08.11.2006, 21:30   #3
Untouchable misanthrope
 
AvDav's Avatar
 
Join Date: 07 2004
Location: Pure thoughts
Age: 36
Posts: 3,408
Downloads: 22
Uploads: 0
Reputation: 222 | 3
Default

perhaps the way you give the color is somewhat incorrect, so debug version makes the correction but release - obviously doesn't, I am not a D3D guru, and most probably you'll not find a solution here, why not contact with M$ or GameDev, also try to play with colors and see the behaviour.
__________________
Не хлебом единым жив человек.
Reply With Quote
Old 08.11.2006, 21:52   #4
Easy rider
 
Silver's Avatar
 
Join Date: 11 2005
Location: tristeza
Age: 32
Posts: 1,082
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

The problem is, I don't give it any color. Just a TGA texture with an alpha channel, and enable alpha blending and alpha testing.
It looks more like the vertices are not lit.
Reply With Quote
Old 08.11.2006, 21:53   #5
Easy rider
 
Silver's Avatar
 
Join Date: 11 2005
Location: tristeza
Age: 32
Posts: 1,082
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

Update: When running the application under Release, but in Debugging mode (that is, through F5, not Ctrl+F5), it looks normal again.
Reply With Quote
Old 08.11.2006, 22:41   #6
Easy rider
 
Silver's Avatar
 
Join Date: 11 2005
Location: tristeza
Age: 32
Posts: 1,082
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

Well here is my particle fire, built under Debug:
http://corner.dark.am/files/debug.rar

And built under release:
http://corner.dark.am/files/release.rar

Ideas?
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 06:15.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.