mkkc Posted March 16, 2016 Share Posted March 16, 2016 Hi everyone, I'm Babylon newbie Problem just as Topic, I have tried importMesh like this: but I can't find where should I upload texture or which fileread type should I get. Thx for help I think my question is not clear, I upload .babylon and its texture at same time. but it comes [Error while trying to load texture] So I was wonder where should I put after load texture to let ImportMesh(method) get,What kind of type should I load (readAsText?readAsDataURL?),how to let ImportMesh to know the textures I upload? Quote Link to comment Share on other sites More sharing options...
amorgan Posted March 16, 2016 Share Posted March 16, 2016 I would put the file for the texture in the same directory as the .babylon file. If you exported this from Blender or other 3D software, check whether or not the program gives you an error, it should produce a log file. This should help indicate if it exported correctly. mkkc 1 Quote Link to comment Share on other sites More sharing options...
mkkc Posted March 16, 2016 Author Share Posted March 16, 2016 Hi amorgan, I know what you mean, that is not what I want. I want ImportMesh from html files(get the data from input files). (like: sandbox) I have already try local import, meshes and texture work fine. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.