raytracing.github.io icon indicating copy to clipboard operation
raytracing.github.io copied to clipboard

Main Web Site (Online Books)

Results 178 raytracing.github.io issues
Sort by recently updated
recently updated
newest added

Benny Tsang writes: > (Book 3) Listing 30: the highlighting is inconsistent with what is modified, e.g., `attenuation` should be `alb` to be consistent with the function argument.

book 3: Your Life

Benny Tsang writes: > (Book 3) Section 8.3, the addition of the argument `double& pdf` in scatter() is not highlighted in Listing 29. Also, the corresponding changes in other materials...

book 3: Your Life

Benny Tsang writes: > (Book 3) Section 3.7, Listing 15, typo in the `f(double d)` function, the `8.0' should be inside pow(8.0*d, 1./3.).

area: book
book 3: Your Life
level: patch

Benny Tsang writes: > - (Book 3) Section 2.3, Listing 6, in camera::render, the number of subgrids in a pixel `sqrt_spp` is not undefined (it shows up much later in...

Benny Tsang writes: > (Book 2) Section 9.1, Listing 71, when calculating the first hit record (rec1), the "interval::" scope operator may not be needed. In Book 1's Listing 26...

In book 2 chapter 7.1 we introduce class `diffuse_light` and implement method `scatter()`. Book 3 Listing 44 change the signature of `scatter()` of parent class `material`, so all the derived...

Hello, I am studying this chapter 8.2 but I am not following the math behind the transformation. It would be great if you could elaborate more in the chapter how...

level: patch

Snippet of the listing: ```cpp ... double vfov = 90; // Vertical view angle (field of view) point3 lookfrom = point3(0,0,-1); // Point camera is looking from point3 lookat =...

The listing in question: ```cpp ... class lambertian : public material { ... }; class metal : public material { public: metal(const color& a) : albedo(a) {} bool scatter(const ray&...

In the listing: ```cpp #ifndef INTERVAL_H #define INTERVAL_H class interval { public: double min, max; interval() : min(+infinity), max(-infinity) {} // Default interval is empty interval(double _min, double _max) :...