POV-Ray : Newsgroups : povray.beta-test : Heightfield bug (most probably an inverted normals problem) : Re: Heightfield bug (most probably an inverted normals problem) Server Time
13 Aug 2022 19:39:15 EDT (-0400)
  Re: Heightfield bug (most probably an inverted normals problem)  
From: Warp
Date: 21 Jan 2002 18:54:38
Message: <3c4caa3e@news.povray.org>
Let me guess the reason for this: When povray calculates the ray-hf
itersection, it returns the normal inverted if the regular normal was at
an angle <90 degrees with respect to the incoming ray.
  There might be some archaic reason for this and it doesn't matter with
non-smooth heightfields, but it causes a misbehaviour when a smooth triangle
is oriented so that it faces the camera but some of its normal vectors are
pointing away from it.

-- 
#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-2021 Persistence of Vision Raytracer Pty. Ltd.