Logo by Trifox - Contribute your own Logo!


it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Visit us on facebook
Welcome, Guest. Please login or register. May 21, 2022, 02:35:06 PM

Login with username, password and session length

The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!

Pages: [1]   Go Down
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: GLSL based GPU raytracer  (Read 6689 times)
Description: has Mandelbulb formula and others
0 Members and 1 Guest are viewing this topic.
Fractal Phenom
Posts: 443

« on: June 06, 2010, 12:44:39 AM »

Here is a C++ and GLSL based raytracer that is entirely open source that I just found by chance (a chance named Google).


It uses a fairly flexible approach with pluggable formulas for objects, such as the Mandelbulb, Quaternion Julia Sets, etc. It is really a good learning tool and a basis for your own experiments, if you intend to experiment with GPU programming using a cross-platform and C-like high level shader language.

The raymarching is a bit primitive (initial fixed step size, plus final bisection). I don't think it uses advanced mechanisms yet, such as a distance estimate.

The code uses the SCons build environment and is under GPL. It was developed by Peter Hofmann. It uses the GLUT library to manage its OpenGL window. To get the sourcecode you need a tool called "git" (TortoiseGit may work on Windows if you prefer a graphical interface)

to get the source code, this this did the trick for me:
git clone http://github.com/vain/GPUTracer
then build this software by calling scons inside the GPUTracer directory like this:
and to run the program displaying a Mandelbulb

I tested this software under Linux only. I believe since he uses the GNU cpp preprocessor to assemble his final .glsl code, it will require the gcc compiler to be present on your target system (i.e. XCode on Mac, MinGW on Windows). The start script was written for a Unix shell, but will likely also run on MinGW.

Find a German language tutorial about this software here: http://www.uninformativ.de/?ndo=single&newsid=108

Peter Hofmann has a DeviantArt page: http://n-to-infty.deviantart.com/gallery/

« Last Edit: June 06, 2010, 01:14:06 AM by cbuchner1 » Logged
Posts: 116

« Reply #1 on: June 07, 2010, 02:21:44 PM »

Interesting find. Will have to see if I can get it compiled on my Mac

www.subblue.com - a blog exploring mathematical and generative graphics
Fractal Fertilizer
Posts: 355

« Reply #2 on: April 28, 2011, 07:04:56 PM »

works fine under OSX:
change (inside GPUTracer.cpp)
'#include <GL/glut.h>' like that '#include <GLUT/glut.h>'
remove '-march=native', '-mtune=native' from SConstruct
there's also something else to remove..(see terminal's output..can't remember it now)
and from terminal just add this at the end:
g++ -o tracer GPUTracer.o Viewport.o -L. -framework OpenGL -framework Glut -lVecMath
compile it again
« Last Edit: April 29, 2011, 11:22:57 AM by visual » Logged
Pages: [1]   Go Down
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Double Precision CUDA GTX 200 OpenGL GLSL Fractal Programs mrrgu 3 3570 Last post January 06, 2010, 08:39:16 AM
by Snakehand
compile/run glsl shader as C++ Programming marius 11 6407 Last post October 05, 2011, 12:07:57 AM
by marius
mrdoob's GLSL sandbox Images Showcase (Rate My Fractal) visual.bermarte 0 2128 Last post December 10, 2011, 09:36:02 AM
by visual.bermarte
WebGL for hosting GLSL Programming « 1 2 » willvarfar 19 4488 Last post April 15, 2013, 03:26:00 PM
by flexiverse
3D fractal raytracer CAD? Fractal Programs Alef 1 1848 Last post June 11, 2013, 05:54:56 PM
by cKleinhuis

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.129 seconds with 29 queries. (Pretty URLs adds 0.008s, 2q)