Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / [SOLVED] Animating a texture on a 3D model

Author
Message
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 2nd Sep 2018 22:48
What is the recommended method of animating a texture on a 3D model. Should i just make multiple textures like for sprites?

The author of this post has marked a post as an answer.

Go to answer

xtremi
1
Years of Service
User Offline
Joined: 26th Aug 2018
Location:
Posted: 5th Sep 2018 01:37
You could use shaders?
Ortu
DBPro Master
11
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 7th Sep 2018 17:26
Texture it with an animated gif?
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Icerion
1
Years of Service
User Offline
Joined: 3rd Aug 2018
Location:
Posted: 7th Sep 2018 17:30
Why would you use an animated gif when it has bad quality?
smallg
Valued Member
13
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 7th Sep 2018 19:26
depends what it's for, if it's something basic like a tv screen then using a decal fixed to the object would work fine, if it's for something more complex then you're going to need a shader.
life's one big game
spec= 4ghz, 16gb ram, AMD R9 2700 gpu
Icerion
1
Years of Service
User Offline
Joined: 3rd Aug 2018
Location:
Posted: 7th Sep 2018 19:53
You could actually have an MP4 written to a texture & use that for HD quality animated textures on 3D models.
janbo
10
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 8th Sep 2018 13:53
This post has been marked by the post author as the answer.
Use a atlas texture and shift the UV coordinates by the size of one tile in your atlas with SetObjectMeshUVOffset()
Beware you need to set SetImageWrapU/V() mode too.
AGK uses a shader for that in the background, like pretty much every engine
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 9th Sep 2018 00:28
Yes! Great idea!!
basicFanatic
2
Years of Service
User Offline
Joined: 7th Jun 2017
Location:
Posted: 9th Sep 2018 15:39
Animating a plane here, but I think the principle is the same:

https://forum.thegamecreators.com/thread/222254

Login to post a reply

Server time is: 2019-09-19 20:10:03
Your offset time is: 2019-09-19 20:10:03