Sample scene for CSG \o/

This commit is contained in:
Godzil
2020-03-06 21:55:32 +00:00
parent b5ee92c544
commit 57eff4830e
15 changed files with 147 additions and 72 deletions

View File

@@ -17,101 +17,83 @@ as texture, also use [NanoJPEG](https://keyj.emphy.de/nanojpeg/) to use jpeg fil
Examples outputs
----------------
**From chapter 05 - Sphere intersections:**
#### From chapter 05 - Sphere intersections:
![Chapter 5 rendering test](output/ch5_test.png)
**From Chapter 06 - Phong shading:**
#### From Chapter 06 - Phong shading:
![Chapter 6 rendering test](output/ch6_test.png)
**From Chapter 07 - World / Camera / Scenes:**
#### From Chapter 07 - World / Camera / Scenes:
![Chapter 7 rendering test](output/ch7_test.png)
**From Chapter 08 - Shadows:**
#### From Chapter 08 - Shadows:
![Chapter 8 rendering test](output/ch8_test.png)
**From Chapter 09 - Planes:**
#### From Chapter 09 - Planes:
![Chapter 9 rendering test](output/ch9_test.png)
**From Chapter 10 - Patterns:**
#### From Chapter 10 - Patterns:
![Chapter 10 rendering test](output/ch10_test.png)
**From Chapter 11 - Reflections, Transparency & Refractions:**
#### From Chapter 11 - Reflections, Transparency & Refractions:
![Chapter 11 reflections rendering test](output/ch11_reflection.png)
Bonus: Zooming on a reflective ball:
###### Bonus: Zooming on a reflective ball:
![Chapter 11 zooming on a ball](output/ch11_zooming_on_reflective_ball.png)
Zooming on a reflection on that ball:
###### Zooming on a reflection on that ball:
![Chapter 11 zooming on a reflection](output/ch11_reflection_on_ball.png)
![Chapter 11 refraction rendering test](output/ch11_refraction.png)
![Chapter 11 rendering test](output/ch11_test.png)
**From Chapter 12 - Cubes:**
#### From Chapter 12 - Cubes:
![Chapter 12 rendering test](output/ch12_test.png)
**From Chapter 13 - Cylinders:**
#### From Chapter 13 - Cylinders:
![Chapter 13 rendering test](output/ch13_test.png)
Bonus:
###### Bonus:
![Chapter 13 cone test](output/ch13_cone.png)
**From Chapter 14 - Groups & Bounding boxes:**
#### From Chapter 14 - Groups & Bounding boxes:
![Chapter 14 rendering test](output/ch14_test.png)
**From Chapter 15 - Triangles, Wavefrom OBJ files - Smooth trianges:**
#### From Chapter 15 - Triangles, Wavefrom OBJ files - Smooth trianges:
![Chapter 15 Triangles and teapots](output/ch15_teapot_objfile.png)
**Bonus (from the forum):**
#### From Chapter 16 - Constructive Solid Geomety:
![Chapter 16 CSG](output/ch16_test.png)
#### Bonus (from the forum):
[Merry Christmas](https://forum.raytracerchallenge.com/thread/16/merry-christmas-scene-description)
![Merry Christmas](output/christmasball.png)
(about 1min render time using OpenMP on a 2.6Ghz Core i7 3720QM)
**Bonus chapter - Soft shadow / Area light**
Without jitter:
#### Bonus chapter - Soft shadow / Area light
###### Without jitter:
![Area light without jitter](output/arealight_test_nojitter.png)
With jitter:
###### With jitter:
![Area light witht jitter](output/arealight_test.png)
**Bonus chapter - Texture mapping**
Spherical mapping:
#### Bonus chapter - Texture mapping
###### Spherical mapping:
![Spherical mapping](output/uvmap_checkeredsphere.png)
Planar mapping:
######Planar mapping:
![Planar mapping](output/uvmap_checkeredplane.png)
Cylindrical mapping:
###### Cylindrical mapping:
![Cylindrical mapping](output/uvmap_checkeredcylinder.png)
Aligncheck plane:
###### Aligncheck plane:
![Aligncheck plane](output/uvmap_aligncheckplane.png)
Cubical mapping:
###### Cubical mapping:
![Cubical mapping](output/uvmap_checkeredcube.png)
Image mapping:
###### Image mapping:
![Image mapping](output/uvmap_earth.png)
Skybox:
###### Skybox:
![Skybox](output/uvmap_skybox.png)