Jump to content
  • Advertisement
Sign in to follow this  
chris_chrono

need help on dynamic masking

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

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
Advertisement
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
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!