POV-Ray : Newsgroups : povray.general : Camera Question : Camera Question Server Time
18 Nov 2024 21:30:30 EST (-0500)
  Camera Question  
From: Mr Art
Date: 14 Jul 2002 16:19:30
Message: <3D32855F.9010801@chesapeake.net>
I ran into some problems with my camera statement today
ans so I tried some of the examples from the docs.
Here is what I tried and what the docs say:
( small amounts of editing have been done to conserve space in this
post)
That I tried:
#declare Here=<0,0,0>;
  #declare Long_Lens =camera {location -z*100 angle 3}
  #declare Short_Lens =camera {location -z*50 angle 15}
  camera {Long_Lens look_at Here}
Here is the error that I get:
Parse Error: No matching } in 'camera', look_at found instead

 From the docs:
CAMERA:
     camera{ [CAMERA_ITEMS...] }
CAMERA_ITEM:
     CAMERA_TYPE | CAMERA_VECTOR | CAMERA_MODIFIER |
     CAMERA_IDENTIFIER
CAMERA_TYPE:
     perspective | orthographic | fisheye | ultra_wide_angle |
     omnimax | panoramic | cylinder CylinderType | spherical
CAMERA_VECTOR:
     location <Location> | right <Right> | up <Up> |
     direction <Direction> | sky <Sky>
CAMERA_MODIFIER:
     angle HORIZONTAL [VERTICAL] | look_at <Look_At> |
     blur_samples Num_of_Samples | aperture Size |
     focal_point <Point> | confidence Blur_Confidence |
     variance Blur_Variance | NORMAL | TRANSFORMATION

Camera identifiers may be declared to make scene files more readable and
to parameterize scenes so that changing a single declaration changes
many values. You may declare several camera identifiers if you wish.
This makes it easy to quickly change cameras. An identifier is declared
as follows.

CAMERA_DECLARATION:
     #declare IDENTIFIER = CAMERA |
     #local IDENTIFIER = CAMERA

Where IDENTIFIER is the name of the identifier up to 40 characters long
and CAMERA is any valid camera statement. See "#declare vs. #local" for
information on identifier scope. Here is an example...

  #declare Long_Lens =camera {location -z*100 angle 3 }
  #declare Short_Lens =camera {location -z*50 angle 15 }
  camera {Long_Lens look_at Here}

I looked in the NG's to see if anyone had posted about this
but could fnd nothing. What's up with the camera?


Post a reply to this message

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