POV-Ray : Newsgroups : povray.binaries.images : many cubes [75 KB] Server Time
11 Aug 2024 11:24:45 EDT (-0400)
  many cubes [75 KB] (Message 11 to 20 of 21)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 1 Messages >>>
From: JWV
Subject: Re: many cubes [75 KB]
Date: 17 Apr 2004 16:12:17
Message: <40818fa1$1@news.povray.org>
> It should be possible to decrease the amount of memory required
> (divide it by 4). At the first iteration, since blok is a simple cube,
> balk is equivalent to a box { <0, 0, 0>, <5, 1, 1> } although it is
> done with 4 boxes.

I tried to  make the code work like that, but it was more complex.

> Of course, this is only true so long as f is set to 1, with higher
> values the results won't look the same...

That is the problem indeed.

I might try to make it work anyway. It should be possible by making the
first "blok" a union of 8 box{0, <5,1,1>}. Then setting the level to 3
will - should :-) - have the same effect as the level 4 in the old file.

But I will do that tommorow since i need some sleep now.

Greetings,

JWV

BTW, thanks to all of you for all the replies!


news:40818b8d$1@news.povray.org...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> JWV wrote:
> | The level-4 render was to much for my laptop :-(. It used 2GB of memory
> | while parsing, and it wasn't finished jet.
> |
> | I will post the source in p.b.sf if someone wants to give it a try on a
> | machine with a LOT of memory  :-).
> |
> It should be possible to decrease the amount of memory required
> (divide it by 4). At the first iteration, since blok is a simple cube,
> balk is equivalent to a box { <0, 0, 0>, <5, 1, 1> } although it is
> done with 4 boxes. Even with that I don't have enough RAM to give it a
> try from what you're all saying ("only" 512M) but some of you might
> want to try it.
>
> Of course, this is only true so long as f is set to 1, with higher
> values the results won't look the same...
>
> Jerome
> - --
> ******************************
> *      Jerome M. Berger      *
> * mailto:jbe### [at] ifrancecom *
> *  http://jeberger.free.fr/  *
> ******************************
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFAgYuNqIYJdJhyixIRAtY8AKCPvNA3q/2eie6vUFSATB7U9P5O8QCgkBSE
> tJrAJDRGPjd29WnMz9FE/h8=
> =WXIA
> -----END PGP SIGNATURE-----


Post a reply to this message

From: "Jérôme M. Berger"
Subject: Re: many cubes [45 KB]
Date: 18 Apr 2004 07:59:23
Message: <40826d9b@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

	Here it is at recursion 4...

		Jerome

- --
******************************
*      Jerome M. Berger      *
* mailto:jbe### [at] ifrancecom *
*  http://jeberger.free.fr/  *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAgm2ZqIYJdJhyixIRAn7xAJ9GAPreW0mjdGtMkAtxAjit2cTTkQCfU42j
kVlZLwukg0ibNBmTNU1xEMQ=
=RbfS
-----END PGP SIGNATURE-----


Post a reply to this message


Attachments:
Download 'blok.jpg' (45 KB)

Preview of image 'blok.jpg'
blok.jpg


 

From: JWV
Subject: Re: many cubes [45 KB]
Date: 18 Apr 2004 08:03:34
Message: <40826e96@news.povray.org>
very cool!, but you turned of the reflection of the ground plane didn't you?

How long did it take to parse/render?

Greetings,

JWV


news:40826d9b@news.povray.org...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Here it is at recursion 4...
>
> Jerome
>
> - --
> ******************************
> *      Jerome M. Berger      *
> * mailto:jbe### [at] ifrancecom *
> *  http://jeberger.free.fr/  *
> ******************************
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFAgm2ZqIYJdJhyixIRAn7xAJ9GAPreW0mjdGtMkAtxAjit2cTTkQCfU42j
> kVlZLwukg0ibNBmTNU1xEMQ=
> =RbfS
> -----END PGP SIGNATURE-----
>


----------------------------------------------------------------------------
----


Post a reply to this message

From: "Jérôme M. Berger"
Subject: Re: many cubes [45 KB]
Date: 18 Apr 2004 14:25:14
Message: <4082c80a@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

JWV wrote:
| How long did it take to parse/render?
|

	Parse time: 19s
	Render time: 3236s (~55mn)

	The computer used is an Athlon XP 2700+ with 2x256M of RAM in dual
channel mode and 1GB of swap running linux mandrake 9.1 (kernel
upgraded to 2.4.22)

		Jerome
- --
******************************
*      Jerome M. Berger      *
* mailto:jbe### [at] ifrancecom *
*  http://jeberger.free.fr/  *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAgsgJqIYJdJhyixIRAk9lAKCdc4d8N+qOB3cs6N53NU788F9R+wCgj5UF
aUQsLh3ytNglrW5WHRnSJ4I=
=HYFZ
-----END PGP SIGNATURE-----


Post a reply to this message

From: "Jérôme M. Berger"
Subject: Re: many cubes [45 KB]
Date: 19 Apr 2004 13:40:39
Message: <40840f17@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

	Higher resolution version (1152x864) is at
http://jeberger.free.fr/tmp/blok.jpg

	Render time was 28min????

		Jerome

- --
******************************
*      Jerome M. Berger      *
* mailto:jbe### [at] ifrancecom *
*  http://jeberger.free.fr/  *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAhA8WqIYJdJhyixIRAsXTAJ4gPp4sfmldBsVfT9yNCHoltcN/4ACghnUw
2J7t3HdTml6eCMC+ZQ8QewU=
=CZQf
-----END PGP SIGNATURE-----


Post a reply to this message

From: Fredrik Eriksson
Subject: Re: many cubes [75 KB]
Date: 19 Apr 2004 15:26:43
Message: <opr6pxmsrnzjc5hb@news.povray.org>
On Sat, 17 Apr 2004 19:27:53 +0200, JWV <jwv|at|planet.nl> wrote:
> Thanks for trying it! The level 4 scene should have about 48^4=5.308.416
> cubes. I am not sure how much memory is used for this amount, but it 
> apears
> to be quite a lot.

There are ways to overcome such limitations and render fractals with 
greater recursion depth. The most effective (in my experience) is to 
generate a mesh (either externally or in POV-SDL) of the fractal at a 
convenient depth, and then use that mesh as the low level building block 
in the bigger fractal. The reduction in memory usage can be quite 
dramatic. The important thing is to keep the total number of objects 
within reasonable bounds. 48^4 cubes is a little much for POV-Ray to 
handle; 48^2 or 48^3 mesh instances might work better. Unfortunately, 
POV-Ray doesn't handle huge meshes very well, but you might be able to 
reach level 5 (or more) that way.

---
FE


Post a reply to this message

From: Fredrik Eriksson
Subject: Re: many cubes [75 KB]
Date: 20 Apr 2004 16:00:28
Message: <opr6rtu8fxzjc5hb@news.povray.org>
On Mon, 19 Apr 2004 21:26:42 +0200, Fredrik Eriksson <noo### [at] nowherecom> 
wrote:
> There are ways to overcome such limitations and render fractals with 
> greater recursion depth. The most effective (in my experience) is to 
> generate a mesh (either externally or in POV-SDL) of the fractal at a 
> convenient depth, and then use that mesh as the low level building block 
> in the bigger fractal. The reduction in memory usage can be quite 
> dramatic. The important thing is to keep the total number of objects 
> within reasonable bounds. 48^4 cubes is a little much for POV-Ray to 
> handle; 48^2 or 48^3 mesh instances might work better. Unfortunately, 
> POV-Ray doesn't handle huge meshes very well, but you might be able to 
> reach level 5 (or more) that way.


Just to show that it's possible:

http://hem.bredband.net/b230591/povray/cubefractal5_2048.jpg (828 kB)
http://hem.bredband.net/b230591/povray/cubefractal6_4096.jpg (2.69 MB)


---
FE


Post a reply to this message

From: Roberto Amorim
Subject: Re: many cubes [45 KB]
Date: 20 Apr 2004 16:51:06
Message: <40858d3a@news.povray.org>
> Higher resolution version (1152x864) is at
> http://jeberger.free.fr/tmp/blok.jpg
>
> Render time was 28min????

Is that POV or Pixie?


Post a reply to this message

From: Dan P
Subject: Re: many cubes [75 KB]
Date: 20 Apr 2004 21:29:38
Message: <4085ce82@news.povray.org>
Fredrik Eriksson wrote:

> On Mon, 19 Apr 2004 21:26:42 +0200, Fredrik Eriksson <noo### [at] nowherecom> 
> wrote:

<snip />

> Just to show that it's possible:
> 
> http://hem.bredband.net/b230591/povray/cubefractal5_2048.jpg (828 kB)
> http://hem.bredband.net/b230591/povray/cubefractal6_4096.jpg (2.69 MB)

God bless recursion, every one in a one in a one in a one...
-- 
Respectfully,
Dan P
http://<broken link>


Post a reply to this message

From: "Jérôme M. Berger"
Subject: Re: many cubes [45 KB]
Date: 21 Apr 2004 13:27:40
Message: <4086af0c@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

| Is that POV or Pixie?
|
	Both my renders were done with pixie...

		Jerome
- --
******************************
*      Jerome M. Berger      *
* mailto:jbe### [at] ifrancecom *
*  http://jeberger.free.fr/  *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAhq8LqIYJdJhyixIRAu45AJkBdMlHf7cKISheH638sPvcC/YlFACfTuy4
C/a1/nogEGaY59x2PcCDOlI=
=ZdrS
-----END PGP SIGNATURE-----


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 1 Messages >>>

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