POV-Ray : Newsgroups : povray.binaries.images : It hurts... (~113kau) Server Time
20 Aug 2024 04:19:38 EDT (-0400)
  It hurts... (~113kau) (Message 14 to 23 of 23)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: It hurts... (~113kau)
Date: 23 Sep 2000 15:16:33
Message: <39cd0190$3@news.povray.org>
Nathan Kopp <Nat### [at] koppcom> wrote:
: Actually, if done properly, many of the leaf nodes could be stored on disk
: and cached in memory only as needed.

  Doesn't any disk cache do this already? Most systems use a disk cache
(even DOS if you use smartdrive).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Chris Huff
Subject: Re: It hurts... (~113kau)
Date: 23 Sep 2000 17:12:41
Message: <chrishuff-2AF999.16145223092000@news.povray.org>
In article <39cc0505@news.povray.org>, "Tony[B]" 
<ben### [at] panamac-comnet> wrote:

> Oh, please do look into it Nathan. If anyone can do it it's you. (Or Chris
> H., or Ron P. or... :)

Not me...I haven't touched the radiosity code, and don't know much of 
the algorithms and math behind it. Nathan seems to be the radiosity 
expert...Nathan?

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Thomas Willhalm
Subject: Re: It hurts... (~113kau)
Date: 25 Sep 2000 05:58:48
Message: <qqmd7hs94iu.fsf@ramsen.fmi.uni-konstanz.de>
"Tony[B]" <ben### [at] panamac-comnet> writes:

> > You're using radiosity. The radiosity samples are stored in an octree
> > for faster access. Seems you ran out of memory and when (M)POV took
> > another radiosity sample (during the actual rendering) and tried to
> > store it, it could not 'allocate 144 for [the] octree block.'
> 
> Why can't this [friggin'] octree be stored to the hard disk instead of RAM?

Increase your swap space! By this you use the hard disc instead of RAM.
It is however up to the OS which parts of the memory are transferred to
the disc. Today's hard discs are so large that a GB of swap space is
feasible.

I hope this helps

Thomas



-- 
http://www.thomas.willhalm.de/ (includes pgp key)


Post a reply to this message

From: Gilles Tran
Subject: Re: It hurts... (~113kau)
Date: 25 Sep 2000 13:53:44
Message: <39CF90C1.169122D4@inapg.inra.fr>
"Tony[B]" wrote:

> ...when a render doesn't finish after 1 day, 7 hours, 29 minutes and 1
> second, reporting that there was a "Rendering error. Out of memory. Cannot
> allocate 144 bytes for octree block." Yup, that hurts a lot. Especially when
> you've tried to leave the machine alone, so it renders faster during this
> time period. Can someone tell me why this happened? What is an octree block,
> and why did it eat up all my RAM?
>

Ahh, just happened to me on a 800*600 radiosity image, and I did raise the swap
up to 450 Mb... But I could resume the render without any problem (it had the +C
switch). At least it didn't crash Windows, like post-process does when out of
memory.
I wonder what's going to happen when I'll render the same picture at 16 times
the current size, though. Perhaps I'll render it chunk by chunk.
G.


Post a reply to this message

From: Tony[B]
Subject: Re: It hurts... (~113kau)
Date: 25 Sep 2000 15:31:46
Message: <39cfa822@news.povray.org>
Does the render show discontinuity at the point of +C or did you save the
radiosity to a file?


Post a reply to this message

From: Gilles Tran
Subject: Re: It hurts... (~113kau)
Date: 27 Sep 2000 03:49:53
Message: <39D1A62A.18391A2@inapg.inra.fr>
"Tony[B]" wrote:

> Does the render show discontinuity at the point of +C or did you save the
> radiosity to a file?

No visible discontinuity, but it's in a pretty dark zone, so it's hard to
tell. I didn't save the radiosity to a file. Megapov stopped rather cleanly
and removed the rca file as if it had correctly finished the picture (or so I
remember).
What seems strange to me is that the memory use is lower when only a part of
the picture is rendered.

G.


Post a reply to this message

From: Jérôme Berger
Subject: Re: It hurts... (~113kau)
Date: 27 Sep 2000 06:28:34
Message: <39D1CBD0.9DDE08CA@enst.fr>
Gilles Tran wrote:
> 
> What seems strange to me is that the memory use is lower when only a part of
> the picture is rendered.
> 
	That' not too surprising: there are less radiosity samples to store,
therefore it uses less memory.


-- 

* Doctor Jekyll had something * mailto:ber### [at] inamecom
* to Hyde...                  * http://www.enst.fr/~jberger
*******************************


Post a reply to this message

From: Gilles Tran
Subject: Re: It hurts... (~113kau)
Date: 27 Sep 2000 08:25:32
Message: <39D1E6C4.841FAAE@inapg.inra.fr>


> Gilles Tran wrote:
> >
> > What seems strange to me is that the memory use is lower when only a part of
> > the picture is rendered.
> >
>         That' not too surprising: there are less radiosity samples to store,
> therefore it uses less memory.

Does it mean that a good strategy when rendering a large radiosity image likely to
cause "out of memory" problems is to render it in a batch ?
+ER300 +C
+ER600 +C
+ER900 +C
etc.

Each successive partial render picks up the image where the previous one left it
(solution not tested ?).

G.


Post a reply to this message

From: Jérôme Berger
Subject: Re: It hurts... (~113kau)
Date: 27 Sep 2000 08:58:53
Message: <39D1EF0C.943C7518@enst.fr>
Gilles Tran wrote:
> 
> Does it mean that a good strategy when rendering a large radiosity image likely to
> cause "out of memory" problems is to render it in a batch ?
> +ER300 +C
> +ER600 +C
> +ER900 +C
> etc.
> 
> Each successive partial render picks up the image where the previous one left it
> (solution not tested ?).
> 
	No because in that case, either you didn't save the radiosity data and
you'll see it in the final image, or this data will be reloaded each
time and the last render will use as much memory as the whole would
have...


-- 

* Doctor Jekyll had something * mailto:ber### [at] inamecom
* to Hyde...                  * http://www.enst.fr/~jberger
*******************************


Post a reply to this message

From: Bob Hughes
Subject: Re: It hurts... (~113kau)
Date: 27 Sep 2000 20:48:00
Message: <39d29540@news.povray.org>

news:39D1EF0C.943C7518@enst.fr...
| Gilles Tran wrote:
| >
| > Does it mean that a good strategy when rendering a large radiosity image
likely to
| > cause "out of memory" problems is to render it in a batch ?
| > +ER300 +C
| > +ER600 +C
| > +ER900 +C
| > etc.
| >
| > Each successive partial render picks up the image where the previous one
left it
| > (solution not tested ?).
| >
| No because in that case, either you didn't save the radiosity data and
| you'll see it in the final image, or this data will be reloaded each
| time and the last render will use as much memory as the whole would
| have...

Seemed okay when I tested Gilles idea.  Memory remained constant on all
three partial renders.  I also used save_file to keep the radiosity info and
pass it to the next segment with load_file.  Of course you can't start out
with a +C if there's a previous test render done.
The only problem was with post_process find_edges, where it apparently uses
only the first segment to apply the change for each successive segment.
Same with depth, however soft_glow was okay (I think so) and posterize
almost did okay (not perfect).  Those were the only I checked on.
Attached image shows what I mean.
I didn't see any mention of post_process not working right with partial
renders, maybe this is one of the reasons it didn't make it into POV-Ray
3.5.

Bob


Post a reply to this message


Attachments:
Download 'radiosityagain2.jpg' (5 KB)

Preview of image 'radiosityagain2.jpg'
radiosityagain2.jpg


 

<<< Previous 10 Messages Goto Initial 10 Messages

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