POV-Ray : Newsgroups : povray.advanced-users : How to read an image pixel by pixel, and a question Server Time
29 Jul 2024 10:25:52 EDT (-0400)
  How to read an image pixel by pixel, and a question (Message 11 to 13 of 13)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Gilles Tran
Subject: Re: How to read an image pixel by pixel, and a question
Date: 15 Nov 2002 11:43:35
Message: <3dd52437@news.povray.org>

web.3dd4d018eff8868284f6eaf50@news.povray.org...
> You might want to try it yourself before you guess. There's more getting
> stored in memory than the picture.

Exactly, which is why memory use related to pixel size of the picture is non
significant for usual screen sizes.
If you have a memory use problem with a tiny 720 x 480 picture then it's
probably a scene-related problem, not a image size one. Memory use *** can
*** be related to image size in some cases (it sure is with radiosity for
instance), but such a small size it's extremely unlikely to cause problems.

Particularly, if you have light buffers running amok, just turn them off
using the "-UL" switch, or reduce the number of lights in your scene.

G.

--

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Christopher James Huff
Subject: Re: How to read an image pixel by pixel, and a question
Date: 15 Nov 2002 13:01:01
Message: <chrishuff-4E41F1.13003115112002@netplex.aussie.org>
In article <web.3dd4d018eff8868284f6eaf50@news.povray.org>,
 "normdoering" <nor### [at] yahoocom> wrote:

> You might want to try it yourself before you guess. There's more getting
> stored in memory than the picture. When I did my picture at full resolution
> it took over an hour and there were things coming up like "vista buffer,"
> "light buffer," etc. I don't quite know what those are.... but those are
> spheres I'm using not pixels.

It wasn't a guess, it was a calculation, finding the number of pixels 
and multiplying by the size used for each one. Using spheres will of 
course use more memory...I didn't go far enough up the thread to find 
out spheres were being used.
But I have done similar things. One particular scene swapped out over 
200MB to disk on this system, with 384MB RAM. It can get impractically 
slow, but shouldn't crash.

The vista and light buffers are to optimize camera and light rays, so 
they only test objects that might be hit. They do take a fairly large 
amount of memory, especially in this type of scene with lots of objects, 
but you can turn them off.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: normdoering
Subject: Re: How to read an image pixel by pixel, and a question
Date: 16 Nov 2002 05:30:05
Message: <web.3dd61d69eff886827748f6790@news.povray.org>
Christopher James Huff wrote:
>In article <web.3dd4d018eff8868284f6eaf50[at]news.povray.org>,
> "normdoering" <nor### [at] yahoocom> wrote:
>
>> You might want to try it yourself before you guess. There's more getting
>> stored in memory than the picture. When I did my picture at full resolution
>> it took over an hour and there were things coming up like "vista buffer,"
>> "light buffer," etc. I don't quite know what those are.... but those are
>> spheres I'm using not pixels.
>
>It wasn't a guess, it was a calculation, finding the number of pixels
>and multiplying by the size used for each one. Using spheres will of
>course use more memory...I didn't go far enough up the thread to find
>out spheres were being used.
>But I have done similar things. One particular scene swapped out over
>200MB to disk on this system, with 384MB RAM. It can get impractically
>slow, but shouldn't crash.
>
>The vista and light buffers are to optimize camera and light rays, so
>they only test objects that might be hit. They do take a fairly large
>amount of memory, especially in this type of scene with lots of objects,
>but you can turn them off.
>
>Christopher James Huff <cja### [at] earthlinknet>
>http://home.earthlink.net/~cjameshuff/
>POV-Ray TAG: chr### [at] tagpovrayorg
>http://tag.povray.org/
>

Thanks for the info, I didn't know you could turn them off till you and
Gilles Tran told me. What I did was get rid of the light and use "finish
{ambient 1}."

Tomorrow (well, later today, but after I get some sleep) I'll post more and
give you guys a better clue to what this is all about.

--normdoering


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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