My ray tracer supports shadows, subsampling, anti-aliasing, reflections, local lights, background images, quadratic surfaces, and surface transformations. If you download the code, when executing the appletviewer command add the flag
-J-Djava.security.policy=applet.policy
This accesses the file applet.policy, which allows the program to import background images.
The applet renders at 600x600 resolution. When subsampling is used the edges of shadows are extremely pixelated; you can turn subsampling off by clicking the top right button. You can select/deselect multiple surfaces by clicking on them. Once selected, you can use the keyboard to scale them. For the highest quality render, toggle the red/green buttons as in the image below.
| Java Applet |
___________________________________________________________________________________
No comments:
Post a Comment