All Projects → JulianStambuk → OpenTK-PathTracer

JulianStambuk / OpenTK-PathTracer

Licence: other
C# OpenGL Path Tracer, Real-Time GPU accelerated

Programming Languages

C#
18002 projects
GLSL
2045 projects

Projects that are alternatives of or similar to OpenTK-PathTracer

nerv pathtracer
a pathtracer with physically based rendering in mind
Stars: ✭ 27 (+22.73%)
Mutual labels:  glsl, raytracing, path-tracing
Nabla
OpenGL/OpenGL ES/Vulkan/CUDA/OptiX Modular Rendering Framework for PC/Linux/Android
Stars: ✭ 235 (+968.18%)
Mutual labels:  glsl, raytracing, path-tracing
fluctus
An interactive OpenCL wavefront path tracer
Stars: ✭ 55 (+150%)
Mutual labels:  raytracing, path-tracing
Messier87
A realtime raytracing blackhole renderer
Stars: ✭ 53 (+140.91%)
Mutual labels:  glsl, raytracing
DuEngine
An efficient interactive C++ renderer for ShaderToy-alike demos with 2D/3D/CubeMap/Video/Camera/LightField/Volume textures. (Partially used in my I3D 2018 papers)
Stars: ✭ 62 (+181.82%)
Mutual labels:  glsl, raytracing
Retrace.gl
Create, ray trace & export programatically defined Signed Distance Function CSG geometries with an API suited for generative art - in your browser! 🎉
Stars: ✭ 149 (+577.27%)
Mutual labels:  glsl, raytracing
LumillyRender
Monte Carlo path tracing implementation on Rust
Stars: ✭ 36 (+63.64%)
Mutual labels:  raytracing, path-tracing
ray-tracer
A simple ray tracing engine
Stars: ✭ 27 (+22.73%)
Mutual labels:  raytracing, path-tracing
Nau
Nau - OpenGL + Optix 3D Engine
Stars: ✭ 18 (-18.18%)
Mutual labels:  glsl, raytracing
sph vulkan
SPH simulation in Vulkan compute shader.
Stars: ✭ 29 (+31.82%)
Mutual labels:  glsl, compute-shader
droplet-render
Volumetric cloud modeling and rendering for Blender.
Stars: ✭ 29 (+31.82%)
Mutual labels:  raytracing, path-tracing
Webassembly Raytracer
a performance comparison of a simple raytracer in JavaScript, asm.js, WebAssembly, and GLSL
Stars: ✭ 102 (+363.64%)
Mutual labels:  glsl, raytracing
Shady
CLI tool to render GLSL shaders
Stars: ✭ 79 (+259.09%)
Mutual labels:  glsl, raytracing
NobleRT
A Minecraft shaderpack that enhances one's experience with the help of good-looking graphics and light simulations.
Stars: ✭ 76 (+245.45%)
Mutual labels:  glsl, raytracing
Rayray
A tiny GPU raytracer, using Zig and WebGPU
Stars: ✭ 59 (+168.18%)
Mutual labels:  glsl, raytracing
sdf-2d
A graphics library to enable the real-time rendering of 2D signed distance fields on the web.
Stars: ✭ 70 (+218.18%)
Mutual labels:  glsl, raytracing
webrays
WebRays - Ray Tracing on the Web
Stars: ✭ 38 (+72.73%)
Mutual labels:  raytracing, path-tracing
GLGrassRenderer
OpenGL Grass Renderer
Stars: ✭ 63 (+186.36%)
Mutual labels:  glsl, compute-shader
sph opengl
SPH simulation in OpenGL compute shader.
Stars: ✭ 57 (+159.09%)
Mutual labels:  glsl, compute-shader
ShaderBoiler
Aimed to eliminate preprocessor hell in shaders and kernels.
Stars: ✭ 30 (+36.36%)
Mutual labels:  glsl, compute-shader

C# OpenGL OpenTK Path Tracer

I am presenting a noisy, yet fully Path Traced renderer written in C#.

The calculations and rendering are done in real time using OpenGL.
I upload the whole Scene to a UBO which is then accessed in a Compute Shader where all the Path Tracing happens. Due to the realistic nature of Path Tracers various effects like Soft Shadows, Reflections or Ambient Occlusion emerge automatically without explicitly adding code for any of these effects like you would have to do in a traditional rasterizer.

The renderer also features Depth of Field, which can be controlled with two variables at runtime through ImGui. FocalLength is the distance an object appears in focus. ApertureDiameter controlls how strongly objects out of focus are blured.

If a ray does not hit any object the color is retrieved from a cubemap which can either be 6 images inside the Res folder or a precomputed skybox. The atmospheric scattering in this skybox gets calculated in yet an other Compute Shader at startup.

Screenshots taken via the screenshot feature are saved in the local execution folder Screenshots.

Also see https://youtu.be/XcIToi0fh5c.


Controls

KeyBoard:

  • W, A, S, D => Movment
  • E => Toggle cursor visibility
  • R => Reset scene
  • V => Toggle VSync
  • F11 => Toggle fullscreen
  • LShift => Faster movment speed
  • LControl => Slower movment speed
  • Esc => Close

Mouse:

  • LButton => Select object if cursor is visible

Render Samples

img1

img2

img3

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].