NRA

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

http://iprojects.space/upwork/laval/

Thanks

Share this post


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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.