|
![](/i/fill.gif) |
In article <mat### [at] netplex aussie org>,
Matthew Pace <mat### [at] lycos com> wrote:
> Is there another way to do question 1? I am asking becuase I am
> creating my own fur macros (for the experience and bragging rights),
> and using trace() seems like a hassle because of all the times I would
> have to adjust the start vector. Any other suggestions would be greatly
> appreciated.
Your objection doesn't really make any sense. You have to sample
multiple points anyway. There's no way to get the normal at a point
without that point.
Or do you already have a point on the surface of the object? In that
case, if the object is simple enough, you can just figure it out from
the type of object and the point. For example, the normal at a point on
the surface of a sphere is that point minus the center of the sphere.
This is a far less general solution, since you have to figure it out for
the specific object you're using, and that can sometimes be very
difficult. It also requires you to already have a point on the surface
of the object.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |