POV-Ray : Newsgroups : povray.general : normal/slope question : Re: normal/slope question Server Time
7 Aug 2024 01:23:37 EDT (-0400)
  Re: normal/slope question  
From:
Date: 19 Dec 2001 10:15:49
Message: <dkb12uk7ta6f8lkr3b56on9b7qcbnf3po8@4ax.com>
On Wed, 19 Dec 2001 16:00:12 +0100, "Simon Adameit" <gom### [at] gmxde> wrote:
> I want to make a pigment that uses the direction of the normal at each point
> of the surface, this is not possible with trace.

If slope pattern is proportional to normal vie on Direction parameter then I
think

pigment{
     average
     pigment_map{
       [3 slope x color_map{[0 red   -3][1 red   3]}]
       [3 slope y color_map{[0 green -3][1 green 3]}]
       [3 slope z color_map{[0 blue  -3][1 blue  3]}]
     }
   }

returns direction of the normal. But if slope pattern is proportional to the
angle then I'm wrong.

ABX


Post a reply to this message

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