Jump to content

Preload Images in Dynamic Texture with Canvas Method

Recommended Posts

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



Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...