excelsior Posted May 17, 2016 Share Posted May 17, 2016 var darkblue = new BABYLON.StandardMaterial('darkblue', scene) darkblue.alpha = 1; darkblue.diffuseColor = new BABYLON.Color3.FromInts(249,232,180); darkblue.emissiveColor = new BABYLON.Color3(0,0,0); darkblue.ambientColor = new BABYLON.Color3(0, 0, 0); var cube = BABYLON.Mesh.CreateBox('cube',2,scene); cube.scaling.z = 1; cube.scaling.y = 0.5; cube.position.x = -5; cube.position.y = 2; cube.position.z = -2; cube.material = darkblue; BABYLON.SceneLoader.ImportMesh("", "mesh/book/", "untitled.babylon", scene, function (newMeshes){ console.log(newMeshes) test = newMeshes[0] test.material = scene.tex.darkblue; }) So i ve created 2 cube one with babylon the one on the left, the other is the starting cube from blender that i exported. i apply the same material on both of them why does the light react differently on them ? Quote Link to comment Share on other sites More sharing options...
gryff Posted May 17, 2016 Share Posted May 17, 2016 When you set the material in Blender - did you change the specular settings or use the default settings? Try turning the intensity of specular settings in Blender to zero. cheers, gryff Quote Link to comment Share on other sites More sharing options...
excelsior Posted May 17, 2016 Author Share Posted May 17, 2016 no it doesn't change anything... Quote Link to comment Share on other sites More sharing options...
excelsior Posted May 17, 2016 Author Share Posted May 17, 2016 Quote Link to comment Share on other sites More sharing options...
gryff Posted May 17, 2016 Share Posted May 17, 2016 And turn on "flat shading" for the Blender cube cheers, gryff JCPalmer 1 Quote Link to comment Share on other sites More sharing options...
excelsior Posted May 17, 2016 Author Share Posted May 17, 2016 still the same i don't get it Quote Link to comment Share on other sites More sharing options...
excelsior Posted May 17, 2016 Author Share Posted May 17, 2016 i just open blender turn specular of the material to 0, click on tools, flat shading. export using blender ver 4.4.4 Quote Link to comment Share on other sites More sharing options...
excelsior Posted May 17, 2016 Author Share Posted May 17, 2016 i ve got a single point light in the scene, if i export an object using the online modeling software clara.io i don't get this problem Quote Link to comment Share on other sites More sharing options...
excelsior Posted May 17, 2016 Author Share Posted May 17, 2016 i really don't understand i install blender for the first time 2 days ago export a cube and it's different i'm a noob so i don't know where it can come from Quote Link to comment Share on other sites More sharing options...
gryff Posted May 17, 2016 Share Posted May 17, 2016 Well this a test, two cubes - one from Blender, one created in BJS. I use the material for both that you defined as "darkblue". The Blender file contains a point light placed between the two cubes and above them. 2 cubes The javascript is in the html file - so just view the page content in the web console cheers, gryff 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.