FBXLoader: Wrong Normal Data for lighting

Description of the problem

I update the FBXLoader today and find that it show wrong normal (I guess is the normal) when lighting for some fbx model. I will show different view for the same scene in the following, note that I have set the intensity of the directional light to 1000 ( I think big enough ). However, it shows wrong effect.

image
image
image
image

It show in r87 like (the sun icon is a directional light):

image

and in r89:

image

In addition, reversely in r87, the FBXLoader also has some bugs (the icon in the scene is a rectarea light):

image

which show in r89:

image

So I think when fix some bug in r89, it maybe leads to the oppositive bug.

Three.js version
  • Dev
  • r89
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Author: Fantashit

1 thought on “FBXLoader: Wrong Normal Data for lighting

  1. note that I have set the intensity of the directional light to 1000 ( I think big enough )

    1 is big enough. That is a clear sign the normals are not correct.

    In r.88 the normals appear correct, and the model is loaded on its side.

    screen shot 2018-02-01 at 10 45 20 am

    In r.89, the normals are not correct, and the model is loaded right-side-up.

    screen shot 2018-02-01 at 10 47 05 am

Comments are closed.