POV-Ray : Newsgroups : povray.binaries.images : 'Accidental' isosurface : Re: 'Accidental' isosurface Server Time
15 Jun 2024 23:20:02 EDT (-0400)
  Re: 'Accidental' isosurface  
From: Kafka
Date: 22 Dec 2009 11:00:01
Message: <web.4b30ec9ace81d185ec0f2a3a0@news.povray.org>
"PM 2Ring" <nomail@nomail> wrote:
> Simple "Mandelbulb" C source code.
> Compile with
> gcc -o Mandelbulb Mandelbulb.c -lm -O3

Greetings all,

Here's my humble contribution. The attached archive contains a C++ program that
computes the density file for the Mandelbulb, but using the GPU through an
OpenGL shader. The OpenGL context is provided by SDL 1.3 (currently still in
beta, but already working well).
Compile with:
g++ -Wall -O3 -msse2 -o mandelbulb_gpu -lGL $($SDL13_DIR/bin/sdl-config --cflags
--libs) mandelbulb_gpu.cpp
....where $SDL13_DIR is where you installed SDL 1.3.
On my system (AMD Athlon 64 X2, nVidia 8500 GT), it computes a density file of
1000x1000x1000 in about 12 seconds (using non-trigonometric expansion provided
elsewhere).

Hope this helps.

Best regards,


Post a reply to this message


Attachments:
Download 'mandelbulb.tar.gz' (3 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.