You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by davidfrogley September 7, 2023
Code listings in chapter 10.2 do not include changes to the hittable_list class, which should include an override of the pdf_value and generate methods from the hittable base class. Without these, the rendered image uses the default value for both of these (0 for pdf_value, and vec3(1,0.0) for generate). This results in a completely black image, except for the light on the ceiling.
The text was updated successfully, but these errors were encountered:
hollasch
changed the title
Book 3, Chapter 10.2 Sampling Directions towards a Hittable - Updates to Hittable List Missing
Book 3.10.2: Sampling Directions towards a Hittable - Updates to Hittable List Missing
Apr 19, 2024
Discussed in #1256
Originally posted by davidfrogley September 7, 2023
Code listings in chapter 10.2 do not include changes to the
hittable_list
class, which should include an override of thepdf_value
andgenerate
methods from thehittable
base class. Without these, the rendered image uses the default value for both of these (0
forpdf_value
, andvec3(1,0.0)
forgenerate
). This results in a completely black image, except for the light on the ceiling.The text was updated successfully, but these errors were encountered: