103 lines
3.8 KiB
Markdown
103 lines
3.8 KiB
Markdown
[](https://codecov.io/gh/Godzil/DoRayMe) [](https://www.codacy.com/manual/Godzil/DoRayMe?utm_source=github.com&utm_medium=referral&utm_content=Godzil/DoRayMe&utm_campaign=Badge_Grade) [](https://coveralls.io/github/Godzil/DoRayMe?branch=master) [](https://github.com/Godzil/DoRayMe/actions/workflows/cmake.yml)
|
|
|
|
DoRayMe
|
|
=======
|
|
|
|
A Quick and dirty raytracer.
|
|
|
|
|
|
This raytracer is made following the book
|
|
"[The Ray Tracer Challenge](https://pragprog.com/book/jbtracer/the-ray-tracer-challenge)" by Jamis Buck.
|
|
|
|
It is writen in C++ with no STL and use [LodePNG](https://github.com/lvandeve/lodepng) to output PNG file and use them
|
|
as texture, also use [NanoJPEG](https://keyj.emphy.de/nanojpeg/) to use jpeg file as texture, and can use use
|
|
[Lua 5.3](https://www.lua.org/) for 3D pattern definition and more to come on the Lua side later..
|
|
|
|
|
|
Examples outputs
|
|
----------------
|
|
|
|
#### From chapter 05 - Sphere intersections:
|
|

|
|
|
|
#### From Chapter 06 - Phong shading:
|
|

|
|
|
|
#### From Chapter 07 - World / Camera / Scenes:
|
|

|
|
|
|
#### From Chapter 08 - Shadows:
|
|

|
|
|
|
#### From Chapter 09 - Planes:
|
|

|
|
|
|
#### From Chapter 10 - Patterns:
|
|

|
|
|
|
#### From Chapter 11 - Reflections, Transparency & Refractions:
|
|

|
|
|
|
###### Bonus: Zooming on a reflective ball:
|
|

|
|
|
|
###### Zooming on a reflection on that ball:
|
|

|
|
|
|

|
|
|
|

|
|
|
|
#### From Chapter 12 - Cubes:
|
|

|
|
|
|
#### From Chapter 13 - Cylinders:
|
|

|
|
###### Bonus:
|
|

|
|
|
|
#### From Chapter 14 - Groups & Bounding boxes:
|
|

|
|
|
|
#### From Chapter 15 - Triangles, Wavefrom OBJ files - Smooth trianges:
|
|

|
|
|
|
#### From Chapter 16 - Constructive Solid Geomety:
|
|

|
|
|
|
#### Bonus (from the forum):
|
|
[Merry Christmas](https://forum.raytracerchallenge.com/thread/16/merry-christmas-scene-description)
|
|

|
|
(about 1min render time using OpenMP on a 2.6Ghz Core i7 3720QM)
|
|
|
|
#### Bonus chapter - Soft shadow / Area light
|
|
###### Without jitter:
|
|

|
|
###### With jitter:
|
|

|
|
|
|
#### Bonus chapter - Texture mapping
|
|
###### Spherical mapping:
|
|

|
|
|
|
###### Planar mapping:
|
|

|
|
|
|
###### Cylindrical mapping:
|
|

|
|
|
|
###### Aligncheck plane:
|
|

|
|
|
|
###### Cubical mapping:
|
|

|
|
|
|
###### Image mapping:
|
|

|
|
|
|
###### Skybox:
|
|

|
|
|
|
###### Large OBJ file:
|
|

|