Skip to content

is is a ray tracer created from scratch in C++ using the SDL2 library. The program allows you to create and render complex 3D scenes by tracing the path of light as it bounces off objects in the scene.

Notifications You must be signed in to change notification settings

ayoub-aitouna/raytracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray Tracer in C++ with SDL2

This is a ray tracer created from scratch in C++ using the SDL2 library. The program allows you to create and render complex 3D scenes by tracing the path of light as it bounces off objects in the scene. The program uses a variety of ray tracing techniques, including shadows, reflections, and refractions, to produce realistic and visually appealing images.

Getting Started

To get started with this ray tracer, you will need to have C++ and SDL2 installed on your computer. You can download SDL2 from the official website at https://www.libsdl.org/download-2.0.php.

Once you have downloaded and installed SDL2, you can clone this repository to your local machine using the following command:

git clone https://github.com/jrayoub/raytracing.git

After cloning the repository, you can build and run the program using C++ compiler. For example, you can run the following command:

change derectory to the folder that contains the app

cd main

make the the app

make

run the app it loads the scene from file scene.rt

./App

Features

  • Simple and intuitive user interface
  • Ability to create and render 3D scenes
  • Support for multiple ray tracing techniques, including shadows, reflections

Examples

Here are some examples of 3D scenes rendered using this ray tracer:

Example Scene 1

Example Scene 2

Example Scene 3

Authors

Feedback

If you have any feedback, please reach out to us at aitounaayoub05@gmail.com

Contributing

Contributions to this project are welcome and encouraged! If you have any bug fixes, feature requests, or other improvements, please feel free to submit a pull request.

About

is is a ray tracer created from scratch in C++ using the SDL2 library. The program allows you to create and render complex 3D scenes by tracing the path of light as it bounces off objects in the scene.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published