PixelPush Posted May 24, 2017 Share Posted May 24, 2017 Hi All, Can anyone tell me whether or not it's possible to add a sprite sheet animation into a texture so that it can be displayed on a 3d object? I have working animation on a sprite sheet, but by default this is just displayed in 2D. If a sprite sheet cannot be used, maybe I could just change the diffuse map at each interval during the render loop? Thanks in advance ! Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 24, 2017 Share Posted May 24, 2017 you mean animation in .gif format Quote Link to comment Share on other sites More sharing options...
PixelPush Posted May 24, 2017 Author Share Posted May 24, 2017 I have rendered a gif, but is it supported in babylon? I'll try plugging this into the diffuse map. Thanks Nasim Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 24, 2017 Share Posted May 24, 2017 no you cant show gif like webgl texture ( in any engine ) Quote Link to comment Share on other sites More sharing options...
PixelPush Posted May 24, 2017 Author Share Posted May 24, 2017 Ok doke. Well I'm guessing I could use either a png sequence and somehow pass in each image (maybe using the render loop). Or use a sprite sheet and animate the offset to show the correct image Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 24, 2017 Share Posted May 24, 2017 http://www.babylonjs-playground.com/#15B1LX Quote Link to comment Share on other sites More sharing options...
JohnK Posted May 24, 2017 Share Posted May 24, 2017 Have you read this topic in particular this PG from that topic http://www.babylonjs-playground.com/#1V3CAT#171 NasimiAsl 1 Quote Link to comment Share on other sites More sharing options...
PixelPush Posted May 24, 2017 Author Share Posted May 24, 2017 Thanks JohnK looking at this now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.