POV-Ray : Newsgroups : povray.newusers : Access to height field data : Re: Access to height field data Server Time
28 Jul 2024 20:19:38 EDT (-0400)
  Re: Access to height field data  
From: jan dvorak
Date: 14 Oct 2008 11:00:12
Message: <48f4b3fc$1@news.povray.org>
Kenneth napsal(a):
> "gregjohn" <pte### [at] yahoocom> wrote:
> 
>>   And then be sure to reset the norm back to
>>   zero at before the next time you use it:
>>
>> #declare norm = <0,0,0>;
>>
>>> #end
>>>
> 
> I don't think that's necessary (I've never found it to be.) norm just needs to
> be 'created' once--as kind of an empty placeholder for the normal vector(s) that
> will be found by tracing. (It can be set up with *any* three values, actually.)
> Then each time trace traces the object, norm will be filled with a REAL normal
> vector. No need to 'empty it out' each time.
> 
What if the trace misses the object?


Post a reply to this message

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