Jump to content
  • Advertisement
Sign in to follow this  
Bluefarmer

Spherical Wave expansion effect

This topic is 2121 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, 

 

I was wondering how I would go about creating an effect that resembles a spherical wave. I have been trying to find a description but still have no proper way to describe it. The closest thing I have found to it is, 

    from Assassin's creed. The effect I'm looking for would create a spherical wave from the player and show either the outline or vertices moving outward.  (For a sphere this would be starting at the point on the sphere closest to the player and gradually becoming a circle as large as the sphere before disappearing behind the sphere). 

 

Thanks for any help on this subject:) 

Share this post


Link to post
Share on other sites
Advertisement

A solution would be using two depth buffers - one for your scene, and another for the sphere ( or whatever you'd like ). Now each pixel that is closer ( it's depth is smaller than ) the sphere's depth takes the color of the scene. If it's further, then render it as your background. You can add a margin to render it as glow.

Share this post


Link to post
Share on other sites

I think I would be tempted to use a post process effect for this.

 

Calculate the radial distance using screen position and depth, you should be able to google for how to do this, then if this radius is smaller than the current 'sphere radius' you output the colour data from your colour buffer, and if it's larger you apply an edge filter to draw outlines. This won't draw polygons as such, so if you want that effect you may need to draw polygon edges or a per triangle colour which you then edge filter into another buffer.

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!