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 / PLane 3D and texture animation ?

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 30th Dec 2015 10:21
Hi

I would like to know if there is a way to "play" an animation on a 3D plane ?
For example, to create an explosion with a spritesheet (like with a sprite, but with a 3D plane) ?

Thanks
AGK2 tier1 - http://www.dracaena-studio.com
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 30th Dec 2015 22:14 Edited at: 30th Dec 2015 22:30
I can suggest three solutions:

•The first is to set the new frames with SetObjectImage() each time (provided that you have single images)
•The second solution would be to set the UV coordinates via the meshmemblock commands to shift through the atlas image.
(Can't find inbuild UV commands for objects.. a shame)
•The last solution is just to set the UV/Texture coordinates via a Shader.

hope you know what i mean ... anyway feel free to ask me anything about the methods.

You can get single images like so:

Using AGKv2 Tier1

Login to post a reply

Server time is: 2024-04-19 04:42:13
Your offset time is: 2024-04-19 04:42:13