POV-Ray : Newsgroups : povray.general : problem rendering huge image Server Time
1 Nov 2024 21:20:04 EDT (-0400)
  problem rendering huge image (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: stevenvh
Subject: problem rendering huge image
Date: 8 Nov 2010 07:50:00
Message: <web.4cd7f160e88714c7c0721a1d0@news.povray.org>
Hi,
during a rendering job I get a few hundreds of "Intermediate image storage
backing file seek failed" warnings until the rendering stops with a "render
failed" message. Problem is most definitely due to the image size: 19050x7620
pixels. (Lower res renderings work fine)
Can I make POV-Ray render such huge files?
TIA,
Steven

Windows XP Pro
3 GB RAM
POV-Ray v3.7 beta 38


Post a reply to this message

From: Chris Cason
Subject: Re: problem rendering huge image
Date: 8 Nov 2010 08:17:52
Message: <4cd7f880@news.povray.org>
On 8/11/2010 23:47, stevenvh wrote:
> during a rendering job I get a few hundreds of "Intermediate image storage
> backing file seek failed" warnings until the rendering stops with a "render
> failed" message. Problem is most definitely due to the image size: 19050x7620
> pixels. (Lower res renderings work fine)
> Can I make POV-Ray render such huge files?

The next beta ought to solve this issue. Currently the code that handles
the backing files is limited to 2^31 bytes in seeking within the file.

-- Chris


Post a reply to this message

From: Nekar Xenos
Subject: Re: problem rendering huge image
Date: 8 Nov 2010 08:20:13
Message: <op.vlusnjpkufxv4h@go-dynamite>
On Mon, 08 Nov 2010 14:47:28 +0200, stevenvh <nomail@nomail> wrote:

> Hi,
> during a rendering job I get a few hundreds of "Intermediate image  
> storage
> backing file seek failed" warnings until the rendering stops with a  
> "render
> failed" message. Problem is most definitely due to the image size:  
> 19050x7620
> pixels. (Lower res renderings work fine)
> Can I make POV-Ray render such huge files?
> TIA,
> Steven
>
> Windows XP Pro
> 3 GB RAM
> POV-Ray v3.7 beta 38
>
>

Does it also happen with beta 39?

-Nekar Xenos-


Post a reply to this message

From: stevenvh
Subject: Re: problem rendering huge image
Date: 8 Nov 2010 08:35:00
Message: <web.4cd7fbe21b8b01b1c0721a1d0@news.povray.org>
"Nekar Xenos" <nek### [at] gmailcom> wrote:
>
> Does it also happen with beta 39?
>
> -Nekar Xenos-

I'm currently rendering at a lower resolution, still may take some time
(radiosity, you know...). When it finished I'll install 39 and you'll be the
first to know! :-)


Post a reply to this message

From: stevenvh
Subject: Re: problem rendering huge image
Date: 8 Nov 2010 12:30:01
Message: <web.4cd832ce1b8b01b1c0721a1d0@news.povray.org>
"Nekar Xenos" <nek### [at] gmailcom> wrote:
> On Mon, 08 Nov 2010 14:47:28 +0200, stevenvh <nomail@nomail> wrote:
>
> Does it also happen with beta 39?
>

Yes, it also happens with beta 39. Odd thing: the first iteration is very slow
as expected (we're talking about radiosity on a large number of objects), but
when the messages start to pop up, the following iterations are passing very
quickly, until the rendering stops with the "render failed" message while it's
rendering at pixel level. My hunch is that radiosity is ignored; successive
pixels are just generated too quickly.


Post a reply to this message

From: clipka
Subject: Re: problem rendering huge image
Date: 19 Nov 2010 12:52:04
Message: <4ce6b944$1@news.povray.org>
Am 08.11.2010 18:26, schrieb stevenvh:

> Yes, it also happens with beta 39. Odd thing: the first iteration is very slow
> as expected (we're talking about radiosity on a large number of objects), but
> when the messages start to pop up, the following iterations are passing very
> quickly, until the rendering stops with the "render failed" message while it's
> rendering at pixel level. My hunch is that radiosity is ignored; successive
> pixels are just generated too quickly.

That may also be simply due to a low per-pixel radiosity sample density, 
i.e. POV-Ray needs to compute less radiosity samples per pixel. (When 
you increase the resolution of an image, POV-Ray does not automatically 
increase the number of radiosity samples.)


Post a reply to this message

From: Jon Boede
Subject: Re: problem rendering huge image
Date: 6 Dec 2010 15:10:01
Message: <web.4cfd42371b8b01b181884760@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 08.11.2010 18:26, schrieb stevenvh:
>
> > Yes, it also happens with beta 39. Odd thing: the first iteration is very slow
> > as expected (we're talking about radiosity on a large number of objects), but
> > when the messages start to pop up, the following iterations are passing very
> > quickly, until the rendering stops with the "render failed" message while it's
> > rendering at pixel level. My hunch is that radiosity is ignored; successive
> > pixels are just generated too quickly.
>
> That may also be simply due to a low per-pixel radiosity sample density,
> i.e. POV-Ray needs to compute less radiosity samples per pixel. (When
> you increase the resolution of an image, POV-Ray does not automatically
> increase the number of radiosity samples.)

I am seeing this with beta 40 as well... and the image is not huge.

Copied biscuit.pov into my $HOME and...

povray +ibiscuit.pov +v +w1920 +h1200 +a0.3

Says:

==== [Rendering...] ========================================================
Intermediate image storage backing file seek failed.
Rendered 1024 of 2304000 pixels (0%)ile seek failed.
Fatal error in renderer: Frontend halted render.
Intermediate image storage backing file seek failed.
Intermediate image storage backing file seek failed.
Render failed

When I do it at a smaller size:

povray +ibiscuit.pov +v +w320 +h240 +a0.3

It works (in 1.345 seconds of trace time, btw -- nice).


Post a reply to this message

From: Jon Boede
Subject: Re: problem rendering huge image
Date: 6 Dec 2010 15:45:01
Message: <web.4cfd4a671b8b01b181884760@news.povray.org>
A little more information.

When SetLine fails, it fails on the fseek64 because the fseek64 is returning a
non-zero number.

In this case it is returning the value of pos  ... for example on an image that
has an m_Width of 1920 where y = 1, pos = 38400, fseek64 is returning 38400.


Post a reply to this message

From: Jon Boede
Subject: Re: problem rendering huge image
Date: 6 Dec 2010 16:25:00
Message: <web.4cfd54911b8b01b181884760@news.povray.org>
"Jon Boede" <jbo### [at] victhompsoncom> wrote:
> A little more information.
>
> When SetLine fails, it fails on the fseek64 because the fseek64 is returning a
> non-zero number.
>
> In this case it is returning the value of pos  ... for example on an image that
> has an m_Width of 1920 where y = 1, pos = 38400, fseek64 is returning 38400.

This is because the UNIX version of povray fakes up the call to fseek64 as
lseek64(fileno(m_File) ... ) and since they return different values, this causes
confusion.

Have filed this under bugs.


Post a reply to this message

From: Chris Cason
Subject: Re: problem rendering huge image
Date: 6 Dec 2010 16:52:20
Message: <4cfd5b14@news.povray.org>
Here's a workaround until we get a fixed tarball (and which doesn't require
a full re-compile).

Open source/base/image.cpp and add

  #define _FILE_OFFSET_BITS	64

to the start (before any system headers).

Then, replace any instance of fseek64() with fseeko().

That should do it.

-- Chris


Post a reply to this message

Goto Latest 10 Messages Next 3 Messages >>>

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