SkillAgentSearch skills...

RayTracingInOneWeekend

RayTracing tutorial use Java&Cpp

Install / Use

/learn @yhcheer/RayTracingInOneWeekend
About this skill

Quality Score

0/100

Supported Platforms

Universal

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

View on GitHub
GitHub Stars47
CategoryDevelopment
Updated5mo ago
Forks7

Languages

Java

Security Score

77/100

Audited on Oct 11, 2025

No findings