FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Tools
(Moderator: REAS)
   little perspective trick: squish-zoom
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: little perspective trick: squish-zoom  (Read 872 times)
mattgilbert

tangramkid WWW Email
little perspective trick: squish-zoom
« on: May 24th, 2004, 6:58am »

I was playing around with the perspective() method, and figured out how to do this effect that extends or squishes the space while drawing all the objects in the same place.  
 
Just to show it working, I made this little applet. Moving the mouse from left to right changes the perspective like that shot looking down the bell tower in Vertigo. Moving the mouse the other way is like the diner scene in Goodfellas.
 
http://www.mattgilbert.net/VertigoBellTower/
 
It's basically just an inverse relationship between the camera distance and the fovy argument.  
 
mattgilbert
 
 
 
kevinP

Email
Re: little perspective trick: squish-zoom
« Reply #1 on: May 25th, 2004, 11:47am »

on May 24th, 2004, 6:58am, mattgilbert wrote:

It's basically just an inverse relationship between the camera distance and the fovy argument.  

 
Oh, you mean "zooming in while dollying out".  
("Squish-zoom" sounds much better)
« Last Edit: May 25th, 2004, 11:49am by kevinP »  

Kevin Pfeiffer
JohnG

WWW
Re: little perspective trick: squish-zoom
« Reply #2 on: May 25th, 2004, 1:53pm »

I've heard it called OingyBoingy zoom, which I like
 
mflux

fluxhavoc WWW
Re: little perspective trick: squish-zoom
« Reply #3 on: May 26th, 2004, 9:30am »

Let's call it OBZ for Oingy Boingy Zoom from now on.
 
Pretty cool. Would have liked some primitives thrown in for good measure too..!
 
kevinP

Email
Re: little perspective trick: squish-zoom
« Reply #4 on: May 26th, 2004, 10:28am »

on May 26th, 2004, 9:30am, mflux wrote:
Let's call it OBZ for Oingy Boingy Zoom from now on.
 
Pretty cool. Would have liked some primitives thrown in for good measure too..!

 
Yes. Your object of focus (which should remain constant in size, thus adding the "creepyness" factor to such shots) is just another part of the perspective grid and gets lost.  
 
-K
« Last Edit: May 26th, 2004, 10:28am by kevinP »  

Kevin Pfeiffer
mattgilbert

tangramkid WWW Email
Re: little perspective trick: squish-zoom
« Reply #5 on: May 29th, 2004, 9:34am »

it goes by many names...
 
primitives are go!:
 
http://www.mattgilbert.net/VertigoBellTower/
 
Quote:

Your object of focus (which should remain constant in size, thus adding the "creepyness" factor to such shots) is just another part of the perspective grid and gets lost.  

 
The second cube, sphere, and floor from the front don't move, although they get thicker. This wouldn't happen for flat objects, obviously. You can specify the distance at which objects would remain still in the code (see comments).
 
matt
 
 
Pages: 1 

« Previous topic | Next topic »