Within the Renpy engine, is it possible to create a video that includes transparency?
For example, if I didn't know ahead of time what background would need to show up against an animation of a character, could I use a video for the animation and still have the area around the character be transparent or would I have to use a series of PNGs for this?
video transparency
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.
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.
- kuroi
- Regular
- Posts: 129
- Joined: Fri Jun 29, 2007 10:50 am
- Location: Albuquerque, New Mexico, USA
- Contact:
video transparency
President, Planner, and Programmer for Kuroi Games!
-
- Regular
- Posts: 164
- Joined: Wed Dec 01, 2010 7:43 pm
- Projects: Sprite Art for: "Final Banquet", "365 Days"
- Location: British Columbia
- Contact:
Re: video transparency
Since (correct me if I am wrong, but I read this in several other posts) animated GIF's do not work in Ren'Py, I do not see how any other video could be made 'transparent' in places. Flash maybe, but I don't think Ren'Py and Flash talk to each other either (could someone clarify this?).
Your best bet would be to use a series of png files to make an animation with a transparencies.
Your best bet would be to use a series of png files to make an animation with a transparencies.
- kuroi
- Regular
- Posts: 129
- Joined: Fri Jun 29, 2007 10:50 am
- Location: Albuquerque, New Mexico, USA
- Contact:
Re: video transparency
I wonder if it would work to use the AlphaMask function with movie files as it's input using the easy_displayable... I bet this will explode when I try it...
init:
image movie = Movie(size=(352, 240))
image movie_mask = Movie(size=(352, 240))
image transparent_movie = im.AlphaMask(easy_displayable (movie, none=False), easy_displayable (movie_mask, none=False))
init:
image movie = Movie(size=(352, 240))
image movie_mask = Movie(size=(352, 240))
image transparent_movie = im.AlphaMask(easy_displayable (movie, none=False), easy_displayable (movie_mask, none=False))
President, Planner, and Programmer for Kuroi Games!
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: video transparency
I don't know of any movie format that supports transparency, at least that ffmpeg supports.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Veteran
- Posts: 353
- Joined: Thu May 01, 2008 1:12 pm
- Projects: Winter, winter
- Location: Estonia
- Contact:
Re: video transparency
I can imagine a way of doing it using chroma key, basically replacing certain solid coloured areas with the background. But that involves some very special programming, I'm sure.
PNG sequence is a lot easier right now.
PNG sequence is a lot easier right now.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot]