Hello! Can you help me please. Is there any option to pass gltf file to the Babylon js as a command line argument ?
Hey! what do you mean by as command line argument?
Babylon.js is a 3d engine for the web so there is not such a thing as command line
Can you be more explicit on your need maybe?
Yeah , im sorry for such a bad question , I have the following problem : I have the path to the gltf file , and I need to open the gltf file in Babylon viewer not explicitly pointing the path to the file in the viewer( for example I mean , that I can’t open Babylon js sand box , click the open button , and point the path to my file in the hard drive) , I should somehow pass my file to the Babylon js without doing all this stuff , just need to pass it as a argument
IF your file is available online, you can open it with BabylonJS Sandbox - View glTF, glb, obj and babylon files
File is located on the hard drive , is there any option to pass it as an argument to the sandbox ?
Unfortunately no as the web browsers cannot read local files for security reasons
Maybe there is other way to do this with the help of Babylon js engine ?
This is a constraint of the browser itself. The best option is to have a local webserver (like Wamp or IIS) and then serve your files from localhost