Roman Reiner wrote:
> Hmm. It's getting tricky. Reading works already for uncompressed HDRI's. But
> MegaPOV's output isn't uncompressed in most cases ;-) Could someone give me
> a hint about the RLE-encoding used by MegaPOV as there seem to be many
> variations of this compression method.
No, there is exactly one compression scheme used by MegaPOV for writing
HDR files. It can also read a different older compression though.
> The file you linked says
>
>>i don't recommend writing your own routine to decode it -- use what's in color.c.
>
> but as i'm limited to java this doesn't help me very much ;-)
The file format docs also say the algorithm is descibed in detail in
Chapter II.8 of Graphics Gems II. I doubt however this will be of much
help if translating a few lines of C code into Java is impossible for you.
Christoph
--
POV-Ray tutorials, include files, Landscape of the week:
http://www.imagico.de/ (Last updated 31 Oct. 2005)
MegaPOV with mechanics simulation: http://megapov.inetart.net/
Post a reply to this message
|