Jump to content

Problems w/ ImportMesh Callback


ProfessorF
 Share

Recommended Posts

Not sure why this is happening, but:any clues as to why the callback function isn't being called? It works in one file, but when I copy the file into another folder (along with the assets). No error, but the breakpoint in the callback never is reached.

 

            BABYLON.SceneLoader.ImportMesh("", "assets/AsianMale/", "AsianMale.babylon", scene, function (meshes, particles, skeletons) {
                Avatar = meshes;
                scene.beginAnimation(skeletons[0], 0, 100, true, 1);
            });
 
Thanks in advance.
 
- Nick
Link to comment
Share on other sites

Never mind. I forgot to update the web.config (things you only do once that you forget about!):

 

<?xml version="1.0"?>
 
<configuration>
 
    <system.web>
      <compilation debug="true" targetFramework="4.5" />
      <httpRuntime targetFramework="4.5" />
    </system.web>
 
<system.webServer>
<staticContent>
<mimeMap fileExtension=".fx" mimeType="application/fx" />
<mimeMap fileExtension=".babylon" mimeType="application/babylon" />
<mimeMap fileExtension=".babylonmeshdata" mimeType="application/babylonmeshdata" />
</staticContent>
</system.webServer>
 
</configuration>
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...