Jump to content
  • Advertisement
Sign in to follow this  
ak-73

Thrusters

This topic is 3379 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

Hi, folks! Has anyone a good idea for creating thrusters (for an air-/spacecraft)? I thought of using multiple small particles for the exhaust. The problem here is that additive blending results in a white color (except at the edges). I would actually like the entire thrust to have any designated color and be partially transparent. *And* look proper from all view angles. :-) Any idea for how to handle that? Should I rely on regular geometry instead? In any case I am willing to sacrifice some performance for quality. Any suggestion would be appreciated. thanks, Alex

Share this post


Link to post
Share on other sites
Advertisement
Well, here's just an idea:

Make a convex "thrust" model (i.e. a combination of a cone and a cylinder, make start and end somewhat rounder). Then you need to calculate a fresnel like factor f in your pixel shader to mix the core and edge color of the thrust (yellow/orange) and the transparency of the thrust ( you can't see through at the core of the thrust). At last use standard alpha blending instead of additive blending.

glsl example:
float fresnel = (1-pow(dot(normal,view),2));
vec4 final_color = mix(yellow_with_alpha_1,orange_with_alpha_0, fresnel);


--
Ashaman

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!