|
137 | 137 | Opening the output file (in `ToyViewer` on my Mac, but try it in your favorite viewer and Google
|
138 | 138 | “ppm viewer” if your viewer doesn’t support it) shows this result:
|
139 | 139 |
|
140 |
| -  |
| 140 | +  |
141 | 141 |
|
142 | 142 | </div>
|
143 | 143 |
|
|
536 | 536 |
|
537 | 537 | with $t$ going from zero to one. In our case this produces:
|
538 | 538 |
|
539 |
| -  |
| 539 | +  |
541 | 541 |
|
542 | 542 | </div>
|
543 | 543 |
|
|
651 | 651 | <div class='together'>
|
652 | 652 | What we get is this:
|
653 | 653 |
|
654 |
| -  |
| 654 | +  |
655 | 655 |
|
656 | 656 | </div>
|
657 | 657 |
|
|
727 | 727 | <div class='together'>
|
728 | 728 | And that yields this picture:
|
729 | 729 |
|
730 |
| -  |
| 730 | +  |
731 | 732 |
|
732 | 733 | </div>
|
733 | 734 |
|
|
1239 | 1240 | This yields a picture that is really just a visualization of where the spheres are along with their
|
1240 | 1241 | surface normal. This is often a great way to look at your model for flaws and characteristics.
|
1241 | 1242 |
|
1242 |
| -  |
| 1243 | +  |
1244 | 1245 |
|
1245 | 1246 | </div>
|
1246 | 1247 |
|
|
1428 | 1429 | Zooming into the image that is produced, the big change is in edge pixels that are part background
|
1429 | 1430 | and part foreground:
|
1430 | 1431 |
|
1431 |
| -  |
| 1432 | +  |
1432 | 1433 |
|
1433 | 1434 | </div>
|
1434 | 1435 |
|
|
1603 | 1604 | <div class='together'>
|
1604 | 1605 | This gives us:
|
1605 | 1606 |
|
1606 |
| -  |
| 1607 | +  |
1607 | 1608 |
|
1608 | 1609 | </div>
|
1609 | 1610 |
|
|
1647 | 1648 | <div class='together'>
|
1648 | 1649 | That yields light grey, as we desire:
|
1649 | 1650 |
|
1650 |
| -  |
| 1651 | +  |
1651 | 1653 |
|
1652 | 1654 | </div>
|
1653 | 1655 |
|
|
1727 | 1729 | <div class='together'>
|
1728 | 1730 | After rendering we get a similar image:
|
1729 | 1731 |
|
1730 |
| -  |
| 1732 | +  |
1731 | 1734 |
|
1732 | 1735 | It's hard to tell the difference between these two diffuse methods, given that our scene of two
|
1733 | 1736 | spheres is so simple, but you should be able to notice two important visual differences:
|
|
1806 | 1809 |
|
1807 | 1810 | Gives us the following image:
|
1808 | 1811 |
|
1809 |
| -  |
| 1812 | +  |
1811 | 1814 |
|
1812 | 1815 | </div>
|
1813 | 1816 |
|
|
2130 | 2133 | <div class='together'>
|
2131 | 2134 | Which gives:
|
2132 | 2135 |
|
2133 |
| -  |
| 2136 | +  |
2134 | 2137 |
|
2135 | 2138 | </div>
|
2136 | 2139 |
|
|
2183 | 2186 | <div class='together'>
|
2184 | 2187 | We can try that out by adding fuzziness 0.3 and 1.0 to the metals:
|
2185 | 2188 |
|
2186 |
| -  |
| 2189 | +  |
2187 | 2190 |
|
2188 | 2191 | </div>
|
2189 | 2192 |
|
|
2204 | 2207 | there is a refraction ray at all. For this project, I tried to put two glass balls in our scene, and
|
2205 | 2208 | I got this (I have not told you how to do this right or wrong yet, but soon!):
|
2206 | 2209 |
|
2207 |
| -  |
| 2210 | +  |
2208 | 2211 |
|
2209 | 2212 | </div>
|
2210 | 2213 |
|
|
2308 | 2311 |
|
2309 | 2312 | This gives us the following result:
|
2310 | 2313 |
|
2311 |
| -  |
| 2314 | +  |
2312 | 2316 |
|
2313 | 2317 |
|
2314 | 2318 | Total Internal Reflection
|
|
2429 | 2433 |
|
2430 | 2434 | We get:
|
2431 | 2435 |
|
2432 |
| -  |
| 2436 | +  |
2433 | 2438 |
|
2434 | 2439 | </div>
|
2435 | 2440 |
|
|
2514 | 2519 | <div class='together'>
|
2515 | 2520 | This gives:
|
2516 | 2521 |
|
2517 |
| -  |
| 2522 | +  |
2518 | 2523 |
|
2519 | 2524 | </div>
|
2520 | 2525 |
|
|
2591 | 2596 |
|
2592 | 2597 | gives:
|
2593 | 2598 |
|
2594 |
| -  |
| 2599 | +  |
2595 | 2600 |
|
2596 | 2601 | </div>
|
2597 | 2602 |
|
|
2675 | 2680 |
|
2676 | 2681 | to get:
|
2677 | 2682 |
|
2678 |
| -  |
| 2683 | +  |
2679 | 2684 |
|
2680 | 2685 | And we can change field of view:
|
2681 | 2686 |
|
|
2686 | 2691 |
|
2687 | 2692 | to get:
|
2688 | 2693 |
|
2689 |
| -  |
| 2694 | +  |
2690 | 2695 |
|
2691 | 2696 | </div>
|
2692 | 2697 |
|
|
2828 | 2833 |
|
2829 | 2834 | We get:
|
2830 | 2835 |
|
2831 |
| -  |
| 2836 | +  |
2832 | 2837 |
|
2833 | 2838 | </div>
|
2834 | 2839 |
|
|
2905 | 2910 | <div class='together'>
|
2906 | 2911 | This gives:
|
2907 | 2912 |
|
2908 |
| -  |
| 2913 | +  |
2909 | 2914 |
|
2910 | 2915 | </div>
|
2911 | 2916 |
|
|
0 commit comments