I wish to use Babylon.js Viewer in kiosk or offline mode, with no server at all.
No server to use Babylon.js Viewer
No server to import assets (model & texture)
I would like to double click on a html page with 3D babylon js script inside.
The model and texture 'll be imported from relative (local) url.
The html page should display the 3D model rotating.
I solved the issue of being able to open a *.glb file on a local drive. Placing Babylon.viewer.js and part.glb within the same folder and referencing directly as shown below in the snippet (i.e. with no folder path specification) it works. <babylon model="part2.glb" templates.main.params.fill-screen="true"></babylon>
But of course I tried this and it only works with url from a server ie : <babylon model="https://models.babylonjs.com/boombox.glb" templates.main.params.fill-screen="true"></babylon>
it doesn t work with
relative url : <babylon model="./boombox.glb" templates.main.params.fill-screen="true"></babylon>
nor with physical url : <babylon model="C:/my8dir/boombox.glb" templates.main.params.fill-screen="true"></babylon>
For both I got error :‘No URL provided’
Yeap , there s this solution : https://playground.babylonjs.com/#7F6S08#2 from https://www.html5gamedevs.com/topic/41216-load-glb-model-into-scene-directly-from-content-string/
Now, how do I convert glb model datas in base64 format ?
Starting from bghgary 's solution : https://playground.babylonjs.com/#7F6S08#2
Could it be possible to add texture to object ?
Always condidering it must be done without http server.
Nice,
As I m a total noob with Babylonjs and with very few time left for finishing my project, could you give some precise informations on how to do that.
I can possibly reward you with money if you write me the script (private message then).
Thanks