To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 98
97  |  99
Subject: 
Re: Getting camera angle, field of view and distance right
Newsgroups: 
lugnet.cad.ray
Date: 
Sat, 19 Feb 2000 03:45:49 GMT
Viewed: 
1142 times
  
In lugnet.cad.ray, Larry Pieniazek writes:
Please.

OK, delete the old camera statement, and add this.  (A few lines may have
line-wrapped)
--Bram

// Change these values to move and adjust the camera:
#declare camera_center    = <0,0,0>;  // center of scene in studs
#declare camera_latitude  = 10;       // latitude
#declare camera_longitude = 40;       // longitude
#declare camera_radius    = 40;       // distance from center in studs
#declare camera_angle     = 40;       // angle of vision: the smaller, the less
perspective
                                      //                  the larger, the more
fish-eye effect


// Here's a light source which approximates the sun,
// in case you want to use it.
light_source {
        < -8000, -10000, 8000 >
        color rgb 2
        area_light <1000, 0, 0>, <0, 0, 1000>, 2, 2
        adaptive 1
        jitter
}

/********************************************************/
// Ignore the following; it's just the details.
#declare studwidth = 20;         p
#declare camera_center = camera_center * studwidth;
#declare camera_radius = camera_radius * studwidth;
#declare camera_latitude = camera_latitude * pi / 180.0;
#declare camera_longitude = camera_longitude * pi / 180.0;
#declare camera_x = cos(camera_latitude) * sin(camera_longitude) * -1 *
camera_radius;
#declare camera_y = sin(camera_latitude) * -1 * camera_radius;
#declare camera_z = cos(camera_latitude) * cos(camera_longitude) *
camera_radius;

camera { location camera_center + <camera_x, camera_y, camera_z>
         sky -y
         right -4/3*x
         look_at camera_center
         angle camera_angle
         rotate   <0,1e-5,0>
}

// EOF



Message is in Reply To:
  Re: Getting camera angle, field of view and distance right
 
Please. (...) (25 years ago, 19-Feb-00, to lugnet.cad.ray)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR