RayTracingInOneWeekend Save

RayTracing tutorial use Java&Cpp

Project README

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.

  1. RayTracingInOneWeekend

  2. RayTracingTheNextWeek

  3. RayTracingTheRestOfYourLife

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

cp11

Chapter 10: Positionable camera

Chapter 9: Dielectrics

Chapter 8: Metal

cp8

Chapter 7: Diffuse Materials

Chapter 6: Antialiasing

Cp6

Chapter 5: Surface normals and multiple objects.

cp5-1

Chapter 4: Adding a sphere

CP4

Chapter 3: Rays, a simple camera, and background

Cp3

Chapter 2: The vec3 class

Chapter 1:Output an image

cp1

Open Source Agenda is not affiliated with "RayTracingInOneWeekend" Project. README Source: yhcheer/RayTracingInOneWeekend
Stars
43
Open Issues
0
Last Commit
2 years ago

Open Source Agenda Badge

Open Source Agenda Rating