POV-Ray : Newsgroups : povray.advanced-users : Help needed! Forest memory problems Server Time
1 Nov 2024 07:29:05 EDT (-0400)
  Help needed! Forest memory problems (Message 1 to 10 of 31)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Tek
Subject: Help needed! Forest memory problems
Date: 18 Dec 2002 05:34:42
Message: <3e004f42@news.povray.org>
This maybe a dumb question...

I'm trying to create a forest for my IRTC entry. I initially put in
placeholders (8000 cones and spheres) which worked fine, but now I've tried
to replace them with proper trees and I keep running out of memory. Even if
I reduce it to only 80 trees it still runs out (despite me having 512MB RAM
and a 2Gig virtual memory file).

I've tried using Splinetree and MakeTree and I get the same problem with
both. I thought that with pov if you had multiple copies of the same object
they didn't take up loads of memory, or is that only meshes?

Does anyone know how I can make a forest of 8000 trees without pov trying to
use 8000 times the memory it needs for one tree?

Any help would be much appreciated
--
Tek
http://www.evilsuperbrain.com


Post a reply to this message

From: Norbert Kern
Subject: Re: Help needed! Forest memory problems
Date: 18 Dec 2002 07:35:04
Message: <web.3e0069c2ea181baced02f1080@news.povray.org>
I'm sorry, but it is okay. You need trees out of meshes. Then you can reduce
memory load. Trees made out of spheres or cones need exact multiples of
memory.
I'm not sure with splines for Splinetree, but most of the memory need comes
from the leafes,which are mostly made out of spheres...

Christoph Hormann made a special version of MakeTree which generates memory



Norbert




Tek wrote:
>This maybe a dumb question...
>
>I'm trying to create a forest for my IRTC entry. I initially put in
>placeholders (8000 cones and spheres) which worked fine, but now I've tried
>to replace them with proper trees and I keep running out of memory. Even if
>I reduce it to only 80 trees it still runs out (despite me having 512MB RAM
>and a 2Gig virtual memory file).
>
>I've tried using Splinetree and MakeTree and I get the same problem with
>both. I thought that with pov if you had multiple copies of the same object
>they didn't take up loads of memory, or is that only meshes?
>
>Does anyone know how I can make a forest of 8000 trees without pov trying to
>use 8000 times the memory it needs for one tree?
>
>Any help would be much appreciated
>--
>Tek
>http://www.evilsuperbrain.com
>


Post a reply to this message

From: Tek
Subject: Re: Help needed! Forest memory problems
Date: 18 Dec 2002 09:37:49
Message: <3e00883d@news.povray.org>
Excellent. Thanks for your help I was starting to panic.

I think I can come up with some nice trees using meshes, or maybe modify
maketree myself. Panic over :)

Cheers.
--
Tek
http://www.evilsuperbrain.com


"Norbert Kern" <nor### [at] t-onlinede> wrote in message
news:web.3e0069c2ea181baced02f1080@news.povray.org...
> I'm sorry, but it is okay. You need trees out of meshes. Then you can
reduce
> memory load. Trees made out of spheres or cones need exact multiples of
> memory.
> I'm not sure with splines for Splinetree, but most of the memory need
comes
> from the leafes,which are mostly made out of spheres...
>
> Christoph Hormann made a special version of MakeTree which generates
memory

>
>
> Norbert
>
>
>
>
> Tek wrote:
> >This maybe a dumb question...
> >
> >I'm trying to create a forest for my IRTC entry. I initially put in
> >placeholders (8000 cones and spheres) which worked fine, but now I've
tried
> >to replace them with proper trees and I keep running out of memory. Even
if
> >I reduce it to only 80 trees it still runs out (despite me having 512MB
RAM
> >and a 2Gig virtual memory file).
> >
> >I've tried using Splinetree and MakeTree and I get the same problem with
> >both. I thought that with pov if you had multiple copies of the same
object
> >they didn't take up loads of memory, or is that only meshes?
> >
> >Does anyone know how I can make a forest of 8000 trees without pov trying
to
> >use 8000 times the memory it needs for one tree?
> >
> >Any help would be much appreciated
> >--
> >Tek
> >http://www.evilsuperbrain.com
> >
>
>
>


Post a reply to this message

From: Mike Williams
Subject: Re: Help needed! Forest memory problems
Date: 18 Dec 2002 14:41:29
Message: <CXVnaIAc8MA+EwBi@econym.demon.co.uk>
Wasn't it Tek who wrote:
>This maybe a dumb question...
>
>I'm trying to create a forest for my IRTC entry. I initially put in
>placeholders (8000 cones and spheres) which worked fine, but now I've tried
>to replace them with proper trees and I keep running out of memory. Even if
>I reduce it to only 80 trees it still runs out (despite me having 512MB RAM
>and a 2Gig virtual memory file).
>
>I've tried using Splinetree and MakeTree and I get the same problem with
>both. I thought that with pov if you had multiple copies of the same object
>they didn't take up loads of memory, or is that only meshes?
>
>Does anyone know how I can make a forest of 8000 trees without pov trying to
>use 8000 times the memory it needs for one tree?
>
>Any help would be much appreciated

Paul T Dawson once released meshtree.inc that creates a tree as a mesh.
If you arrange for there to be only a few actual different mesh trees
you can create an image with a large number of copies of those few trees
quite efficiently. Randomly scale and rotate the copies and they look
reasonably different.

I ran a quick test on my 850 MHz machine, and 8000 copies of the same
highly detailed tree rendered in 59 seconds at 800x600 without AA. Peak
memory used was 29.6 Mb.

In my test, each tree had 584 branches and 6144 leaves, so the entire
orchard had over 49 million leaves.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Apache
Subject: Re: Help needed! Forest memory problems
Date: 18 Dec 2002 15:01:40
Message: <3e00d424@news.povray.org>
POV-Ray needs object referencing. Maybe something for POV-Ray 4.0 or 3.6 ?

#declare Thing = intersection {
  sphere {<-10.000, 0.000, 0.000> 11.000}
  sphere {< 10.000, 0.000, 0.000> 11.000}
}

#declare Clone = \Thing;
   or
#declare Clone = reference(Thing);
   or
whatever


:-)
Apache


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Help needed! Forest memory problems
Date: 18 Dec 2002 15:28:24
Message: <3e00da68@news.povray.org>
In article <3e00d424@news.povray.org> , "Apache" 
<apa### [at] yahoocom> wrote:

> POV-Ray needs object referencing. Maybe something for POV-Ray 4.0 or 3.6 ?
>
> #declare Thing = intersection {
>   sphere {<-10.000, 0.000, 0.000> 11.000}
>   sphere {< 10.000, 0.000, 0.000> 11.000}
> }
>
> #declare Clone = \Thing;
>    or
> #declare Clone = reference(Thing);
>    or
> whatever

You not only missed that it is already done for meshes transparently, but
also that there is zero need for a user controlling something POV-Ray can do
automatically.  So not need to mess up the syntax.  Anyway, this has been
discussed to death in recent month anyway...

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: gonzo
Subject: Re: Help needed! Forest memory problems
Date: 18 Dec 2002 17:35:03
Message: <web.3e00f7d1ea181bac5332079d0@news.povray.org>
Mike Williams wrote:
>Paul T Dawson once released meshtree.inc that creates a tree as a mesh.
>If you arrange for there to be only a few actual different mesh trees
>you can create an image with a large number of copies of those few trees
>quite efficiently. Randomly scale and rotate the copies and they look
>reasonably different.
>
>I ran a quick test on my 850 MHz machine, and 8000 copies of the same
>highly detailed tree rendered in 59 seconds at 800x600 without AA. Peak
>memory used was 29.6 Mb.


Ooooh! <drool!> Where can I find it?

RG - I'm not lost, I'm just on a random path to a random destination


Post a reply to this message

From: autowitch
Subject: Re: Help needed! Forest memory problems
Date: 18 Dec 2002 18:13:59
Message: <3e010137@news.povray.org>
Try here:
http://www.netaxs.com/~ptdawson/ptdtree3.htm

--
autowitch
http://www.autowitch.org

> Ooooh! <drool!> Where can I find it?


Post a reply to this message

From: Tek
Subject: Re: Help needed! Forest memory problems
Date: 18 Dec 2002 19:34:30
Message: <3e011416@news.povray.org>
Having failed to find any really good mesh tree systems (ptdtree doesn't look
right for my purposes) I finally gave up and changed maketree to use meshes.

It took half an hour to modify the code! I wish I'd just done that in the first
place! :)

Unfortunately all my vector maths has had a sever impact on the parse time, but
I reckon I can fix that...

Thanks for your help everyone :)

--
Tek
http://www.evilsuperbrain.com


Tek <tek### [at] evilsuperbraincom> wrote in message news:3e004f42@news.povray.org...
> This maybe a dumb question...
>
> I'm trying to create a forest for my IRTC entry. I initially put in
> placeholders (8000 cones and spheres) which worked fine, but now I've tried
> to replace them with proper trees and I keep running out of memory. Even if
> I reduce it to only 80 trees it still runs out (despite me having 512MB RAM
> and a 2Gig virtual memory file).
>
> I've tried using Splinetree and MakeTree and I get the same problem with
> both. I thought that with pov if you had multiple copies of the same object
> they didn't take up loads of memory, or is that only meshes?
>
> Does anyone know how I can make a forest of 8000 trees without pov trying to
> use 8000 times the memory it needs for one tree?
>
> Any help would be much appreciated
> --
> Tek
> http://www.evilsuperbrain.com
>
>
>
>
>


Post a reply to this message

From: Tek
Subject: Re: Help needed! Forest memory problems
Date: 19 Dec 2002 07:41:38
Message: <3e01be82$1@news.povray.org>
ahem... make that 2 hours... and counting... I just discovered that I need
to change the union of all the leaves into a mesh...

--
Tek
http://www.evilsuperbrain.com


"Tek" <tek### [at] evilsuperbraincom> wrote in message
news:3e011416@news.povray.org...
> Having failed to find any really good mesh tree systems (ptdtree doesn't
look
> right for my purposes) I finally gave up and changed maketree to use
meshes.
>
> It took half an hour to modify the code! I wish I'd just done that in the
first
> place! :)
>
> Unfortunately all my vector maths has had a sever impact on the parse
time, but
> I reckon I can fix that...
>
> Thanks for your help everyone :)
>
> --
> Tek
> http://www.evilsuperbrain.com
>
>
> Tek <tek### [at] evilsuperbraincom> wrote in message
news:3e004f42@news.povray.org...
> > This maybe a dumb question...
> >
> > I'm trying to create a forest for my IRTC entry. I initially put in
> > placeholders (8000 cones and spheres) which worked fine, but now I've
tried
> > to replace them with proper trees and I keep running out of memory. Even
if
> > I reduce it to only 80 trees it still runs out (despite me having 512MB
RAM
> > and a 2Gig virtual memory file).
> >
> > I've tried using Splinetree and MakeTree and I get the same problem with
> > both. I thought that with pov if you had multiple copies of the same
object
> > they didn't take up loads of memory, or is that only meshes?
> >
> > Does anyone know how I can make a forest of 8000 trees without pov
trying to
> > use 8000 times the memory it needs for one tree?
> >
> > Any help would be much appreciated
> > --
> > Tek
> > http://www.evilsuperbrain.com
> >
> >
> >
> >
> >
>
>


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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