POV-Ray : Newsgroups : povray.newusers : another memory question : Re: another memory question Server Time
2 Nov 2024 11:24:05 EDT (-0400)
  Re: another memory question  
From: Bill Hails
Date: 28 Mar 2004 11:22:24
Message: <4066fbc0@news.povray.org>
Christopher James Huff wrote:

> In article <40659fbd@news.povray.org>,
>  Bill Hails <bil### [at] europeyahoo-inccom> wrote:
> 
>> Does a mesh2 object have the same memory-saving characteristics as a mesh
>> object, in that only one copy is stored?
> 
> Yes, the mesh2 "object" is simply an alternative syntax for the mesh
> object
> 

Hmm, thanks, then I must be doing it wrong in some way.

I'm making a grass patch for a scene, much like
the famous "mgrass.pov" but using mesh2 so that
each blade has its own texture via a texture_list
section. The "patch" is a single mesh2 with 40 x 40
blades and eats a couple of dozen meg. But as soon as I
start making a hundred or so copies and doing no
more than Point_At_Trans and translate on them,
the povray process balloons from around 11% of
available memory to 100%, including all available
swap space.

It's quite obvious that it is making copies of the
entire mesh, is there anything I need to avoid
doing in order to stop the mesh2 being copied?

I'll keep on investigating.

-- 
Bill Hails


Post a reply to this message

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