POV-Ray : Newsgroups : povray.newusers : Surface normal in pigment user-function : Re: Surface normal in pigment user-function Server Time
29 Jul 2024 00:33:03 EDT (-0400)
  Re: Surface normal in pigment user-function  
From: avariant
Date: 6 Apr 2007 17:10:00
Message: <web.4616b6924f1e00c8fdebbbce0@news.povray.org>
Ok, thanks.  I haven't looked at MegaPOV yet.  I actually went ahead and
modified the source directly to add a reference point tag to the slope
pattern, but it looks like megapov has a lot of other cool things.  I'll
check it out.

Christian Froeschlin <chr### [at] chrfrde> wrote:
> avariant wrote:
>
> > vector from the camera position to the object's center.  But I want to
> > evaluate the angle between the camera vector and the normal of EACH surface
> > point which means, based on the point, the vector from the camera is always
> > changing.
>
> I think the "aoi" pattern in MegaPOV would be just what you need.
> It is similar to slope, except that instead of a fixed direction
> vector, either a reference point or the direction of the incoming
> rendering ray is used.


Post a reply to this message

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