www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Melssj5 on January 05, 2017, 05:30:41 pm

Title: 2d animations on Android
Post by: Melssj5 on January 05, 2017, 05:30:41 pm
Hi, is there anyway to load a 2d animation gif, video o whatever in a moving Texture?? I have read other questions but I am not clear about this........
Title: Re: 2d animations on Android
Post by: EgonOlsen on January 05, 2017, 05:54:44 pm
You can render videos into an external texture. See this thread: http://www.jpct.net/forum2/index.php/topic,3788.msg27175.html (http://www.jpct.net/forum2/index.php/topic,3788.msg27175.html)
Title: Re: 2d animations on Android
Post by: Melssj5 on January 05, 2017, 07:47:34 pm
nice Thanks
Title: Re: 2d animations on Android
Post by: Melssj5 on January 07, 2017, 06:14:28 pm
Egon... I have been reading about this SurfaceTexture and loading them from the media player, before using time on it, the question is: will this SurfaceTextures be able to  be loaded as animated Textures...

What I am trying to do is not streaming or show cinematics on background. I am tring to load a gif or video as a Object3D texture.
Title: Re: 2d animations on Android
Post by: EgonOlsen on January 07, 2017, 11:16:22 pm
They should somehow...I guess, it's all about what you stream (not in the meaning of downloading while playing) into it. However, I can't really tell. I've never used this myself. I only looked at raft's demo for this and made some changes to the engine to make it work better, but that's about it.