mrdoob/three.js — Issue #1236: Three Queries
Author: gnitsuk
Created: 2012-02-02 10:11:01+00:00
State: open

Could I ask folks for help with the following please.

Here is an very simple example which exhibits my three queries: http://gnitsuk.leadhoster.com/ThreeTest/Test.html

When the page loads we see a cube and a triangle. When you click on the page the triangle starts to rotate around the cube.

1) When the triangle comes in front of the cube it does not occlude it. Instead the cube occludes the triangle - as if the cube is nearer to the camera. It matters not in which order I add the meshes to the scene.

2) If there where no lighting then the faces of the cube would be smooth yellow squares, but with the lambert lighting on we see the diagonal line between the two triangles which form a face of the cube. Am I missing an optional argument in the LambertMaterial constructor?

3) The triangle is only illuminated on one side and yet I have used m_triangleMesh.doubleSided = true. If I change the winding of the triangle I can get the other side to light up instead - but not both.

Thank you so much for any help,
Mitch.