Raghavender Mylagary Posted February 13, 2017 Share Posted February 13, 2017 Hi, I have enabled double side normals for a mesh in Blender and exported it into .babylon file. When i am trying to run the .babylon file through BJS, one side of the mesh is transparent. Thanks, Raghavender Mylagary Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted February 13, 2017 Share Posted February 13, 2017 BJS does not support double sided normals. It does support turning of backside culling, using UI from the Blender Game Renderer. Quote Link to comment Share on other sites More sharing options...
Raghavender Mylagary Posted February 13, 2017 Author Share Posted February 13, 2017 @JCPalmer I updated my model with the above settings in blender and when i run the code the mesh is not visible on both sides. Thanks, Raghavender Mylagary Room.blend Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted February 13, 2017 Share Posted February 13, 2017 Do not know half your meshes have no material, but those that do looked like they backface culling still checked Quote Link to comment Share on other sites More sharing options...
Raghavender Mylagary Posted February 13, 2017 Author Share Posted February 13, 2017 @JCPalmer I am creating materials and textures for my meshes in the code with BJS . Also for the Floor i have created the material in the blender itself. Thanks, Raghavender Mylagary Quote Link to comment Share on other sites More sharing options...
dbawel Posted February 14, 2017 Share Posted February 14, 2017 @Raghavender Mylagary Is the problem that you cannot see the exterior of the room since you disabled back face culling? If so - it might likely be the lack of lights outside the exterior. Keep in mind that there is a dis-connection sometimes between backface culling and lights in BJS. Hard to say without a PG scene or reference. Create a PG, and I'm certain you can quickly solve this, as the Devs here on the forum then can see all aspects of what the issue might be. Otherwise, it's a shot in the dark. No pun intended. DB Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted February 14, 2017 Share Posted February 14, 2017 If you are making your own materials post import, then you will need to disable backside culling on those materials too. mymat.backFaceCulling = false dbawel 1 Quote Link to comment Share on other sites More sharing options...
Raghavender Mylagary Posted February 14, 2017 Author Share Posted February 14, 2017 @JCPalmer Thanks for that. Now it worked @dbawel From now i will be sharing the PG scene and thanks for the reply. 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.