There is some kind of bug with picking. In a scene with 1 object at [42, -17, 10] which is a mesh of 2 triangles making a rectangle facing +z (no rotation) with positions (-4.4, -3.15, 0) to (4.4, 3.15, 0), picking doesn't find that object. Data from gl.readPixels(0, 0, 8, 1, gl.RGBA,gl.UNSIGNED_BYTE, data); is all set to 0. Picking in general works fine, but not in this case. I don't know the algorithm behind picking, so I cannot fix it myself. Any clues?
There is some kind of bug with picking. In a scene with 1 object at [42, -17, 10] which is a mesh of 2 triangles making a rectangle facing +z (no rotation) with positions (-4.4, -3.15, 0) to (4.4, 3.15, 0), picking doesn't find that object. Data from gl.readPixels(0, 0, 8, 1, gl.RGBA,gl.UNSIGNED_BYTE, data); is all set to 0. Picking in general works fine, but not in this case. I don't know the algorithm behind picking, so I cannot fix it myself. Any clues?