Sign in to follow this  
chris_chrono

need help on dynamic masking

Recommended Posts

do anyone ever create or know library for dynamic masking? hmm.. dynamic masking that i mean is like.. you render an object rotating with green bagckground, but you render it into a texture. than how to create a masking texture for that texture, so you can create the object appears in the screen but without the green background? the idea is just like at the movie creation when the camera tape people with green background, the at the movie we will see the people is walking at a cloud or ontop the sea. thx in advance.

Share this post


Link to post
Share on other sites
Hail,
Even though I never tried that personally, but there are few ways that you could accomplish that.
The easiest way I believe it can be done pretty fast is to use fragment shader to sample your texture and discard the color Green.

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