POV-Ray : Newsgroups : povray.binaries.animations : Landscape flyover : Re: Landscape flyover Server Time
23 Jun 2024 15:38:15 EDT (-0400)
  Re: Landscape flyover  
From: Peter Hertel
Date: 20 Feb 2008 08:50:03
Message: <web.47bc2f2248dc95ce5116a38d0@news.povray.org>
William Tracy <wtr### [at] calpolyedu> wrote:
> I aggressively cut back on my trees until I got my landscape to parse in
> three seconds. Unfortunately, it looks kind of bare now. :-(

Looks nice, but yes, it could benefit from some more trees. If you are going to
use that camera angle, what about only parsing the trees in view? Declare the
camera location and check if the tree you are generating is within view. Should
save you quite some parse time.

Wow.. I think this is my first post here since 2003 or something... Anyway, I
was thinking of something like this:


// +k1 +kff99
// Change Camera_Location.y to 40 to see how it works.
// - Peter

#local Local_Clock = clock;

#local Camera_Location = <0,15,Local_Clock*50>;

camera{
        location Camera_Location
        look_at Camera_Location*<1,0,1>+z*2
}

light_source{Camera_Location+<1,2,-5>,1}

#local S = seed(1337);

#local Z = -100;
#while (Z < 200)
        #local Tree_Location = <-10+rand(S)*20,0,Z>;
        #if((Z > (Camera_Location.z-10)) & (Z < (Camera_Location.z+15)))
                cylinder{Tree_Location,Tree_Location+y*2,0.5 pigment {rgb y*1}}
        #end
#local Z = Z+0.5;
#end

plane{y,0 pigment {checker rgb 1 rgb 0.5 scale 6}}


Post a reply to this message

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