Welcome, Guest. Please login or register.

Author Topic: Raytracer Math Question  (Read 1455 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show all replies
Re: Raytracer Math Question
« on: November 17, 2003, 04:36:09 AM »
Quote

JetRacer wrote:
When a raytracer inside/outside (object) test is performed, a positive or negative float is returned, right?

Is this float the exact distance between the surface and the ray?


Are you saying that the value returned is the (scalar) distance of 'current' position along the ray, from the point on the surface that the ray intersects?

Thats the only logical way I can see that the value would have a different sign on different sides of the surface.
int p; // A