POV-Ray : Newsgroups : povray.newusers : Help setting up camera for orbit : Re: Help setting up camera for orbit Server Time
4 Jul 2024 14:10:55 EDT (-0400)
  Re: Help setting up camera for orbit  
From: bobsta
Date: 3 Sep 2010 08:20:01
Message: <web.4c80e7174444b3bc6ac940d0@news.povray.org>
Many thanks to clipka for the detailed response. In the end I found it easier to
 declare a global object for each mesh2 in an appropriate .inc file and set up
as follows:

#include"Structure.inc"

camera {
   perspective

location <0 0 -100>
  up    <0,-1,0>
  right  <0.762,0,0>
  angle 11.99

look_at<0 0 0>
   rotate -z*clock*360

 }
 light_source { <0, 10, 0> color rgb 1 }


object{Structure translate<-0.34173,-19.6812,-25.5002>}


Rendering 180 scenes (+Q0) for a single mesh2 object took approximately 15
seconds of which 8 seconds were taken to parse the file:

Parse Time:    0 hours  0 minutes  8 seconds (8 seconds)
INFO  14:02:06,437 [Thread-548     ] (                       RenderThread.java :
run                                      :  869)  - ERROR>  Photon Time:   0
hours  0 minutes  0 seconds (0 seconds)
INFO  14:02:06,437 [Thread-548     ] (                       RenderThread.java :
run                                      :  869)  - ERROR>  Render Time:   0
hours  0 minutes  7 seconds (7 seconds)
INFO  14:02:06,437 [Thread-548     ] (                       RenderThread.java :
run                                      :  869)  - ERROR>  Total Time:    0
hours  0 minutes 15 seconds (15 seconds)


My questions are:

i) Does the fact that over 50% of the total time is spent parsing the file mean
that I should rotate the camera instead, presumably reducing the time taken to
parse the file (?)

ii) I set the position of the camera at 0,0,-100 i.e. 1m from the coordinate
origin. The viewport should cover a region of 210 x 160mm in the plane z=0,
where all pixels are 1x1 mm2 (210x160 pixels).

I can use the half-angle to set the width of the viewport i.e.
2*arctan(10.5/100). But how do I set the height of the viewport? When rendering
is completed all rendered .png files have a resolution of 320x200 (which is
presumably the default)

Many thanks


Post a reply to this message

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