Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RDV_Travail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MARTY Pierre
RDV_Travail
Commits
c4ab2b4b
Commit
c4ab2b4b
authored
3 years ago
by
MARTY Pierre
Browse files
Options
Downloads
Patches
Plain Diff
Update README
parent
6c33a152
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Readme.md
+8
-18
8 additions, 18 deletions
Readme.md
with
8 additions
and
18 deletions
Readme.md
+
8
−
18
View file @
c4ab2b4b
# 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:

... and triangulated meshes:

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:
[

](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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment