











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












Bounding Boxes ย Simple Objects ย Generic Objects ย Part Objects ย Compound Objects ย More?
Bottom Left = Pl = (x1,y1,z1) ย Bottom Right = Pr = (x2,y2,z2)
Page 358 Ray Tracing From the Ground Up
public class ConcreteObject extends GeometricObject { private BoundingBox box;public boolean hit(Ray ray){ if (!box.hit(ray)) return; โฆ } @Override public boolean getBoundingBox(){return box;} }
(p โ c)*(p โ c) โ r 2
(o + td โ c) * (o + td โ c) โ r 2
2
a = d*d ย b = 2 (o โ c) * d ย c = (o โ c) * (o โ c) โ r 2
(o-p)
points must not be colinear
(q โ r) x (s โ r)
p(a,b,y) = qa + rb + sy ย a + b + y = 1 ย For inside the triangle ย (a,b,y) (0,1) 3 ย Substituting (a = 1 โ b โ y) gives ย p(a, b, y) = q + b (r โ q) + y (s โ q) ย (b,y,b+y) (0,1) 3
Calculate the hitpoint on the plane ย Measure the distance from the center of the diskto the hit point ย Save time ย Donโt calculate SQRT Docsity.com
What are Generic Objects? ย Objects where ย Example ย Sphere ย r= ย Center = (0,0) ย Why? ย We can only ray trace objects we can
Limit the y values ย Limit the angle ย Must compute the hist point angle
Limit y values ย Limit angle
Limit Either of the angles
Solid Cylinder
Bounding Boxes ย Regular Grids ย Hierarchal Grids ย Dividing objects into space boxes ย Dividing rays into categories ย See paper (Fast Ray Tracing by Ray Classification)
Low Rez
3 ย High Rez
5 ย Better Models
7