|
![](/i/fill.gif) |
> 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 (?)
That won't change anything. The whole scene get parsed for each frame of
an animation.
If you use the "real time animation" feature that effectively skip
reparsing, you won't get any file output.
>
> 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)
You can alway set the resolution: Add +w800 +h600 to the command line or
the ini file to get 800 by 600 images. With the windows version, there
is a drop list that enable you to sellect a variety of resolutions. You
can add more to this list if you want, just edit the quickres.ini file.
>
> Many thanks
>
>
>
>
>
Alain
Post a reply to this message
|
![](/i/fill.gif) |