POV-Ray : Newsgroups : povray.beta-test : Unsmooth smooth HF shading : Re: Unsmooth smooth HF shading Server Time
2 Nov 2024 11:24:37 EDT (-0400)
  Re: Unsmooth smooth HF shading  
From: Warp
Date: 26 Nov 2001 18:02:39
Message: <3c02ca0f@news.povray.org>
Rune <run### [at] mobilixnetdk> wrote:
: I don't know if this is a bug or a limitation but the shading of
: height-fields with abrupt changes is very ugly when smooth shading is turned
: on. See povray.beta-test.binaries

  Could it be that in some of those almost-vertical triangles all the normal
vectors are pointing too high (as they are automatically calculated by, I
think, averaging triangle normals or whatever)? This is a pretty common
problem in smooth triangles. The regular triangles have unperturbed normals,
and thus their lighting corresponds better to what one expects.

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


Post a reply to this message

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