Jump to content

Deformed rig/mesh and material issue with blender export.


saldukoo
 Share

Recommended Posts

Hello. I have a rigged and UV mapped model in blender.

I'm using the addon to export .babylon files.

You can see the horrible results below (from blender to browser). I noticed that the animation/mesh are deformed. Also the material has specular(?) lightning, i don't want that. What to do?

EDIT: fixed the material issue by setting light.specular = new BABYLON.Color3(0, 0, 0); The mesh still looks wrong.

p2.png.83f6e9f61b2e4d8adfdeb80b5cc028b3.p1.png.d12f2edb9ec7230c07ac10016b43ac5e.

Im using this

BABYLON.SceneLoader.ImportMesh("", "/assets/game/imports/", "plr03.babylon", scene, function (newMeshes, particleSystems, skeletons) { 
    ...
    newMeshes[0].material.diffuseTexture = new BABYLON.Texture("/assets/game/imports/player.png", scene); // UV map
    ...
}

And this

scene.beginAnimation(player.animation, 0, 100, false, player.speed * 70);

 

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...