POV-Ray : Newsgroups : povray.bugreports : "Unknown error code" when using 12800x9600 as output with Rev 3.7 : Re: "Unknown error code" when using 12800x9600 as output with Rev 3.7 Server Time
29 May 2023 12:20:38 EDT (-0400)
  Re: "Unknown error code" when using 12800x9600 as output with Rev 3.7  
From: clipka
Date: 22 Apr 2015 04:46:26
Message: <55375fe2$1@news.povray.org>
Am 21.04.2015 um 23:29 schrieb Christian Baun:
> Le_Forgeron <jgr### [at] freefr> wrote:
>> The temporary buffer for 12800 x 9600 output is
>> sizeof(double)*5*dimensions (*) : that's 124F80000 bytes in hex, more
>> than can be represented on 32 bits.
> Hello,
> I have one more question.
> How can the value 5 in the formular be explained?
> 3 is quite easy to explain because of RGB. But why 5 ?
> Is it because of an alpha channel?

Theoretically, only 4 channels would be required (and if alpha output 
isn't desired, 3 channels would actually do); however, all colour 
storage inside POV-Ray has traditionally been using the "Red, Green, 
Blue, Transmit, Filter" 5-channel colour model all throughout the 
program, in each and every nook and cranny. Since the release of 3.7.0, 
some effort has been made to clean up the internal colour handling to 
only use a 3-channel RGB or 4-channel RGBA (or RGBT) colour model where 
possible, but this process is still ongoing, and result image storage is 
one area that hasn't been tackled yet.

I'm a bit puzzled though why a large image should result in problems, as 
a mechanism has been in place for quite a while now to place large 
output image buffers on hard disk rather than main memory, and this 
mechanism is designed to cope with image sizes way beyond 4GB even on 
32-bit systems. (Unless you happen to still use a Fat32 hard disk 
partition, which indeed doesn't support files of 4GB size or more.)

Post a reply to this message

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