Can nodes have animated .gif as textures?

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

Can nodes have animated .gif as textures?

by Dan Duncombe » Wed Aug 21, 2013 21:58

Title says it all.
Like this:
Image
Last edited by Dan Duncombe on Wed Aug 21, 2013 22:10, edited 1 time in total.
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Wed Aug 21, 2013 22:03

Dan Duncombe wrote:Title says it all.
No, animated gifs don't work. To make them animated, just stack all the frames of the animation on top of each other in the order you want them to play (preferably with the .png file extension). Do that with an image editor like gimp.
Last edited by Evergreen on Wed Aug 21, 2013 22:03, edited 1 time in total.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Wed Aug 21, 2013 22:10

Evergreen wrote:
Dan Duncombe wrote:Title says it all.
No, animated gifs don't work. To make them animated, just stack all the frames of the animation on top of each other in the order you want them to play (preferably with the .png file extension). Do that with an image editor like gimp.

I know you can do that, I just wondered if gifs work. Oh well.
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Wed Aug 21, 2013 23:45

Hybrid Dog wrote:A topic about this already exists...
How can I combine a single texture with a animated texture?
Do that with texture overlays in the code. Say you wanted the furnace to be animated, you would overlay the furnace texture over the default animated flame texture.

Example:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
tiles = {"animated_texture.png^single_texture.png"},


(untested)
Last edited by Evergreen on Wed Aug 21, 2013 23:46, edited 1 time in total.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Fri Aug 23, 2013 12:21

Hybrid Dog wrote:
Evergreen wrote:
Hybrid Dog wrote:A topic about this already exists...
How can I combine a single texture with a animated texture?
Do that with texture overlays in the code. Say you wanted the furnace to be animated, you would overlay the furnace texture over the default animated flame texture.

Example:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
tiles = {"animated_texture.png^single_texture.png"},


(untested)
it only shows the texture at the first frame
Hmm, I'm not sure how in that case. I suppose you could just paste the textures together in gimp.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 33 guests

cron