In my code, there’s a PointLight source which is set to follow the camera position, so that the side of the object from which you look at it will always be illuminated. Everything works fine when I import meshes from Babylon files. But when I import meshes from any OBJ file, the way the light moves while the camera moves looks strange to me. You can see it in Babylon.js Playground
I want it to illuminate the object from the same point where the camera is. Any help is appreciated.
There is a new property on objFileloader BABYLON.OBJFileLoader.COMPUTE_NORMALS. you could always try the playground to see if it works for you, or inline the missing code.