POV-Ray : Newsgroups : povray.binaries.images : Camera macros example - 1 attachment : Camera macros example - 1 attachment Server Time
13 Aug 2024 19:27:42 EDT (-0400)
  Camera macros example - 1 attachment  
From: Tor Olav Kristensen
Date: 5 Feb 2003 14:50:04
Message: <Xns9319D4893DE15torolavk@204.213.191.226>
This is a little example from my latest
camera experiments.

The code below made the enclosed image.

Camera08.inc is a camera include file
that I'm working on these days.


Tor Olav

// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7

#include "Camera08.inc"

#declare TransformedTorus =
  torus {
    4, 1
    pigment { color red 1 }
    translate <4, -17, 3>
    rotate <57, -44, 7>
  }

TransformedTorus

ShowBoundingBox(TransformedTorus, 0.02)

#declare Cam1 = DefaultCamera()
SetCameraLocation(Cam1, <1, 5, -10>)
ZoomCameraToObject(Cam1, TransformedTorus)
PerspCamera(Cam1)

background { color blue 0.5 }

light_source { <-1, 8, -5>*100 color rgb <1, 1, 1> }

// ===== 1 ======= 2 ======= 3 ======= 4 ======= 5 ======= 6 ======= 7


Post a reply to this message


Attachments:
Download 'CameraExample01.jpg' (18 KB)

Preview of image 'CameraExample01.jpg'
CameraExample01.jpg


 

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