POV-Ray : Newsgroups : povray.advanced-users : opposite direction of a surface. : Re: opposite direction of a surface. Server Time
28 Jul 2024 22:28:39 EDT (-0400)
  Re: opposite direction of a surface.  
From: Matthew Pace
Date: 12 Nov 2003 23:06:31
Message: <matt-pace-47FB46.20062812112003@netplex.aussie.org>
In article <3fb2f6a0$1@news.povray.org>,


> Hi Matt,
> 
> because you asked in the advanced-users group,
> I assume short answers will suffice ;-)

as long as its more than 3 words ;-)

> First question:
>    You are actually asking for the normal of an object at v1: use trace()
>    to shoot a ray at v1 and get the normal (your v2) at this point.
>    (look for trace at "6.1.4.6 Vector Functions")

Ah, I have heard of good reviews of trace(), I shall check it out and 
see what it can do for me.  I did not know, however, that a normal was 
simply the way the reflection, although I guess it makes sense.

> 
> Second question:
>    The Advanced Tutorial ("4.2 POV-Ray SDL tutorial: A raytracer")
>    should give you some hints, esp. "4.2.3 Short introduction to
>    raytracing" and "4.2.7 Ray-sphere intersection"

Thanks, I shall check that out as well.  I had skimmed over the SDL 
tutorial, but left when I realized it was over my head at the time.


> Sputnik


Thanks Sputnik


Post a reply to this message

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