Check out this jsfiddle example of what I am trying to achieve - seeing a 3D object drawn exactly behind the cursor as it moves across the screen.
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 is the sphere appearing in a different location than expected? What adjustments need to be made for accurate positioning?