Horde3D

Next-Generation Graphics Engine
It is currently 26.04.2024, 06:39

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Additive alpha models
PostPosted: 12.08.2010, 21:51 
Offline

Joined: 16.05.2009, 12:43
Posts: 207
So I'm adding tracers to my game http://www.youtube.com/watch?v=pJuwFMEWO3M and I figure I should look at the issue of alpha blending the tracer mesh. But before I dive into it, I wondered if there is already something in there I'm missing? Do any of the existing shaders support alpha? I added alpha testing to my own shaders, but wonder if additive is a different beast (aside from the sorting issues of course).

I'm trying to not get bogged down in too many details (like the particles really not working too well for instance). On to more city generation tommorrow.


Top
 Profile  
Reply with quote  
PostPosted: 14.08.2010, 13:43 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
What you could do is adding a new context to the model shader which sets the blend mode to additive. This context can be referenced in the pipeline, similar as is already done for particles.


Top
 Profile  
Reply with quote  
PostPosted: 15.08.2010, 13:28 
Offline

Joined: 16.05.2009, 12:43
Posts: 207
Weirdly enough, I'd already done that, just forgot I'd done it. Fixed now.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group