POV-Ray : Newsgroups : povray.general : 16-bit grayscale PNGs -> PoV-Ray 16-bit heightfield TGAs? : Re: 16-bit grayscale PNGs -> PoV-Ray 16-bit heightfield TGAs? Server Time
30 Jul 2024 22:22:18 EDT (-0400)
  Re: 16-bit grayscale PNGs -> PoV-Ray 16-bit heightfield TGAs?  
From: Jaime Vives Piqueres
Date: 25 Mar 2008 09:03:32
Message: <47e90634@news.povray.org>

> A recent thread on p.b.i. drew my attention to http://www.buining.com - 
> those 16-bit PNG elevation maps of Earth, the Moon and Mars look 
> tempting! But AFAIK PoV-Ray's height_field functionality can't handle 
> grayscale 16-bit PNGs... are there any tool for conversion into 16-bit 
> heightfield TGAs available? 

I think this should work:

global_settings{hf_gray_16}

plane{z,0
  texture{
   pigment{
    image_map{png "your_file_here" interpolate 2}
    translate -.5
    scale 2.1
   }
   scale <-1,1,1>
   finish{brilliance 0 ambient 1}
  }
}

camera{
  orthographic
  location <0,0,-1>
  up 1*y right 1*y
  angle 90
  look_at 0
}

--
Jaime


Post a reply to this message

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