mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
101.88k stars 35.32k forks source link

Illumination of faces in CanvasRenderer flickers #5794

Closed Zhrack closed 9 years ago

Zhrack commented 9 years ago

Hi all,

Let me congratulate for a start, three.js rocks. I'm using the latest version of the library. I have a problem and I can't find a solution for this. When using CanvasRenderer as a fallback, the body of this mesh (loaded as an .obj) show these artifacts on the illuminations of faces. The illumination changes at every frame rendered, even though there are a set of fixed directional lights. Here is a screenshot of the problem.

cattura

Since the problem show off ONLY on the body of this car(wheels, other accessories and other cars are rendered fine), i tried in the last few days to find a problem in this particual mesh, but in WebGLRenderer, the three.js editor and every other engine i loaded the mesh into, rendered them just fine. I tried re-exporting the mesh with different settings and different tools(Blender, 3DS Max and Cinema 4D), but the problem did not change. Other meshes created in the same way render properly. So i am quite sure at this time that the mesh is not the problem.

Could it be a three.js problem? I can't find a solution and i'm out of ideas and maybe it's a known problem but i can't find a previous discusion.

After loading, meshes use a MeshLambertMaterial.

Thanks for the replies.

WestLangley commented 9 years ago

As stated in the guidelines, help requests should be directed to stackoverflow. This board is for bugs and feature requests.

If you are not sure if it is a three.js bug, we prefer you first seek help on stackoverflow.

Zhrack commented 9 years ago

Thanks for the reply and sorry for the mistake. I'll open a bug report if needed.