POV-Ray : Newsgroups : povray.general : Height fields : Re: Height fields Server Time
10 Aug 2024 15:21:12 EDT (-0400)
  Re: Height fields  
From: Nieminen Juha
Date: 20 Jan 2000 09:14:15
Message: <38871837@news.povray.org>
Peter Popov <pet### [at] usanet> wrote:
: You can do it in the official version but it's quite a heavier
: solution than using trace(). Convert the hf source picture to ppm,
: then use search/replace to replace all white space with commas, and
: then use the file i/o functions in POV to read it into a 2D array.

  Getting the height in-between the pixels requires some math.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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