SFML community forums
General => SFML projects => Topic started 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)
-
sweet. i once upon a time wrote a raytracer in lisp, fun stuff!
-
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)
-
Here it is rendering the Sponza at a whopping 1 frame / second :P
(http://i1218.photobucket.com/albums/dd401/222464/sponzaImage.png)
-
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)
-
This looks great! :D
Need to make one of my own once I have some free time.