Errata to _An Introduction to Ray Tracing_, first edition, edited by Andrew Glassner (glassner@microsoft.com), Academic Press 1989. compiled by Eric Haines (erich@acm.org) from all authors' contributions version 1.4 date: 7/8/99 ----- p. 14, section 2.7, line 5: change the second "transmitted ray" to "refracted ray". ----- p. 34, line 2: change "Rather then present" to "Rather than presenting". ----- p. 37, line 7 of text: change "is the closest intersection point on" to "is the closest intersection distance on". ----- p. 37, line 8 of text: change "If no such point exists" to "If no such root exists". ----- p. 38, in the Example, after "First normalize": a right bracket ("]") is missing on the line beginning with "Rd = [". ----- p. 52, equation (C9): change "(in other words, if Vd > 0)" to "(in other words, if Vd < 0)". ----- p. 52, bottom: Change "Step 2: 3 additions, ..." to "Step 2: 3 additions, 3 multiplies, 1 division, and 1 compare". The sentence after these steps should read, "This gives a total of 8 additions/subtractions, 9 multiplies, 1 division, and 3 compares for the worst case." ----- p. 57, two thirds down: the plane equation should be "P = [1 2 1 2]". [error in all editions] ----- p. 58, Figure 8: change the axes' labels from "X" and "Y" to "U" and "V". ----- p. 60, third equation in (E2): change "Nd" to "Na". ----- p. 62, first line after equation (E11): change "substituting v for u" to "substituting v for u and substituting Nb for Nc". ----- p. 66, lines 7 and 8 of algorithm: change "if t1 > tnear, set t1 = tnear" to "if t1 > tnear, set tnear = t1". Change "if t2 < tfar, set t2 = tfar" to "if t2 < tfar, set tfar = t2". ----- p. 69, first line after equation (G5): change "can be factored out" to "can be deleted". ----- p. 70, lower right corner of matrix in (G2): change "315" to "-315". ----- p. 70, halfway down page, on down: the calculations for t0 and t1 are shown incorrectly. First, the leading "(" sign in each calculation should be deleted. More importantly, the term "-(-3.46)" should also appear over the denominator "2*4.67". The answers are correct. To summarize: -(-3.46) - sqrt( SAME AS BEFORE ) t0 = ----------------------------------- 2 * 4.67 = -10.3 and: -(-3.46) + sqrt( SAME AS BEFORE ) t1 = ----------------------------------- 2 * 4.67 = 11.1 ----- p. 70, last line: change "t0 is positive" to "t1 is positive". ----- p. 77, references: change reference 9 from "Siggraph 269-278" to "Siggraph '86 Proceedings, p. 269-278, August 1986." ----- p. 86, last paragraph before Algebraic Surfaces header: change "where all the the intersections of the ray with all the objects in the CSG tree are required" to end as "may be required". ----- p. 88, equation "t = etc": change from "t = etc" to "t = -etc", i.e. a minus sign is missing, so negate the right hand side of the equation. ----- p. 91, last formula in the Sphere section (in the text): change to x1^2 + y1^2 + z1^2 = 1 ^ subscript was "0" ----- p. 91, in the Paraboloid section, second equation: change the two minus signs to plus signs (i.e. before z1 and z0). ----- p. 93, torus equation corrections: change two equations a2 = 2(x1^2+y1^2+z1^2)((x0^2+y0^2+z0^2)-(a^2+b^2)) + 4 * (x0x1+y0y1+z0z1)^2 + 4a^2z1^2 ^ ^^ ^ was "2" add was "-" a1 = 4 * (x0x1+y0y1+z0z1)((x0^2+y0^2+z0^2)-(a^2+b^2)) + 8a^2 * z0 * z1 ^ was "-" a0 = ((x0^2+y0^2+z0^2)-(a^2+b^2))^2 - 4a^2(b^2-z0^2) ^ squaring was left off ----- p. 95, last sentence before the Simplicial Splines and Steiner Patches section: change "of" to "or, i.e. it should read "numerical techniques or subdivision algorithms". ----- p. 95, last formula on the page: change to z(u,v) = h y(v) ^ subscript was "x" ----- p. 100, Figure 7 is wrong. The upper figure is in error; the lower part is correct. In the upper figure, the outer contour is the silhouette of a 3D parametric surface. Curve c1 is the intersection of one plane with that surface, and c2 is the intersection of another plane, perpendicular to the first. The line of intersection of the two planes is collinear with the ray, indicated by the line with the arrow. The other three lines in the figure are extraneous and should be ignored. The lower part of the figure shows the two curves in uv space. ----- p. 101, the last sentence in the Bicubic Patches section: change "this can involve a loss of extra computation" should be "this can involve extra computation". ----- p. 101, the second equation in the Numerical Methods section: change the second "=" in the line to a "+" (it's the only equation with two "=" in it). ----- p. 105, the 2-D line equation: change to (y1)x - (x1)y - (x0y1 - y0x1) = 0 ^ was a "+" ----- p. 108, formula for f: This does not agree with Fig. 10. Using the same notation as in the figure, change to: For this shape, f is 2 2 2 2 (x-r (u)) + (y-r (u)) + (z - r (u)) - a (u) = 0 x y z where (r , r , r ) is the center of the sphere and a is the radius. x y z ----- p. 139, all equations in (7c) and the first part of (7e): missing a minus sign in front of the right term. This all works out because in (7gamma) [which should be (7g)] all roots are covered. ----- p. 139, second equation in (7c): the "T" should be an "N", see (6b) for the next step. ----- p. 140, equation (7h): missing right parenthesis, change to "...- 1)))N." ----- p. 148, section on distribution term D, 8th line: change "the angle between L and H" to "the angle between N and H". ----- p. 156, section 5.4, 2nd paragraph: change "spectral transmission curve" to "specular transmission curve". ----- p. 158, in Fdt(lambda) definition: change "diffuse reflection" to "diffuse transmission". ----- p. 158, line immediately after Fdt(lambda) definition: change "We note that the diffuse reflectance" to "We note that the diffuse transmittance". ----- p. 238, Fig. 24: A chunk is missing in the upper left corner. The labels should read: "Directions crossed with", and "Applies to". ----- p. 260, reference by Gervautz: change "Comput. Graph." to "Computers and Graphics". ----- p. 288, immediately after the DERIVATION OF REFRACTION FORMULAS header: The introductory paragraph is missing. It reads: We derive three alternative formulas for the refracted ray direction in ray tracing in order to prove their equivalence and to demonstrate the process of translating physical laws into optimized computational formulas. It is common knowledge that light rays refract when they strike an interface between two different transparent media, such as air-water, air-glass, or glass-water. In 1621 Dutch mathematician Willebrord Snell discovered a formula quantifying this observation: the ratio of the sines of the incident and refracted angles equals the ratio of the indices of refraction of the two materials. Snell's law is: eta sin( theta ) = eta sin( theta ) 1 1 2 2 where theta-sub-1 is the angle of incidence, theta-sub-2 is the angle of refraction (both measured from the perpendicular to the interface) and eta-sub-1 and eta-sub-2 are the two indices of refraction on the incident and refracted sides of the interface, respectively. Light passing through a material slows relative to its speed in a vacuum by a factor equal to the index of refraction of that material. In fact, Snell's law is a simple consequence of this speed variation and Fermat's _Principle of Least Time_, which states that light takes the fastest path to get from one point to another [Feynman63]. For computation we need to recast Snell's law in terms of (x,y,z) direction vectors. This can be done in several different ways. In the derivations below we make extensive use of angles and trigonometry, but thankfully, it is possible to eliminate all of these terms from the final formulas, so theta-sub-1 and theta-sub-2 need never be computed. As a convention, vectors are upper case and scalars are lower case. ----- END