RayTracingInOneWeekend
RayTracingInOneWeekend copied to clipboard
RayTracing tutorial use Java&Cpp
RayTracingInOneWeekend
Introduce
《Ray tracing in one weekend》is a good book for ray tracing tutorial, and Peter Shirley implements a simple ray tracing engine by C++.
This is my Ray Tracing Tutorial of JAVA version.
The output of my projects is a PPM(P3) file. You can use ImageMagick to transfer into a JPG file, or you can use other Image Viewer software(eg: XnView) to open it.
#ppm2jpg
import PythonMagick as PM
img = PM.Image(r"C:\Users\yh\Documents\CG\result\Chapter6_20_39_01.ppm")
img.write(r"C:\Users\yh\Documents\CG\result\Cp6.jpg")
All Images of Every Chapters are As follows:
Chapter 12: Where next?

Chapter 11: Defocus Blur

Chapter 10: Positionable camera


Chapter 9: Dielectrics


Chapter 8: Metal

Chapter 7: Diffuse Materials

Chapter 6: Antialiasing

Chapter 5: Surface normals and multiple objects.


Chapter 4: Adding a sphere

Chapter 3: Rays, a simple camera, and background

Chapter 2: The vec3 class
Chapter 1:Output an image
