I need to get obj’s scene position in screen space.
My way for reconstructing the position in screen space is
described in this blog post.(1st method)
http://mynameismjp.wordpress.com/2009/03/10/reconstructing-position-from-depth/
So, I need the projection matrix in Away3d.
I’m using camera.lens.matrix as the projection matrix.
But my result seems wrong.
For correctly working, I need some tweaking for the matrix.
Maybe my recognition is wrong.
I want to know how can I get other matrices in Away3d also.
And my bad recognition is:
——————————————————————
World == obj.sceneTransform
View == camera.inverseSceneTransform
Projection == camera.lens.matrix
——————————————————————
If I wrong, how can I get these matrices?
I’ve already gotten some shaders,
but they seems not perfect…