Making an Orthographic lens scale the same as a Perspective lens

Software: Away3D 4.x

BobWarfield, Newbie
Posted: 21 January 2013 10:51 PM   Total Posts: 19

Hello, can someone please tell me the easiest way to create an Orthographic lens that will scale the same as a Perspective lens?  I want to access various attributes of the Perspective lens in order to calculate an Ortho lens that would match so that I can seemlessly switch the perspective effect on and off.

Any ideas?

Best,

BW

   

NoseKills, Newbie
Posted: 27 January 2013 01:06 PM   Total Posts: 8   [ # 1 ]

1st of all, sorry that i don’t have the answer for you. Some time a go I was doing something that could have used a similar effect, but i gave it up, since the restrictions and difficulties this effect would entail were IMO too great.

I don’t know how “seamless” we are talking about here, but bear in mind that because the different nature of the two lenses, a “seamless” transition would only be possible in very specific situation.

In a perspective view things appear smaller the farther away from the camera they are. They also “drift” towards the center of the screen the farther they move. In an orthographic view their size or position on the screen doesn’t depend on distance from the camera.

This would mean that for even a near seamless transition, all the objects in the view would have to be at an equal distance from the camera at all times.

The same problem presents itself with any non-flat object, because some parts of the object are farther from the camera than some others.

That’s why it’s impossible to make a perfectly seamless switch between the lenses if there’s, let’s say, a cube in the top left corner of the view. In orthographic view you would only be able to see the camera facing plane of it, in perspective view you would be able to see the down and right pointing sides too.

   

Avatar
theMightyAtom, Sr. Member
Posted: 27 January 2013 03:13 PM   Total Posts: 669   [ # 2 ]

Put another way you are asking for an easy way to make a square that acts like a triangle wink
That aside, I do follow what you mean, and depending on the actual scenario you may be able to make 2 object appear to be the same size, as long as you know the distance from the camera. The rest of the scene, you would have to accept will be VERY different.

As an alternative, easier approach you could use a Perspective lens with a very narrow field of view instead of Ortho, and then move the camera as you increase the angle. This gives you a nice transition, and is an effect much used in actual film photography. (look for “Dolly Zoom”)
http://www.youtube.com/watch?v=A_rRw4wpS6c
It was also dubbed “the swoosh” when I was at film school, but that apparently is now the property of Nike.

Good Luck!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X