DEFract 0.5 - 3D fractal explorer. Now with GUI!

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Patalo
Prole
Posts: 41
Joined: Sun Apr 29, 2012 1:15 pm
Contact:

DEFract 0.5 - 3D fractal explorer. Now with GUI!

Post by Patalo » Sat May 12, 2012 11:47 pm

Warning : This project need a quite decent computer to run well. It uses alot of pixeleffects and might CRASH AND BURN your computer. beware.
I keep this first post updated, so it will always have the lasts instructions

Hi everyone !
I want to present you a thing I made these last days : a 3D fractal explorer.
First, a pic :
Image
Mandelbox

So you can explore in real-time this kind of objects. Do not expect awesome performances, however. It depends on the fractal.

The way the fractals are defined is pretty simple : you «just» have to implement a function that, given a point in space, tell the distance between this point and the closest point of the fractal. After that, DEFract tries to render it. But don't worry, a lot of cool example fractals are already included. Write such a function require high mathematical level (that I don't have), but it is easy to play with one to modify the fractal.

The good news is that the fractals' definition are stored in your LÖVE save folder, and you can edit them, and as soon as you save, the fractal will update (if opened).
Also, it supports animated fractal (by inserting the "time" variable in the fractal code), and recording of animated fractal.

So, how to use :

Keybinding :
  • Arrows to move
  • pageup/pagedown to change focal distance
  • Mouse to look around
  • left control to open GUI control panel
  • Tab to switch between fractals
  • F2 to take a screenshot. It will be store in the LÖVE saving directory.
  • Escape to exit
With the last update, the GUI (accessible with left control) (made with Quickie :) ) allows you to play with the parameters of the fractal easily!

A rotated Menger Sponge :
Image

New pictures for the new version!
Image

Image

Image

Image

Oh, and this is the third time I play with GLSL, and the third time I play with LÖVE. So don't expect this to work perfectly. I spotted some bugs just as I typed. If it crashes please give me the error (and your graphical card name if the error is related to the pixeleffect code).
Sorry for the long post, I'm quite excited to present my work.

Oh last thing, play some trippy music while exploring fractals. Like this : http://www.youtube.com/watch?v=gsnS8mfwtJw

Browse the source on github : https://github.com/plule/DEFract/
Cheers.
Attachments
defract-0.5.3.love
0.5.3 : gui, adaptative quality, no reload by default
(465.17 KiB) Downloaded 440 times
Last edited by Patalo on Tue Sep 11, 2012 5:08 pm, edited 5 times in total.
Current project : 3D fractal explorer DEFract ( viewtopic.php?t=9193)
Github : https://github.com/plule/ | Twitter : http://twitter.com/plule_

coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: DEFract 0.2 - A 3D fractal explorer

Post by coffee » Sun May 13, 2012 12:33 am

Very beautiful math art. Unfortunately for me gives error: error in fractal code, cannot compile shader error 0:26 constant integer overflow. Perhaps too much for my DuoCore only machine.

User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: DEFract 0.2 - A 3D fractal explorer

Post by TechnoCat » Sun May 13, 2012 12:35 am

Image

coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: DEFract 0.2 - A 3D fractal explorer

Post by coffee » Sun May 13, 2012 12:40 am

TechnoCat wrote:
I also like you have the feeling that everytime I run the love mac graphic card/machine hangs a bit in distress. (even that a blue love screen appears right away).

User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: DEFract 0.2 - A 3D fractal explorer

Post by Boolsheet » Sun May 13, 2012 12:42 am

Yeah, there's the issue at render.lua:33: Usage of uninitialized value 'i'.

Pretty neat! Fractals are lovely.
Shallow indentations.

User avatar
veethree
Inner party member
Posts: 814
Joined: Sat Dec 10, 2011 7:18 pm

Re: DEFract 0.2 - A 3D fractal explorer

Post by veethree » Sun May 13, 2012 12:49 am

My display driver crashed when i ran this. The screenshots look awesome though.

User avatar
ishkabible
Party member
Posts: 241
Joined: Sat Oct 23, 2010 7:34 pm
Location: Kansas USA

Re: DEFract 0.2 - A 3D fractal explorer

Post by ishkabible » Sun May 13, 2012 1:44 am

this is amazing! This is the kind of stuff that keeps me coming back the this community.

User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: DEFract 0.2 - A 3D fractal explorer

Post by josefnpat » Sun May 13, 2012 3:41 am

Ran like a dog in heat in linux. Fantastic!
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push

User avatar
jradich
Party member
Posts: 100
Joined: Mon Dec 12, 2011 8:44 pm

Re: DEFract 0.2 - A 3D fractal explorer

Post by jradich » Sun May 13, 2012 4:44 am

This made love crash for me... :huh:
Losing a friend's trust is the fastest way to lose a friend, forever. FOREVER!

User avatar
Jasoco
Inner party member
Posts: 3650
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: DEFract 0.2 - A 3D fractal explorer

Post by Jasoco » Sun May 13, 2012 7:27 am

I just get a black screen in 0.8.0. Pressing space does show the information. But nothing renders.

Post Reply

Who is online

Users browsing this forum: No registered users and 129 guests