I’m trying to do something that is a bit hard to explain so please bare with me
I’m creating a project that is composed of two main parts:
A- a rendered (3dsmax,Corona) image sequence of a camera rotating around a building
B- the same project exported to BabylonJS in GLTF from 3dsmax in order to mimic the rotation from the rendered sequence
The idea is to overlay some interaction (B) on top of the rendered rotation sequence (A)
I’m using the BABYLON.Layer in order to display my image sequence but I’m having a hard time preloading it.
I don’t know how to assign the texture to BABYLON.layer without having to reload the image which leads to significant lag the first time the user rotates around the building (until all images have been loaded once)
On this playground, line 28 to 40 is where i’m preloading the image.
I then track the mouse movement in order to jump either forward or backward in my image sequence.
My 2 questions are:
-Do you know how to preload a texture in order to use it in the BABYLON.Layer?
-Is there a better way than using BABYLON.Layer to create a sequence slider?