POV-Ray : Newsgroups : povray.general : Heightfield problem : Re: Heightfield problem Server Time
19 Nov 2024 15:53:46 EST (-0500)
  Re: Heightfield problem  
From: Warp
Date: 16 Feb 2002 14:05:08
Message: <3c6ead64@news.povray.org>
The very first thing you should try is to use double_illuminate to see if
it's the known problem about normal inversion (although it doesn't seem so).

  If it's not that, then it *might* be that your color depth is not high
enough with respect to the resolution of the image. Even though you say
that you are generating a 16-bit image, it just might be that the program
you are using to generate the heightfield image just uses 256 different
heights (which can be very insufficient with such high pixel resolution).

  If nothing helps, just try making your heightfield image with lower
pixel resolution.
  The algorithm POV-Ray uses for calculating the normal vectors (which I
think is just the regular average-the-normals-of-adjacent-triangles) is
not perfect and causes bad shading in some cases.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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