Jump to content
  • Advertisement
Sign in to follow this  
cebugdev

SDL : Circle transition effect - masking

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

To SDL devs in here

I am posting here coz there is nothing for SDL, anyways, how can i do the circle effect transition in SDL?

by circle effect, its just like in the movies where a small circle starts from the center and zoom/resized out to reveal the next scene?

what are the options i can do to implement such transition

 

Thanks,

Share this post


Link to post
Share on other sites
Advertisement

Hi there...

If you have shaders up and running this should be relatively simple. I've written a quick example on shadertoy for you.

https://www.shadertoy.com/view/llGGWm

 

You can do something like that ... you'll probably want to run something like this as a fullscreen quad after you're done rendering your scene.

And run the reverse logic of setting the pixel black if inside the radius and using the glsl discard instruction on anything outside the circle.

Hope this helps!

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!