Logo by mauxuam - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

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. January 18, 2022, 05:46:09 AM


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
  Print  
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 6635 times)
Description: has Mandelbulb formula and others
0 Members and 1 Guest are viewing this topic.
cbuchner1
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).

http://github.com/vain/GPUTracer

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:
scons
and to run the program displaying a Mandelbulb
./run.sh

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/

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



WWW
« 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
Logged

www.subblue.com - a blog exploring mathematical and generative graphics
visual.bermarte
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
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Double Precision CUDA GTX 200 OpenGL GLSL Fractal Programs mrrgu 3 3548 Last post January 06, 2010, 08:39:16 AM
by Snakehand
compile/run glsl shader as C++ Programming marius 11 6242 Last post October 05, 2011, 12:07:57 AM
by marius
mrdoob's GLSL sandbox Images Showcase (Rate My Fractal) visual.bermarte 0 2056 Last post December 10, 2011, 09:36:02 AM
by visual.bermarte
WebGL for hosting GLSL Programming « 1 2 » willvarfar 19 4244 Last post April 15, 2013, 03:26:00 PM
by flexiverse
3D fractal raytracer CAD? Fractal Programs Alef 1 1828 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.115 seconds with 26 queries. (Pretty URLs adds 0.009s, 2q)