POV-Ray : Newsgroups : povray.binaries.images : Height Field Problems(50k + 65k) : Re: Height Field Problems(50k + 65k) Server Time
18 Aug 2024 18:16:52 EDT (-0400)
  Re: Height Field Problems(50k + 65k)  
From: Warp
Date: 21 Mar 2001 10:48:02
Message: <3ab8cd32@news.povray.org>
Tekno Frannansa <tek### [at] evilsuperbraincom> wrote:
: Does anyone know what's going wrong and how I might fix it?

  As you already noticed by yourself, the problem is that you are using
a 256-color image to create your heighfield, which means that there are
only 256 different heights in it. When the resolution of the image is
large enough, stairs will inevitable appear.
  The solution is to use a 16-bit image for the heightfield to get 65536
different heights.

-- 
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/


Post a reply to this message

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