Search code examples
flashactionscript-33dperspectivefieldofview

Actionscript 3 3d with fieldofview


what does the field of view to do with the z axis in flash? I have tried moving object towards the eye with different fieldofview values with same z axis but their size changes.

Please help


Solution

  • Changing either the z-axis or the field of view will change the apparent size of your object:

    Changing z-axis (ie focalLength) moves the object nearer/further to your eye, so it appears larger/smaller.

    Changing fieldOfView changes the arc of your vision (kind of like using a fisheye or telephoto lens): if your field of view is large, your object will only take up a small part of that arc, so will appear small (=fisheye lens), but if your field of view is small (=telephoto) then your object occupies a large part of your arc, and appears big.

    diagram
    (source: webfactional.com)

    (In the diagrams, the dotted box is your stage area.)

    Hope that helps explain things a bit.