Skip to content

A 3D fractal renderer that creates high resolution photorealistic images of your own custom fractals, why not even take a flight around them in flight mode...

Notifications You must be signed in to change notification settings

GameDev46/fractal_raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GameDev46 - fractal_raytracer GameDev46 - fractal_raytracer

Static Badge Static Badge Static Badge

stars - fractal_raytracer forks - fractal_raytracer


gamedev46 gamedev46

fractal_raytracer

A 3D fractal renderer that creates high resolution photorealistic images of your own custom fractals, why not even take a flight around them in flight mode...

How does it work?

The program makes use of a technique called raymarching to estimate the distances to the 3D fractals and the basic geometric shapes. To represent a physical object in raymarching you need a sign distance function (SDF) that simply return the shortest distance to that object when give any 3D point in space. You can find each scene's SDF in its corresponding shader file (e.g. shader0.glsl contains the SDF of the menger sponge on line 195 - sorry for the terrible naming system), which is called in the getSceneSDF() (line 239) function (which is named the same in every shader file)

Screenshots

About

A 3D fractal renderer that creates high resolution photorealistic images of your own custom fractals, why not even take a flight around them in flight mode...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published