Visam Posted October 23, 2017 Share Posted October 23, 2017 Hi First two pictures show the model with backFaceCulling=true Next two pictures show the model with backFaceCulling=false Why the colors are not correct when I set backFaceCulling=false? The vessel bottom has to be red. How to fix the problem? The original FBX file looks like this: Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 23, 2017 Share Posted October 23, 2017 Hello it looks like your normals are pointing to the wrong direction. how does the model look like in Blender? You can also try to call mesh.createNormals() Visam 1 Quote Link to comment Share on other sites More sharing options...
Visam Posted October 25, 2017 Author Share Posted October 25, 2017 On 10/23/2017 at 7:50 PM, Deltakosh said: Hello it looks like your normals are pointing to the wrong direction. how does the model look like in Blender? You can also try to call mesh.createNormals() You can see the picture in blender. Blender has correct colors. I used the command line to convert fbx to babylon format file: FbxExporter.exe ship_Binary.fbx . /skipemptynodes. I just try to try mesh.createNormals() , but there is a problem. I will try to fix it: Cannot read property 'length' of null at Function.t.ComputeNormals (babylon.js:15) at r.i.createNormals (babylon.js:7) at e.callback (visam3d.window.js:1040) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 25, 2017 Share Posted October 25, 2017 We have a LOT of issues with FBX importer. I highly recommend exporting the model from blender if you can ( you can even use Blender command line if you prefer having a command line tool) Visam 1 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.