POV-Ray : Newsgroups : povray.general : a memory question ?? : Re: a memory question ?? Server Time
7 Aug 2024 15:20:34 EDT (-0400)
  Re: a memory question ??  
From: MR
Date: 12 Oct 2001 09:29:18
Message: <3bc6f02e$1@news.povray.org>
hi mike,

thanks for the nod toward the ptd tree include.  i've tried
several and was wondering if one might be preferable to
another.

miker


"Mike Williams" <mik### [at] nospamplease> wrote in message
news:Bisr1CAxNgx7Ew$q@econym.demon.co.uk...
> Wasn't it MR who wrote:
> >7000 objects per 16MB, eh?
> >
> >on my drive to work i pass this wooded valley.  the other day
> >the sun was just coming up and a light fog hung down low
> >exposing only the tree tops.  i thought to myself, "i could do
> >that."  there are several nice include files for trees, but when
> >you tack all the leaves on it, building an entire woods with
> >maybe 100 or 200 trees is gonna drive the object count thru
> >the ceiling.
>
> But if you use Paul T. Dawson's mesh tree macro you can render hundreds
> of trees reasonably easily and quickly. The trick is to only have a few
> *different* trees and make them look different by scaling and rotating
> them by different amounts as you plant them.
>
> The pdt_tree macro builds the trees out of a small number of complicated
> meshes, rather than a large number of simple objects, and that works out
> to be very memory efficient.
>
> With 10 different reasonably complex trees, each one planted 10 times,
> giving a total of 100 trees I get "Peak memory used 70614011 bytes".
>
>
> --
> Mike Williams
> Gentleman of Leisure


Post a reply to this message

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