Skip to content

Instantly share code, notes, and snippets.

@iondune
Created June 2, 2017 03:15
Show Gist options
  • Save iondune/637f60ab018801998ff6489010d1c3ad to your computer and use it in GitHub Desktop.
Save iondune/637f60ab018801998ff6489010d1c3ad to your computer and use it in GitHub Desktop.
[CPE473] printrays output for box2.pov
Pixel: [530, 165] Color: (64, 104, 35)
----
Iteration type: Primary
Ray: {0.0000 0.0000 14.0000} -> {0.4382 -0.1379 -0.8882}
Transformed Ray: {-18.3848 0.0000 8.4853} -> {0.9379 -0.1379 -0.3182}
Hit Object: (ID #4 - Box)
Intersection: {7.6552 -2.4083 -1.5164} at T = 17.4688
Normal: {-0.7071 0.0000 0.7071}
Final Color: {0.2516 0.4061 0.1356}
Ambient: {0.0400 0.0400 0.0400}
Diffuse: {0.0183 0.0183 0.0183}
Specular: {0.0000 0.0000 0.0000}
Reflection: {0.1932 0.3478 0.0773}
Refraction: {0.0000 0.0000 0.0000}
Contributions: 0.2000 Local, 0.8000 Reflection, 0.0000 Transmission
----
Iteration type: Reflection
Ray: {7.6543 -2.4084 -1.5160} -> {-0.8882 -0.1379 0.4382}
Hit Object: (ID #6 - Box)
Intersection: {5.0000 -2.8204 -0.2065} at T = 2.9883
Normal: {1.0000 0.0000 0.0000}
Final Color: {0.2415 0.4348 0.0966}
Ambient: {0.1000 0.1800 0.0400}
Diffuse: {0.1415 0.2548 0.0566}
Specular: {0.0000 0.0000 0.0000}
Reflection: {0.0000 0.0000 0.0000}
Refraction: {0.0000 0.0000 0.0000}
Contributions: 1.0000 Local, 0.0000 Reflection, 0.0000 Transmission
--------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment