saldukoo Posted March 8, 2016 Share Posted March 8, 2016 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. 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); Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted March 8, 2016 Share Posted March 8, 2016 check a flat normal i think that is for your mesh Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 8, 2016 Share Posted March 8, 2016 You need to export your mesh with flat support on (or you can also force it after load using this:http://doc.babylonjs.com/classes/2.3/Mesh#converttoflatshadedmesh-rarr-void) Quote Link to comment Share on other sites More sharing options...
saldukoo Posted March 9, 2016 Author Share Posted March 9, 2016 Thanks for the support. I managed to solve the problem by resetting any scaling in object mode (alt+S). Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 10, 2016 Share Posted March 10, 2016 Sounds good! 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.