POV-Ray : Newsgroups : povray.beta-test.binaries : HDR image reversed when read : Re: HDR image reversed when read Server Time
19 Apr 2024 19:56:16 EDT (-0400)
  Re: HDR image reversed when read  
From: Trevor G Quayle
Date: 7 Feb 2006 09:40:01
Message: <web.43e8b07ed04d4fba6c4803960@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
> > The radiance HDR format supports different orientations of the image but
> > the reader in POV-Ray treats all the same way currently (just like most
> > other HDR readers around).  So you should make sure the program you use to
> > write the HDR files uses normal (top to bottom, left to right)
> > orientation.
> >
> > Christoph
>
> Opens forwards in HDRShop which I would think is a common HDR program.  It
> also opens forwards in megapov.
>
> -tgq

As a follow up, I tried writing and reading HDR images successively in the
beta.  (i.e., write the HDR, then read the HDR output by POV as an image
map and rewrite, etc.).  This had the effect of flipping the image back and
forth.  It would appear to me that the output is being written correctly,
but that it is being read backwards.  The attached image shows three
successive outputs from this method (converted to jpg by HDRShop)

As a side note, I also noticed that I get "Unrecognized output file format
H" after the render even though the render and image creation was
successful.

SCENE FILE:
//start
camera{orthographic
  up y*2*image_height/image_width
  right x*2
  location <0,0,-2>
  look_at  <0,0,0>
}

#declare Map="beta1.hdr"; //HDR - name of HDR output by POV
box{<0,0,0><1,1,1>
  pigment {image_map {hdr Map once interpolate 2 map_type 0}}
  finish {ambient 1 diffuse 0}
  translate <-0.5,-0.5,0.1>
  scale <2,2*image_height/image_width,1>
}
//end

-tgq


Post a reply to this message


Attachments:
Download 'beta.jpg' (86 KB)

Preview of image 'beta.jpg'
beta.jpg


 

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