![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Chris Huff <chr### [at] yahoo com> wrote:
: If space is so
: tight that you can't have a program generate a temporary file about
: 10.5MB (1024*768*(5*2-byte color components + one 4-byte depth
: component, color and depth seem to be the most commonly used)), I
: suggest you clean out your hard drive. :-)
I counted about 105 MB, not 10.5 MB. That's a whole lot more.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <390dace8@news.povray.org>, Warp <war### [at] tag povray org>
wrote:
> I counted about 105 MB, not 10.5 MB. That's a whole lot more.
It sure is, you are off by a factor of 10.
1024*768 = 786432
5 color components per pixel at 2 bytes each, plus one depth value at 4
bytes:
14 bytes per pixel
786432*14 = 11010048 bytes per 1024*768 image processed with filters
using depth and color(the two most commonly used variables).
11010048/1048576(the number of bytes in a megabyte) = 10.5 MB.
Remember that only the necessary information is saved...I think
"find_edges" and "normal" are the only ones which use normal
information, and none use UV coordinates or intersection point.
Including the post_process filters I made, the only ones which use depth
are "stars", "normal", "find_edges", "focal_blur", and "depth". Most
only use color information, which has to be stored in some form anyway.
If only those filters are used, you have a 7.5MB temporary file for a
1024*768 image.
--
Christopher James Huff - Personal e-mail: chr### [at] yahoo com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Chris Huff <chr### [at] yahoo com> wrote:
: 5 color components per pixel at 2 bytes each
You said earlier that the color components are stored as floats.
: Remember that only the necessary information is saved...
I was calculating the worst case scenario, where everything is needed.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <390ff368@news.povray.org>, Warp <war### [at] tag povray org>
wrote:
> Chris Huff <chr### [at] yahoo com> wrote:
> : 5 color components per pixel at 2 bytes each
>
> You said earlier that the color components are stored as floats.
Of course, that should be 4 bytes.
That would be 15MB for filters which only use color, and 21MB for
filters using color and depth. Not tiny files, but certainly a lot
smaller than 100MB. And since the are *temporary* files, they are gone
when the render finishes.
> : Remember that only the necessary information is saved...
>
> I was calculating the worst case scenario, where everything is needed.
That scenario is currently impossible to reach, the filters don't exist
for it...and if it was possible, most of them would be wasted anyway,
since some(like depth or normal) would completely replace previously
processed images.
--
Christopher James Huff - Personal e-mail: chr### [at] yahoo com
TAG(Technical Assistance Group) e-mail: chr### [at] tag povray org
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |