AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Nov 8, 2006, 19:54   #1
Easy rider
 
Silver's Avatar
 
Join Date: Nov 2005
Location: tristeza
Posts: 1,085
Rep Power: 3
Reputation: 10
Send a message via ICQ to Silver
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?
__________________




You must spread before giving to Silver again.
Silver is offline   Reply With Quote Quote selected
Old Nov 8, 2006, 19:57   #2
Easy rider
 
Silver's Avatar
 
Join Date: Nov 2005
Location: tristeza
Posts: 1,085
Rep Power: 3
Reputation: 10
Send a message via ICQ to Silver
Note that in Release, several particles do have their original red color. Weird, huh.
__________________




You must spread before giving to Silver again.
Silver is offline   Reply With Quote Quote selected
Old Nov 8, 2006, 20:30   #3
Дикообраз-безобраз
 
AvDav's Avatar
 
Join Date: Jul 2004
Location: У самого синего моря
Posts: 2,921
Rep Power: 5
Reputation: 142
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.
__________________
- Гитлер?!!
- Да?!!
- Зурна!!!
AvDav is offline   Reply With Quote Quote selected
Old Nov 8, 2006, 20:52   #4
Easy rider
 
Silver's Avatar
 
Join Date: Nov 2005
Location: tristeza
Posts: 1,085
Rep Power: 3
Reputation: 10
Send a message via ICQ to Silver
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.
__________________




You must spread before giving to Silver again.
Silver is offline   Reply With Quote Quote selected
Old Nov 8, 2006, 20:53   #5
Easy rider
 
Silver's Avatar
 
Join Date: Nov 2005
Location: tristeza
Posts: 1,085
Rep Power: 3
Reputation: 10
Send a message via ICQ to Silver
Update: When running the application under Release, but in Debugging mode (that is, through F5, not Ctrl+F5), it looks normal again.
__________________




You must spread before giving to Silver again.
Silver is offline   Reply With Quote Quote selected
Old Nov 8, 2006, 21:41   #6
Easy rider
 
Silver's Avatar
 
Join Date: Nov 2005
Location: tristeza
Posts: 1,085
Rep Power: 3
Reputation: 10
Send a message via ICQ to Silver
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?
__________________




You must spread before giving to Silver again.
Silver is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB problem Speedy Gonzales Hardware 9 Aug 1, 2006 05:18
PROBLEM: Unicode URLs Silver Web Development 1 Feb 27, 2006 05:42
Dial-up yahoo-mail access problem Tropical General 1 Nov 12, 2005 21:22
utf-8 problem Michael Web Development 4 Oct 25, 2005 09:28
чят б/п Sauron Uncensored 53801 Aug 19, 2005 09:12


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


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link