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.
-
Exiscoming
- Regular
- Posts: 127
- Joined: Tue Apr 29, 2014 5:37 pm
-
Contact:
#1
Post
by Exiscoming » Sat Jan 18, 2020 10:52 am
Odd question. I've got a face I'd like to have animated, but roughly half way through the animation, the mask stops working for a split second, causing the full (white) video layer to be visible. Note that it doesn't loop until her eyes go right. Meaning it flashes half way through the animation.
I'm trying to figure out if this is a coding problem or if there's something wrong with the mask itself.
Checking the videos, they seem equally long, so I don't think it's a problem of the mask video ending before the main video has finished.
Ignore the white nose for now, we're working on that. =)
Here's the code:
Code: Select all
image aniFace movie = Movie(play="face1.ogv", mask="face1Mask.ogv")
label myLabel:
show model:
xalign 0.685 ypos -20 zoom 1.3
show aniFace movie
pause
Here's a download link to the face1.ogv and the face1Mask.ogv:
https://mega.nz/#!5s9TlCJa!YETlrxXAXsWz ... bwiKnhkOhI
Last edited by
Exiscoming on Wed Jan 22, 2020 4:54 am, edited 1 time in total.
-
trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
-
Contact:
#2
Post
by trooper6 » Sat Jan 18, 2020 12:25 pm
I'm messing with this a bit and I'm getting the same thing you are...at least with the assets you provided (you didn't include the "model" image).
I showed both video files separately and there was no glitch, but when I showed the combined video, the glitch shows up.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe:
http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
-
Remix
- Eileen-Class Veteran
- Posts: 1628
- 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:
#3
Post
by Remix » Sat Jan 18, 2020 12:35 pm
If you can, I would suggest creating one (double width) video file with the animation on the left half and the mask on the right.
Then specify in the Movie(play="face1.ogv", side_mask=True) rather than a separate mask
This would ensure each frame of the movie has a specific mask and they cannot go out of sync
Hopefully it will fix the issue too
-
Exiscoming
- Regular
- Posts: 127
- Joined: Tue Apr 29, 2014 5:37 pm
-
Contact:
#4
Post
by Exiscoming » Wed Jan 22, 2020 4:54 am
All right, quick update. The problem was eventually fixed by converting the mp4 files into webm instead of .ogv.
They're a little bit bigger, but so far it seems to work. =)
Users browsing this forum: Bing [Bot], Google [Bot]