Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

FractGen 3d fractals in 2d

Share your components here. First one to 100 wins!

FractGen 3d fractals in 2d

Postby keithlostracco » Wed May 22, 2013 11:47 pm

Recently I wrote a shader that used a 2d representation of 3d fractal to texture a surface then I realized that it rendered so fast that it would be worth making a comp to generate these patterns in realtime to just display on their own. So I thought it would be worth posting this component that has 6 3d fractal shapes to choose from then renders and colors them in 2d. It runs extremely fast for fractals I won't get a drop below 60fps unless the iterations get cranked up to the 200ish range and I've found anywhere from 10 to 30 iterations is mostly sufficient.

Most of the parameters are self explanatory ;) One thing to note is that you can use ctrl, alt, ctrl-alt left click to adjust sliders in fine, finer, finest increments.

Some fractals will display nothing if the settings aren't at an appropriate range, there are about 50 presets that you can use as starting points if you can't get an image with a fractal type. Also LFOs are synced to the Touch tempo.

Btw the only post processing are a level and hsv adjust TOP, there is no feedback being used, everything is entirely generated in the shader.

cheers
Keith
Attachments
FractGen.zip
updated Feb 17, 2014
(3.11 MiB) Downloaded 765 times
Last edited by keithlostracco on Mon Feb 17, 2014 4:52 pm, edited 3 times in total.
keithlostracco
 
Posts: 875
Joined: Tue Dec 09, 2008 2:39 pm

Re: FractGen 3d fractals in 2d

Postby itaru » Thu May 23, 2013 5:51 am

WOW this is amazing!!
Thank you for sharing Keith!
itaru
 
Posts: 55
Joined: Sun May 22, 2011 7:24 am

Re: FractGen 3d fractals in 2d

Postby ab30 » Thu May 23, 2013 2:27 pm

Thanks for the shared work. It reminds me sound synthetizers, and it's a good place for learning GLSL.
ab30
 
Posts: 276
Joined: Fri Apr 27, 2012 11:36 am

Re: FractGen 3d fractals in 2d

Postby rodberry » Thu May 23, 2013 5:02 pm

ZOMGWTFBBQ! about sums up my feelings right now.

thanks for sharing such a deep and complex project. I can't wait to clear some stoopid deadlines, open up this project and dive down this particular rabbithole.

I've been putting off learning GLSL and Python so this has strengthened my resolve to set time each day to learn and do a little until I'm comfortable with them.

It's also strengthened my resolve to do stuff and share stuff more. touch has a great and generous community and the culture of sharing is periodically dampened by our realisation that we might actually be able to make money with TouchDesigner! :)

OK, I guess we need to be proprietary about some things but what goes around comes around. I get so much help from others here that I try to share as much as I can.

thanks again!

Rodney
User avatar
rodberry
 
Posts: 1068
Joined: Wed Nov 14, 2007 2:51 pm
Location: Hobart, Tasmania, Australia

Re: FractGen 3d fractals in 2d

Postby keithlostracco » Thu May 23, 2013 5:44 pm

Thanks guys, I'm always happy to share interesting ideas.
It reminds me sound synthetizers


Yeah I come from a music production background so almost all the visual/components I build are designed in an audio synthesis style.
thanks for sharing such a deep and complex project. I can't wait to clear some stoopid deadlines, open up this project and dive down this particular rabbithole.


No problem Rod I am happy to share. Actually it didn't take that long to build. All the UI stuff comes from some other projects and the shader is just a bunch of code put together from some other shaders that I wrote.

Hope you guys get lots of use out of it. Sometime in the near future I'll post a new version with a better method for the fine control of the sliders.
keithlostracco
 
Posts: 875
Joined: Tue Dec 09, 2008 2:39 pm

Re: FractGen 3d fractals in 2d

Postby humoludo » Thu Nov 14, 2013 5:27 pm

Hi Keith,

I'd love to look at this but I just get the grid. This message is in the info dat - Program Link Results:
Fragment shader(s) were not successfully compiled before glLinkProgram() was called. Link failed.
Any suggestions ?

Best
Colm
humoludo
 
Posts: 3
Joined: Wed Mar 14, 2012 7:25 am

Re: FractGen 3d fractals in 2d

Postby keithlostracco » Thu Nov 14, 2013 5:36 pm

Hmm that's a bummer. Are you running an ATI card? That might be the problem, I had another person have a problem with a shader compiling, it turn out he had an ATI card and it wasn't stoked when using an integer to set a float. This might be the case. I'll take a look.

cheers
Keith
keithlostracco
 
Posts: 875
Joined: Tue Dec 09, 2008 2:39 pm

Re: FractGen 3d fractals in 2d

Postby keithlostracco » Thu Nov 14, 2013 5:39 pm

Did you try changing formulas? If it only happens in one formula that will help narrow it down.

thanks
keithlostracco
 
Posts: 875
Joined: Tue Dec 09, 2008 2:39 pm

Re: FractGen 3d fractals in 2d

Postby keithlostracco » Thu Nov 14, 2013 5:48 pm

Yeah there are bunch of variable being set using an int when it should be a float. I don't have time to go through all the shaders at this moment, I'll make some time in the next day or two to fix it.

In the meantime if you are running an ATI card and want to get running you can go through the different formula dats and the "out" dat and make sure any line such as:

Code: Select all
float someName = 0;


to
Code: Select all
float someName = 0.0;


I noticed right away also there were some if statements such as
Code: Select all
if ( Tile.w == 1) ...

should be == 1.0;


Apologies my bad for the lazy code
hopefully that gets it going though
cheers
Keith
keithlostracco
 
Posts: 875
Joined: Tue Dec 09, 2008 2:39 pm

Re: FractGen 3d fractals in 2d

Postby humoludo » Thu Nov 14, 2013 8:02 pm

Hi Keith,

Yeah - 2GB AMD Radeon HD 7730M
Changed a bunch of them but not sure I got 'em all.
So still not working, some presets now show black :)

Still curious to see it though!

Best
Colm
humoludo
 
Posts: 3
Joined: Wed Mar 14, 2012 7:25 am

Next

Return to Shared .tox Components

Who is online

Users browsing this forum: No registered users and 1 guest