Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

Question: How to use the mesh loader using data url?

$
0
0

hi,

 

So I have object file stored as data url in the form of "data:;base64...", and I need to pass the value to BABYLON.SceneLoader.ImportMesh.

 

I have been trying on using

modelurl = "data url to .obj file";
BABYLON.SceneLoader.ImportMesh("", modelurl, "", scene, function (meshes){});

but I receive error Invalid URL.

 

Any ideas on how to do this?

 

Thanks


Viewing all articles
Browse latest Browse all 388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>