Jump to content

Materials disappear when I flip some faces


elkyu
 Share

Recommended Posts

 

Hi,

I have a mesh that I import from Blender. On this plane I put a material of different color on each faces. Up to that point, no problem, the export to Blender is good.

 

However, I need to flip some faces of my plane at precise moments (those who followed my topics know why ^_^ ), the problem is that when I flip one or several faces, all the materials of my plane disappear, including the materials of the faces that I didn't flipped.

 

Ideas of the origin of the problem ?

 

Link to comment
Share on other sites

Actually, your assumption that your Blender export is good is false.

 

You need to turn off the optimization that assumes the back side of a face will never be seen, since it is on the inside of a mesh.  This is called face culling.

 

It is done on a material level, not a mesh level.  In Blender, you need to edit you material(s), turning this off.  You have to temporarily switch to the Game Render to see the properties.  See the picture in the Mapped Properties section of the documentation.  

 

https://github.com/BabylonJS/Extensions/tree/master/TowerOfBabel#mapped-properties

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...