Skip to content

CestLucas/Ray-Tracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image of Ray-Tracing Balls Image of Ray-Tracing Balls

This is a simple ray-tracing program using C++ and openGL.

Features completed:

  1. Sphere intersection & texture mapping (sphere.cpp -> line 12-32, 48-67)
  2. Triangle intersection & texture mapping (triangle.cpp -> line 20-61, 76-109)
  3. Diffuse & specular shading (scene.app -> 95-112)
  4. Shadows (scene.app -> 84-92)
  5. Recursive reflection/ refraction (scene.app -> 122-160)
  6. Creative original scenes

All renderings of the sample scenes can be found in: /TestScenes

! original scenes location: /MyRenders Scene 1: balls. (balls.png & balls_tricolor.png) Scene 2: minecraft inspired christmas scene (white_christmas.png & holographic_christmas.png)

Original scene ray files & textures used: /Media/MyScenes Scene 1: balls.ray Scene 2: christmas.ray

Source files: /Sources

Bonus:

  1. attenuation for phong illumination model (scene.app -> line 103-109)
  2. fresnel effect (scene.app -> line 152-157)

About

A simple ray tracing program in C++/openGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published