SDL : Circle transition effect - masking

Started by
0 comments, last by REF_Cracker 7 years, 7 months ago

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,

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!

Check out my project @ www.exitearth.com

This topic is closed to new replies.

Advertisement