actionscript 3 - Mapping a 2D object to 3D space, maintining 2D size -
I have a papervision3d area primitive that I am adding to a view. Area is being done with the radius of 285. However, due to my camera properties (zoom, focus and jade) the area is rendering at 206px rather than 570px which is what I want (2 * radius).
A long time ago I received a blog post about this topic and it was explained that you can set Z of any object in the scene to appear in 3D space, it will be 2D Space will appear in the following:
mySphere.z = (this.camera.zoom * this.camera.focus) - Math.bas (this.camera.z) + Radius;
The above work when I was using multiple blocks, where radius width was changed with 2 / for some reason it does not work for the area.
How to get an idea with 570 px diameter to show any thoughts on the screen, but the pointers?
Thank you.
This can not be achieved, at least not properly. Perspective projection does not map any sphere into a circle. See how the areas located on the edges of this image are being distorted?
Comments
Post a Comment