How to create an alpha movie mask?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
NightNote
Newbie
Posts: 2
Joined: Mon Nov 19, 2018 8:31 am
Contact:

How to create an alpha movie mask?

#1 Post by NightNote » Sun Dec 23, 2018 9:37 am

I learned that movie-images can be created with:

Code: Select all

image whatever = Movie(play="blah.ogv", mask="helloworld.ogv")
Mask movie supposed to be like a some sort of transparent sheet, but it does actually nothing! My movie-sprite with or without alpha-mask is the same!

How can I make actually working alpha-mask? Plase help, stuck on this for a long time. Thanks.

User avatar
Remix
Eileen-Class Veteran
Posts: 1456
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: How to create an alpha movie mask?

#2 Post by Remix » Sun Dec 23, 2018 12:41 pm

As far as I know, the mask uses just the red channel to dictate which pixels in the other clip are shown. Most people just opt to use pure red and black in the mask.

You should also note that recent releases support putting both the movie and mask into one movie side by side (to make sure frames do not go out of synch)
Frameworks & Scriptlets:

NightNote
Newbie
Posts: 2
Joined: Mon Nov 19, 2018 8:31 am
Contact:

Re: How to create an alpha movie mask?

#3 Post by NightNote » Mon Dec 24, 2018 5:04 am

Please, can you describe both methods more detailed?

Post Reply

Who is online

Users browsing this forum: No registered users