POV-Ray : Newsgroups : povray.general : Storing height_field mesh between frames of an animation Server Time
31 Jul 2024 16:22:19 EDT (-0400)
  Storing height_field mesh between frames of an animation (Message 11 to 14 of 14)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Thorsten Froehlich
Subject: Re: Storing height_field mesh between frames of an animation
Date: 12 Mar 2007 13:10:01
Message: <45f59779$1@news.povray.org>
scam wrote:
> But won't the image file need to be converted back into a mesh at parse
> time?
> 
> Just to clarify, I have 5000x5000 pixel png image 

That is at least 25 MB, even if it is compressed to like 12 MB, which do
take a second or two to read from disk alone - if you have a fast disk and
the file is stored linearly on disk!

Heightfields in POV-Ray are not converted to meshes.

	Thorsten


Post a reply to this message

From: Alain
Subject: Re: Storing height_field mesh between frames of an animation
Date: 12 Mar 2007 18:04:52
Message: <45f5dc94$1@news.povray.org>
Thorsten Froehlich nous apporta ses lumieres en ce 12-03-2007 14:10:
> scam wrote:
>> But won't the image file need to be converted back into a mesh at parse
>> time?

>> Just to clarify, I have 5000x5000 pixel png image 

> That is at least 25 MB, even if it is compressed to like 12 MB, which do
> take a second or two to read from disk alone - if you have a fast disk and
> the file is stored linearly on disk!

> Heightfields in POV-Ray are not converted to meshes.

> 	Thorsten
Somebody know how to make a virtual drive in windows? That way, assuming that 
you have enough RAM, the access will get a huge boost.

-- 
Alain
-------------------------------------------------
"The way England treats her prisoners, she doesn't deserve to have any." 
        --Oscar Wilde


Post a reply to this message

From: John VanSickle
Subject: Re: Storing height_field mesh between frames of an animation
Date: 12 Mar 2007 20:01:21
Message: <45f5f7e1$1@news.povray.org>
Warp wrote:
> John VanSickle <evi### [at] hotmailcom> wrote:
> 
>>>  There's no way of storing a heightfield in a file.
> 
> 
>>Sure you can.  You have POV-Ray render the height_field with a gradient 
>>texture running from rgb <0,0,0> to rgb <1,1,1>, with the hf_gray 
>>setting on.
> 
> 
>   That's not a heightfield, that's an image file. The heightfield will
> need to be generated from it. There's no advantage.

There is if an image-based height field parses faster than a 
formula-based one.

Regards,
John


Post a reply to this message

From: Nicolas George
Subject: Re: Storing height_field mesh between frames of an animation
Date: 13 Mar 2007 08:20:26
Message: <45f6a51a@news.povray.org>
Alain  wrote in message <45f5dc94$1@news.povray.org>:
> Somebody know how to make a virtual drive in windows? That way, assuming that 
> you have enough RAM, the access will get a huge boost.

That is not a good idea. If the file is read twice and there is enough
memory, the OS will keep it in memory, and the second read does not require
disc access. If there is not enough memory, the OS needs to free memory, and
discarding a cached file to re-read it later is cheaper than swapping
something out and later in.


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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