Logo by Khaotik - 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 the official fractalforums.com Youtube Channel
 
*
Welcome, Guest. Please login or register. April 19, 2024, 04:31:37 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
  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: Create a 3D fractal generator program from scratch, what will it take?  (Read 8673 times)
0 Members and 1 Guest are viewing this topic.
ac4937
Forums Newbie
*
Posts: 1


« on: March 04, 2017, 03:20:17 PM »

I am interested in learning how to create a fractal program from scratch and was wondering how to go about it. 
Some more specific questions I have are how to utilize ray tracing in an efficient way when computing the fractals as well as the ideal language to write such a program in.
Thanks!
Logged
hobold
Fractal Bachius
*
Posts: 573


« Reply #1 on: March 04, 2017, 07:43:13 PM »

From where are you starting? If you never wrote a program before, allow your self some time to learn the ropes. If you never programmed 3D graphics, you will first need to understand a few mathematical tools for the required geometry.

If you programmed a raytracer before, then you will find the so-called "distance estimated" fractals are fairly easy to add. All the fractal
specialties can be concentrated in the object's intersectRay() method, leaving the rest of the raytracer unchanged. (That's not the fastest software architecture, but a very good starting point.)

The best programming language is hard to decide. Any language you are familiar with is probably better than a language new to you - unless you specifically want to learn a new language. Object Orientation is usually good for a traditional raytracer (the concept matches the algorithm). A system programming language is usually good for speed. I daresay most fully featured ray tracers were implemented in C++, but that is only a guess.

If you hope to eventually reach perfection with your fractal renderer, you might probably end up with GPGPU ("general purpose graphics processing unit") programming. That means a few innermost loops would have to be programmed in some specialized language, such as CUDA, OpenCL, or GLSL, which are all dialects of C.
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #2 on: March 05, 2017, 12:02:39 AM »

Three years if you are very good  afro
Logged

No sweat, guardian of wisdom!
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
create 3D fractal using images? 3D Fractal Generation teamfresh 10 6446 Last post March 26, 2010, 01:13:43 AM
by Fractal_Artist
How to create 'unique' fractal art with M3D (or how not to) Mandelbulb 3d « 1 2 » kameelian 16 13334 Last post April 28, 2012, 02:04:19 AM
by PhotoComix
create axolotl fractal - for university.... Let's collaborate on something! « 1 2 3 » cKleinhuis 40 10026 Last post January 29, 2013, 01:36:26 PM
by matty686
Do z-->z/c² or z-->z*c² create a fractal General Discussion « 1 2 » Chillheimer 21 11748 Last post May 28, 2017, 09:49:27 AM
by Adam Majewski
Tips on speeding up Scratch-based fractal programs? Programming greentexas 3 15695 Last post August 06, 2017, 08:25:16 PM
by tsl

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.15 seconds with 24 queries. (Pretty URLs adds 0.005s, 2q)