Jump to content

Error while trying to load texture


mkkc
 Share

Recommended Posts

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?

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...