POV-Ray : Newsgroups : povray.beta-test.binaries : HDR image reversed when read : HDR image reversed when read Server Time: 30 Mar 2017 08:40:15 GMT
  HDR image reversed when read  
From: Trevor G Quayle
Date: 7 Feb 2006 03:50:38
Windows XP Pro - 2.4GHz - 1.0GB RAM - beta11

As can be seen in the attached images, HDR format images seem to be reversed 
when read.   The scene displays simply a box with an image map and is 
identical for both except on uses a BMP format image and the other uses a 
HDR format image, both made from the same original JPG file. This is valid 
for "map_type 0", I haven't tested for others.

SCENE FILE:

//start

#declare Map="megane.hdr"; //HDR
//#declare Map="megane.bmp"; //BMP
camera{orthographic
  up y*2.05*image_height/image_width
  right x*2.05
  location <0,-0.15,-2>
  look_at  <0,-0.15,0>
}
box{<0,0,0><1,1,1> pigment {image_map {hdr Map once interpolate 2 map_type 
0}} finish {ambient 1 diffuse 0} scale <2,1,1> translate <-1,-.5,0.1> } 
//HDR
//box{<0,0,0><1,1,1> pigment {image_map {hdr Map once interpolate 2 map_type 
0}} finish {ambient 1 diffuse 0} scale <2,1,1> translate <-1,-.5,0.1> } 
//BMP

//end

-tgq


Post a reply to this message


Attachments:
Download 'BetatestHDR-37.jpg' (123 KB)
Download 'BetatestBMP-37.jpg' (122 KB)

Preview of image 'BetatestHDR-37.jpg'
BetatestHDR-37.jpg

Preview of image 'BetatestBMP-37.jpg'
BetatestBMP-37.jpg


 

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