Jump to content

why does face flip occur?


lingkernyurk.
 Share

Recommended Posts

Hi.

I am babylonjs  beginer.

I am going to develop viewer to loading obj file using babylon.js

however. face flip is happened in work.

normal vector was reversed.

I don't know why that happen.

this is image using assimp viewer.

image.png.14aa343930da1fae461e73109a3bb4fd.png

 

next: using babylon.js

 

image.png.1596fa13bdf8e037a98283ac1cb8fa76.png

pleas help me!

I believe your capacity.

 

 

 

 

Link to comment
Share on other sites

Hello @lingkernyurk.

It seems your OBJ file don't have the correct normals for the door. I downloaded your OBJ and opened it with 3DSMax, here is what I can see : 

NgYXsql.png

See the dark red color ? It indicates the normals are flipped.

It's the same for the other part of the door (you can compare with the lighter red on the house) :

z3C4NOB.png

For me it doesn't look as a bug.
One way to disable it Babylon side would be to set the corresponding material like this:

scene.getMaterialByName('JoinedMaterial__3').backFaceCulling = false;

 

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...