Pryme8 Posted August 20, 2016 Share Posted August 20, 2016 There is nothing wrong with your model or BJS. you need to recalculate your normals... please see my first response. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 21, 2016 Share Posted August 21, 2016 @Pryme8 u just skip the mlt file, not a big deal, no need to recompute anything http://babylonjs-playground.com/#27EM1D#1 just give this a try Quote Link to comment Share on other sites More sharing options...
gryff Posted August 21, 2016 Share Posted August 21, 2016 Well @Dams I had taken your file and exported with a Hemi light knowing the normals were correct (as I posted above). Tonight I went back and looked at your file - then I noticed the object scaling was a little extreme -Yscale 50x Zscale ( see image below). So my mind said, "what happens if I apply the scale?" The answer is in the second image below A - Unapplied Scale, B- Applied Scale. It seems that applying that extreme scale solved the problem. Now I did replace your light with a Hemi - but nothing else has changed. If you want to try yourself my file with the scale unapplied is in the link below. Open the Blender file and export. Then apply the scale and export again with a slightly different name. Open each one in the BJS Sandbox TestFile Same as before - in Blender applied the Subsurf Modifier first, recalculated normals outside, checked the normals, then turned on backfaceculling - everything looked fine The difference between the two babylon Sandbox renders - seems to be the scale issue. cheers, gryff Pryme8 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted August 21, 2016 Share Posted August 21, 2016 I should upload my model validator, that would of saved a lot of conversation. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted August 21, 2016 Share Posted August 21, 2016 @Pryme8 i went back few pages in the forum, the first guy who run into this was back in 1851, its a miss leading marketing strategy of the most 3d model warehouses pbr obj download. obj supports reflective material, therefor babylonjs does not,https://doc.babylonjs.com/extensions/OBJ the very end of the pages addresses this kind of problem. you could also strip the 2-3 lines of code from the the 'mlt file, its text format, pure javascript skills, should work here, - check if is some mirror material definition is applied.@Dams what is this thing ? Quote Link to comment Share on other sites More sharing options...
Dams Posted August 22, 2016 Author Share Posted August 22, 2016 @gryff Really good job ! I applied the scale under Blender (Ctrl+A in Blender > Apply Scale) and it solves my problem !!! Thank you very much to everyone thats helps me to fix the problem. See you' 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.