Sign in to follow this  
lingkernyurk.

why does face flip occur?

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.

 

 

 

 

Share this post


Link to post
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;

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.