Here's jsfiddle example of what I want to see. Mouse moving over screen. Somewhere in the World drawn some 3d object EXACTLY behind the cursor.
http://jsfiddle.net/ksRyQ/3551/
unp = p.unprojectVector(new THREE.Vector3( mx - (window.innerWidth/2), (window.innerHeight/2)-my, 0), camera)
//console.log(unp)
cur.position.x = unp.x;
cur.position.y = unp.y;
cur.position.z = unp.z/10; // dunno how to draw object with unp.z - it's too far and invisible
Why that sphere appears in some different location? What could be done for correct drawings here?