Skip to content
Snippets Groups Projects
Commit c4ab2b4b authored by MARTY Pierre's avatar MARTY Pierre
Browse files

Update README

parent 6c33a152
No related branches found
No related tags found
No related merge requests found
# Homework assignment
Programme permettant de générer avec du raytracing une image :
- Avec un canard affiché en maillage
- Anaglyphe
- Une étoile de la mort (une sphère creusé par une autre sphère
Add environment maps:
![](https://raw.githubusercontent.com/ssloy/tinyraytracer/homework_assignment/out-envmap.jpg)
... and triangulated meshes:
![](https://raw.githubusercontent.com/ssloy/tinyraytracer/homework_assignment/out-envmap-duck.jpg)
All the boring code (image/obj files serializer etc) is already there; to obtain the above image it suffices to add 10-20 lines of code.
Pour réduire le nombre de calculs, nous avons défini une sphère autour du canard, et nous effectuons
les calculs de collision du rayon avec les triangles du canard seulement si le rayon passe par la sphère.
## compilation
```sh
git clone --recurse-submodules https://github.com/ssloy/tinyraytracer.git
cd tinyraytracer
git checkout homework_assignment
git submodule update --init
git clone --recurse-submodules https://gitlab.univ-lorraine.fr/marty26u/rdv_travail
cd rdv_travail
mkdir build
cd build
cmake ..
make
```
You can open the project in Gitpod, a free online dev evironment for GitHub:
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ssloy/tinyraytracer/tree/homework_assignment)
On open, the editor will compile & run the program as well as open the resulting image in the editor's preview.
Just change the code in the editor and rerun the script (use the terminal's history) to see updated images.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment