Skip to content

jakubg05/Ray-Tracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray Tracing from scratch in C++

⚠️ The main branch is currently going through a big internal rework — I’m planning to merge a bunch of changes I’ve been working on in the next few weeks.

In the meantime, feel free to open pull requests against the community branch so things don’t get lost or conflict with the upcoming update.

Thanks for contributing!

You can watch a YouTube video about this project here (or click the image).
image

Building The Project

Windows (Visual Studio)

  1. Clone this repository:
git clone --recursive https://github.com/jakubg05/ray-tracing.git your-project-name
cd your-project-name
git submodule update --init --recursive 
  1. Right-click the cloned folder and select "Open with Visual Studio," or open Visual Studio and navigate to File -> Open -> CMake... and choose the root CMakeLists.txt.
  2. Run the Debug build.
  3. Create a Release configuration by clicking the x64-Debug dropdown and adding x64-Release.
  4. Choose raytracing.exe from the box on the right and hit the run button.

Project Structure and CMake

  • Core as a Static Library: The core directory contains its own CMakeLists.txt file and is configured to be built as a static library. This means the compiled code from the core directory is packaged into a single .lib (Windows) or .a (Linux) file.

  • Application Linking: The app directory doesn't have its own CMakeLists.txt. Instead, the root CMakeLists.txt handles:

  • Building the executable for the application

  • Linking the application's executable against the core static library

  • Linking the application's executable against the third-party libraries (GLFW, GLEW, etc.)

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published