Jump to content
  • Advertisement
Sign in to follow this  
abdellah

smoke & transparency

This topic is 1434 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello

i want to make smoke (billboards) with transparency, where :

the sourceBlend is set to ONE (= 2) ;

the destinationBlend = InvSourceAlpha (= 6);

 

the result is in the attachement

 

my question is why ; i think that the source blend & destination values are incorrects

 

Share this post


Link to post
Share on other sites
Advertisement


thank's , you mean the ZBufferWriteEnable must set to False

 

correct.

 

also looks like you're using mip maps with a white background, and some of the background is getting blended into your lower level mip maps - producing the white halo edge around the smoke. to fix this you need to - been  while - lets see, the image needs to be away from edges to prevent edge artifacts - clamp helps too. but you don't have those. so odds are its your sampling method when creating mip maps. can't recall offhand which method is preferred. been about 2 years since i got mine working correctly. if you still have questions re: filtering, start another topic.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!