Skip to content

johhnry/ray-tracing-cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compute shaders : GPU ray tracing

OpenGL compute shaders exercise : real time GPU ray tracing.

Description

This project was made at ArtFX - TD 4.

Getting Started

Dependencies

This project is using the following libraries :

  • GLFW (Window management)
  • GLEW (OpenGL Extension Wrangler)

Install them :

$ sudo apt install libglfw3-dev libglew-dev

The build system is Meson.

To install Meson, do the following :

$ sudo apt-get install python3 python3-pip python3-setuptools \
                       python3-wheel ninja-build

$ pip3 install --user meson

One line command

You can do the following steps with one line :

$ meson build && cd build && meson compile && cd .. && ./build/src/ray-tracing-cs

Build

To configure the build directory, run :

$ meson build

Then compile it :

$ cd build && meson compile

Execute the program

From the project folder, run the executable (for relative paths like shaders) :

$ ./build/src/ray-tracing-cs

Arguments and options

There's two scenes for now, you can specify it with a number parameter (starting at 1):

$ ./build/src/ray-tracing-cs 2 // Second scene

You can also pass the resolution of the window (by default it's 1024x512 pixels):

$ ./build/src/ray-tracing-cs 1 1920 1080

Sources and documentation

About

Ray tracing on GPU with compute shaders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published