NRA Posted November 28, 2018 Share Posted November 28, 2018 Hi all, I am doing a test to a client who ask me to build a dynamic using a sequence of 3D rendered images, I told him than that is not the right way in WebGl, the correct is to convert the 3D objects and use than. But he said than right now they can not do that. So I tryed to use Dynamic Texture with canvas method and it works, but I wanna know if somebody knows a way to preload the sequence of images in BJS, to get better? Because I think that has a delay right now about the loading issue. You can see it here http://iprojects.space/upwork/laval/ Thanks Quote Link to comment Share on other sites More sharing options...
JohnK Posted November 28, 2018 Share Posted November 28, 2018 Create your image only buttons in a loop and, except the first one, set their isVisible button to false. When rotating through images set the one showing as isVisible = false and the one to show to isVisible = true. However I must say that to do it as your cliant wants I would just use standard HTML, pre-load the images and use the visibility property in the same way WebGL and Babylon.js seems like overkill. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 28, 2018 Share Posted November 28, 2018 If they are static pictures, why not relying on Texture ? This way you could simply use scene.executeWhenReady which would only happen once all the would be loaded. Quote Link to comment Share on other sites More sharing options...
NRA Posted November 28, 2018 Author Share Posted November 28, 2018 Hi @Sebavan I tried to use textures but as I know its need to be in spritesheets, and there are 180 images with 1024x1024 pixels each! How can I do? 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.