Errata for the First and Second Printing (Summer 2000)
while (d <= end && (comp(Oi,0)<0.1 || ...should really say
while (d <= end && (comp(Oi,0)<1 || comp(Oi,1)<1 || comp(Oi,2)<1)) {
Also the line that says
lighttau = lightdensity * (li + last_li)/2;should be deleted. The variable is assigned correctly on the previous line.
Similarly, on p. 68, when describing "screen" space, it should also say "...x is right and y is up."
Torus creates the quartic "donut" surface (so it isn't a quadric, but it is defined with two angles, so we let it go). The cross section of a torus is a circle of radius minorradius on the x-z plane, and the angles phimin and phimax define the arc of that circle. It will be swept around the z-axis at a distance of majorradius to create the torus. Thus, majorradius+minorradius defines the outside radius of the torus (its maximum size), while majorradius-minorradius defines the radius of the hole.
Return to the Advanced RenderMan book home page.