POV-Ray : Newsgroups : povray.general : Help with camera declarations : Re: Help with camera declarations Server Time
12 Aug 2024 21:18:24 EDT (-0400)
  Re: Help with camera declarations  
From: Ron Parker
Date: 6 Jan 1999 12:13:32
Message: <369399bc.0@news.povray.org>
On Tue, 05 Jan 1999 23:29:13 -0800, Ken <tyl### [at] pacbellnet> wrote:
>Mike Metheny wrote:
>> 
>> When working through a scene, I usually want to zoom in on various parts of
>> my scene.  Right now I have various camera declarations commented out using
>> /* */, and switch between them as needed.  How do I declare various camera
>> positions/lookats in one easy declaration so i can just change camera_1 to
>> camera_2 or whatever to switch?  I hope I'm making myself clear.
>> 
>> Thanks guys!
>> 
>> Mike Metheny
>
>
>You can do it like this --

Ahem... From the POV-Ray documentation, under "camera identifiers":

#declare Long_Lens =
  camera {
   location -z*100
   angle 3
  }
#declare Short_Lens =
  camera {
   location -z*50
   angle 15
  }
camera {
  Long_Lens  // edit this line to change lenses
  look_at Here
  }


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.