POV-Ray : Newsgroups : povray.general : lack of memory Server Time
24 Dec 2024 13:34:23 EST (-0500)
  lack of memory (Message 1 to 7 of 7)  
From: yoon
Subject: lack of memory
Date: 24 Aug 2006 04:43:21
Message: <44ed66a9$1@news.povray.org>
I made about 1,700,000 cubes and it occupied 65% of 2G memory of my machine.

and I should make 14,000,000 cubes but the memory should be overflowed.

How can I solve this problem without considering buying more memory?

JH


Post a reply to this message

From: Warp
Subject: Re: lack of memory
Date: 24 Aug 2006 05:37:58
Message: <44ed7376@news.povray.org>
yoon <jhy### [at] galaxyyonseiackr> wrote:
> I made about 1,700,000 cubes and it occupied 65% of 2G memory of my machine.

> and I should make 14,000,000 cubes but the memory should be overflowed.

> How can I solve this problem without considering buying more memory?

  Are there any groups of cubes which repeat, or are all the cubes
completely distinct from each other?
  If there are groups of cubes (say, like eg. groups of 10000 cubes)
which repeat, then you can make a mesh consisting of 10000 cubic shapes
and then just copy this mesh.

  What are you trying to do? Perhaps there's a better way of doing it.

-- 
                                                          - Warp


Post a reply to this message

From: yoon
Subject: Re: lack of memory
Date: 24 Aug 2006 12:00:52
Message: <44edcd34$1@news.povray.org>
There is no cube which is the same as others.

It's not easy to explain but I have to make such many objects.

Thanks.

JH

"Warp" <war### [at] tagpovrayorg> wrote in message 
news:44ed7376@news.povray.org...
> yoon <jhy### [at] galaxyyonseiackr> wrote:
>> I made about 1,700,000 cubes and it occupied 65% of 2G memory of my 
>> machine.
>
>> and I should make 14,000,000 cubes but the memory should be overflowed.
>
>> How can I solve this problem without considering buying more memory?
>
>  Are there any groups of cubes which repeat, or are all the cubes
> completely distinct from each other?
>  If there are groups of cubes (say, like eg. groups of 10000 cubes)
> which repeat, then you can make a mesh consisting of 10000 cubic shapes
> and then just copy this mesh.
>
>  What are you trying to do? Perhaps there's a better way of doing it.
>
> -- 
>                                                          - Warp


Post a reply to this message

From: Urs Holzer
Subject: Re: lack of memory
Date: 24 Aug 2006 12:51:27
Message: <44edd90f@news.povray.org>
yoon wrote:

> I made about 1,700,000 cubes and it occupied 65% of 2G memory of my
> machine.
> 
> and I should make 14,000,000 cubes but the memory should be
> overflowed.
> 
> How can I solve this problem without considering buying more memory?

How much memory use the vista and light buffers? Try rendering your
scenes without them.
(Look at http://www.povray.org/documentation/view/3.6.1/223/, the
commandline options are -MB -UL -UV)


Post a reply to this message

From: JRG
Subject: Re: lack of memory
Date: 25 Aug 2006 17:33:46
Message: <44ef6cba@news.povray.org>
yoon wrote:

> I made about 1,700,000 cubes and it occupied 65% of 2G memory of my
> machine.
> 
> and I should make 14,000,000 cubes but the memory should be overflowed.

That's... wow. How many cubes per pixel?

/me counts...

--
Jonathan.


Post a reply to this message

From: Tim Attwood
Subject: Re: lack of memory
Date: 25 Aug 2006 19:53:14
Message: <44ef8d6a$1@news.povray.org>
>I made about 1,700,000 cubes and it occupied 65% of 2G memory of my 
>machine.
> and I should make 14,000,000 cubes but the memory should be overflowed.
> How can I solve this problem without considering buying more memory?

If you have a lot of cubes that aren't visible, you could cull them, as long 
as they
aren't in the line of sight, or in the line of sight from the light sources 
(shadows),
and they aren't reflective, or opaque, and you aren't using radiosity... 
then the
image should end up the same.


Post a reply to this message

From: Kenneth
Subject: Re: lack of memory
Date: 10 Sep 2006 05:10:01
Message: <web.4503d620eba108adc2d4f2880@news.povray.org>
"yoon" <jhy### [at] galaxyyonseiackr> wrote:
> I made about 1,700,000 cubes and it occupied 65% of 2G memory of my machine.
>
> and I should make 14,000,000 cubes but the memory should be overflowed.
>
> How can I solve this problem without considering buying more memory?
>
> JH

There might be ways to reduce the memory requirements, but it depends on
your scene.  A few questions first:

1) Are your cubes simple box shapes, or are they superellipsoids?

2) Does EACH cube need a different texture?

3) Are any of the textures partially transparent?

4)  Are you using a #while loop to randomly place the cubes in your scene?

Ken W.


Post a reply to this message

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