SFML community forums

General => SFML projects => Topic started by: lolz123 on May 30, 2013, 09:54:42 pm

Title: Real-time Path Tracer
Post by: lolz123 on May 30, 2013, 09:54:42 pm
Hi!

I started developing a real-time path tracer with SFML + raw OpenGL, and would like to share my results so far.
These renders are full of visual artifacts caused by bugs in the tracer, but as soon as I iron out those bugs I will upload an executable as well as the source code  ;)

All the ray tracing is done in a GLSL shader, and the scene is uploaded as a set of texture buffers containing the spatial partitioning tree and the geometry/material data.

It loads .obj models, and has multi-bounce global illumination.

(http://i1218.photobucket.com/albums/dd401/222464/pathtracerimg.png)

A version with more samples:

(http://i1218.photobucket.com/albums/dd401/222464/pathtracerimg2.png)
Title: Re: Real-time Path Tracer
Post by: eigenbom on May 31, 2013, 12:25:52 am
sweet. i once upon a time wrote a raytracer in lisp, fun stuff!
Title: Re: Real-time Path Tracer
Post by: lolz123 on June 02, 2013, 01:22:50 am
Here is a picture from a newer version, which refines the image over time. I will release the source code as soon as I figure out why it won't run in release mode!

(http://i1218.photobucket.com/albums/dd401/222464/pathtraced.png)
Title: Re: Real-time Path Tracer
Post by: lolz123 on June 05, 2013, 01:57:56 am
Here it is rendering the Sponza at a whopping 1 frame / second  :P

(http://i1218.photobucket.com/albums/dd401/222464/sponzaImage.png)
Title: Re: Real-time Path Tracer
Post by: lolz123 on June 05, 2013, 02:10:17 am
And this is how a simple test level looks when everything is a mirror (4 bounces, 3 fps) :o

(http://i1218.photobucket.com/albums/dd401/222464/allMirror.png)
Title: Re: Real-time Path Tracer
Post by: Vovosunt on June 05, 2013, 07:05:33 pm
This looks great! :D
Need to make one of my own once I have some free time.