Using animated webp

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
goldo
Regular
Posts: 127
Joined: Mon Jan 23, 2017 8:23 am
Contact:

Using animated webp

#1 Post by goldo »

Hi!

I'm afraid I already know the answer to this question, having failed at all my attempts, but here goes: can Ren'py display animated .webp files?
I was hoping for a way around animated gifs not working in ren'py, without resorting to ATL...

I have tried to use an animated .webp either as an image or a movie with no success. As an image, I get a 'failed to decode webp' error. As a movie, I get a freeze then CTD.

Is there a way to make it work?

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Using animated webp

#2 Post by Ocelot »

No, there is a limited selection of formats supported by RenPy:
Images:
There are three image file formats we recommend you use:

Webp
Png
Jpg

Non-animated Gif and Bmp files are also supported, but should not be used in modern games.
Video:
Ren'Py is capable of using libav (included) to play movies using the video codecs:

VP9
VP8
Theora
MPEG 4 part 2 (including Xvid and DivX)
MPEG 2
MPEG 1

and the following audio codecs:

OPUS
Vorbis
MP3
MP2
PCM

inside the following container formats:

WebM
Matroska
Ogg
Avi
Various kinds of MPEG stream.

(Note that using some of these formats may require patent licenses. When in doubt, and especially for commercial games, we recommend using VP9, VP8, or Theora, Opus or Vorbis, and WebM, Matroska, or Ogg.)
< < insert Rick Cook quote here > >

goldo
Regular
Posts: 127
Joined: Mon Jan 23, 2017 8:23 am
Contact:

Re: Using animated webp

#3 Post by goldo »

So in layman's terms: No animated pictures can work with Ren'py, no matter the format. Is that correct?

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Using animated webp

#4 Post by Ocelot »

Yes, animated images are not supported.

You have a choice to use ATL with individual frames to make an animation, or to convert animated image to video and use movie sprites.
< < insert Rick Cook quote here > >

Apa
Regular
Posts: 103
Joined: Fri Dec 23, 2016 2:26 am
Location: NYC
Contact:

Re: Using animated webp

#5 Post by Apa »

The latter won't work on Android, right? :oops:

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Using animated webp

#6 Post by Imperf3kt »

Not as sprites or backgrounds, but will work if it takes the entire screen (with nothing else shown)
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot