Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7856387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:41:27+00:00 2026-06-02T20:41:27+00:00

Actually, I’ve ever read the algorithm described here: https://education.siggraph.org/static/HyperGraph/raytrace/rtinter3.htm This algorithm can decide whether

  • 0

Actually, I’ve ever read the algorithm described here: https://education.siggraph.org/static/HyperGraph/raytrace/rtinter3.htm
This algorithm can decide whether a ray hit the axis-aligned box.

In the algorithm, it computes the intersection distance of the planes, that is:
T1 = (boxmin – o) / d
T2 = (boxmax – o) / d
boxmin(xl,yl,zl) is the minimum extent of the box and boxmax(xh,yh,zh) is the maximum extent of the box. o(xo,yo,zo) is the origin point of ray and d(xd,yd,zd) is the direction vector of ray. They are all vector3 or float3 variables.

Then the algorithm finds the largest component in T1 and smallest component in T2 and set them to Tnear and Tfar respectively. If Tnear<Tfar, then ray hit the box.

Although it’s very elegant, I don’t understand why this algorithm can do so, is there any math theory?

I cannot understand why they need the T1 and T2 and why they should be computed like that and what is the meaning of Tfar and Tnear in math.
Maybe it seems like we have the equation of line in 3D space, that is, (x-x0)/xd = (y-y0)yd = (z-z0)/zd, and then set x,y,z to boxmin and boxmax. But I’m not sure.

Thanks a lot for explain this for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T20:41:29+00:00Added an answer on June 2, 2026 at 8:41 pm

    In 3D geometry, t often stands for the position on a line of some point. Lines are often defined by x0 + n*t, where x0 is a point on the line (often the “origin”), and n is the direction vector of the line. t_min and t_max are the t values for two intersection points.. It happens that when t_min < t_max, the line intersected the box, hence their names.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Actually here is a similar topic with little practical value. As far as I
Actually these are 3 questions: Which optimization algorithm should I use to optimize the
Actually, I dont know if it's a crossdomain ajax problem. Here is my problem:
Actually it's quite hard to describe: I want to implement an algorithm which compares
Actually, I need to build binaries for different languages - Java, Pascal (Delphi/FPC), C++,
Actually, this question seems to have two parts: How to implement pattern matching? How
Actually, I'm using this way. Do you have a better way? private bool AcceptJson(HttpRequest
Actually my question is all in the title. Anyway: I have a class and
Actually in the center of current view, above all other objects. Cross-browser and without
Actually I have two questions. (1) Is there any reduction in processing power or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.