POV-Ray : Newsgroups : povray.general : Camera Question : Re: Camera Question Server Time
5 Aug 2024 22:19:31 EDT (-0400)
  Re: Camera Question  
From: Christopher James Huff
Date: 15 Jul 2002 14:25:01
Message: <chrishuff-111E0C.13222915072002@netplex.aussie.org>
In article <3d322fe0$1@news.povray.org>,
 "TinCanMan" <Tin### [at] hotmailcom> wrote:

> I'm not sure exactly what is the problem here but try doing something like
> this instead:
> 
> #declare Long=yes;// no for short lens
> camera {
>   #if (Long)
>     location -z*100 angle 3 //Long lens
>   #else
>     location -z*50 angle 15 //Short lens
>   #end
>   look_at Here
> }

Or use macros:
#declare Here=<0,0,0>;

#macro Long_Lens() location -z*100 angle 3 #end

#macro Short_Lens() location -z*50 angle 15 #end

camera {Long_Lens() look_at Here}

Or something like:
#macro Long_Lens(LookAt)
    camera {
        location -z*100
        look_at LookAt
        angle 3
    }
#end

Other ideas: 
Make position relative to look_at (location LookAt + RelPos).
Specify location as parameter and automatically adjust angle depending 
on distance of look_at from location.
Specify angle, look_at, and direction as parameters and adjust distance 
of location.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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