POV-Ray : Newsgroups : povray.binaries.images : faked HDRI : Re: faked HDRI Server Time
14 Aug 2024 01:23:36 EDT (-0400)
  Re: faked HDRI  
From: Kari Kivisalo
Date: 31 Dec 2002 09:37:02
Message: <3E11AB93.F4F2D067@luxlab.com>
ingo wrote:
>
> > Povray [...] doesn't use the low byte of 16 bit pngs.
> 
> Ah, never realised that :(

It's easy to test.

// test.pov
// +fn16 +kff2

global_settings{assumed_gamma 2.2}

camera{
  orthographic location -z up y right x
  direction z look_at 0 translate <0.5,0.5,0>
}

#declare M=64; // up to 256 the gradient should be smooth

#if(clock<0.5)
  plane{z,0 pigment{gradient y color_map{[0 rgb 0][1 rgb 1]}}
  finish{ambient 1/M}}
#else
  plane{z,0 pigment{image_map{png "test1.png"}} finish{ambient M}}
#end


_____________
Kari Kivisalo


Post a reply to this message

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