Sign in to follow this  
Followers 0
Bluefarmer

Spherical Wave expansion effect

3 posts in this topic

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, http://youtu.be/VdIEwGkFckQ?t=1m25s    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:) 

0

Share this post


Link to post
Share on other sites

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.

0

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.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0