SruthyJohn / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Depth passed to onmousedown is always -Infinity #133

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

viewer.onmousedown = function(x, y, button, depth, mesh) {
    if (button == 0/* left button down */&& mesh != null) {
        console.log("POKE: " + x + "," + y + "," + depth);
    }
};

What is the expected output? What do you see instead?
Some sort of value for the z-index.  -Infinity

What version of the product are you using? On what operating system?
1.6.5

The model I'm using is a wavefront .obj file if that is of any help.

Original issue reported on code.google.com by ryan.s...@gmail.com on 8 Dec 2014 at 4:48

GoogleCodeExporter commented 9 years ago
This is a lacked feature in WebGL render backend. Currently you have to disable 
WebGL to get correct depth values.

Original comment by Humu2...@gmail.com on 9 Dec 2014 at 3:28