AlbertoBonn Posted November 7, 2014 Share Posted November 7, 2014 Hi Babylonier,need a animated gif as texture. the gif i see on the mesh, but only the first image. the gif start automaticly in the browser, but not on a babylon mesh. No i cant use ogv or mp4 for 3 or 4 images per sequence/file.thanks Alberto Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 7, 2014 Share Posted November 7, 2014 Hey:) This is not supported by webGL unfortunately Quote Link to comment Share on other sites More sharing options...
dbawel Posted November 15, 2014 Share Posted November 15, 2014 Hi, If you must use several images as a sequence other than assembling in an mpeg movie, and the geometry is simple - you might try using one object per image and change the alpha channel to 1 and then 0 for each objects material consecutively in a loop or conditionally. Not the most efficient method, but it should work. This is the simplest, however you can also use multiple materials and textures on a single object, and do the same - there are examples online; not for your application, but for more complex shading. If you cannot find any examples, please let me know. Cheers David B. Quote Link to comment Share on other sites More sharing options...
Dinkelborg Posted November 16, 2014 Share Posted November 16, 2014 Wouldn't it be relatively easy to write a custom shader with an image-array attribute so that as soon as you apply the shader to your object you can fill the array with images and it would automatically itterate through the array, switching the texture applied to the object every "n"-seconds?//Though I have never written a single shader... so it might as well not ... just an idea Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 20, 2014 Share Posted November 20, 2014 You can use 4 different texture and use a timeout to switch them to your material Quote Link to comment Share on other sites More sharing options...
joshcamas Posted November 21, 2014 Share Posted November 21, 2014 Or use a dynamic texture (aka context) and do fancy stuff with that GameMonetize 1 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.