Ray Tracing Box Intersection: (3,8) to (6,-1), (-2,3), and i-5j

Click For Summary
SUMMARY

The discussion focuses on determining the intersection of a ray with a defined box in a 2D space. The box is defined by vertices at (2,1), (5,1), (5,5), and (2,5). The ray originates from (3,8) and is analyzed for three endpoints: (6,-1), (-2,3), and a direction vector of i-5j. The key method involves solving the parameterized equations of the ray and the box boundaries to find values of t and u that indicate intersection.

PREREQUISITES
  • Understanding of ray-box intersection algorithms
  • Familiarity with parameterized equations in 2D geometry
  • Basic knowledge of vector mathematics
  • Experience with graphical sketching for geometric problems
NEXT STEPS
  • Study ray-box intersection algorithms in computational geometry
  • Learn about parameterized equations and their applications in 2D space
  • Explore vector mathematics, focusing on direction vectors and their implications
  • Practice graphical sketching techniques to visualize geometric intersections
USEFUL FOR

Mathematicians, computer graphics developers, and anyone involved in geometric computations or ray tracing algorithms.

haddow64
Messages
14
Reaction score
0
Ok, so this is probably a really basic question, and I've got a feeling that my brain is just too 'fuzzy' just now and that all my problem is is simple arithmetic, but here it goes...

1. Determine whether or not the box with vertices at (2,1), (5,1), (5,5), and (2,5) is intersected by the ray originating at (3,8) and:

(i) ends at (6,-1)
(ii) ends at (-2,3)
(iii) has direction i-5j



Box:
AB: (2+3u / 1) -(1)
CD: (5-3u / 5) -(2)
BC: (5 / 1+4u) -(3)
AD: (2 / 1+4u) -(4)

(i) Ray (3,8) to (6,-1)
(3+3t / 8-9t)

(1) & (i) -> (2+3u / 1) = (3+3t / 8-9t)


How do I get this down to give t and u to show that intersection occurs? I'm sorry that this is such a basic question, I've been working all day and don't seem to be able to think properly just now.

Thanks in advance for any help.
 
Physics news on Phys.org
Take your ray for each of the problems and intersect with the lines that form the boundaries of the box, look at the intersection points and draw conclusions from there. Even a simple graphical sketch of the problem might tell you what which lines you have to consider and which you don't.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K