Skip to content

Geometric Algebra Raytracer using c2ga and OpenGL

Notifications You must be signed in to change notification settings

torresf/ga-raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ga-raytracer

Florian Torres

Geometric Algebra 2D Raytracer using c2ga (from Garamon) and OpenGL.

Getting started

git clone https://github.com/torresf/ga-raytracer
cd ga-raytracer
mkdir build
cd build
cmake ..
make -j
src/ga-raytracer

Controls

Maintenir clic gauche et déplacer sa souris Déplacer la lumière dans la scène
+ Augmenter la taille (rayon) de la lumière
- Diminuer la taille (rayon) de la lumière
⬆ (Flèche du haut) Augmenter l’intensité de la lumière
⬇ (Flèche du bas) Diminuer l’intensité de la lumière
S Basculer entre différents modes d’ombres : Aucune ombre Ombres basiques Ombres avancées

Optimisation

  • glTexImage2D
  • Randomize array of pixel to draw
  • Draw only range by range of pixels
  • In fragment shader, fill the blanks based on neighbours pixels color.

TODO

  • Create point
  • Create point pair
  • Create line
  • Create circle
  • Intersect lines
  • Intersect circles
  • Project point on line
  • Project point on circle
  • Display the two points from a point pair
  • IsPointInCircle
  • Fix mirror bug in intersection with circle
  • Check for memory leak

About

Geometric Algebra Raytracer using c2ga and OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published