Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Mandelbrot and Julia fractals

Discussion in 'Made With Unity' started by Dep, Apr 10, 2014.

  1. Dep

    Dep

    Joined:
    Jan 17, 2013
    Posts:
    36
    Hey.

    I got bored and wrote some fractal shaders for Unity. Thought I'd drop a web player link for you guys if you'd like to play around with it.
    It's just Mandelbrot and Julia sets for now but I'm looking into creating some more interesting things.

    Web Player Link
    Note: Min Shader Model 3.0. If you set the iteration count too high your browser will crash.


    Julia sets:
    $julia1.jpg
    $julia2.jpg

    Mandelbrot zoom with noise coloring:
    $mb1.jpg

    For those that don't know what this is here's some wikipedia links:
    http://en.wikipedia.org/wiki/Mandelbrot_set
    http://en.wikipedia.org/wiki/Julia_set


    If you'd like I can drop the sources in the asset store.
     
    Last edited: Apr 10, 2014
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    I just get a black screen here.

    --Eric
     
  3. Dep

    Dep

    Joined:
    Jan 17, 2013
    Posts:
    36
    Ah. Sorry I forgot to mention that it's SM4 shaders so won't work on DX9 card.

    Edit: Now works with SM3.
     
    Last edited: Apr 10, 2014
  4. sootie8

    sootie8

    Joined:
    Mar 25, 2014
    Posts:
    233
    Doesn't work on my macbook its black screen, has HD 5000 graphics which can do directX 11.
     
  5. Dep

    Dep

    Joined:
    Jan 17, 2013
    Posts:
    36
    I tried with the -force-opengl flag and you're right it doesn't work.
    Probably has something to do with the inverted coordinate system.

    Edit: It seems that as soon as you target SM4 Unity won't use it with OpenGL.

    Edit2: I rewrote the whole thing and now it supports both DX9 and OpenGL.
     
    Last edited: Apr 10, 2014
  6. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    Yep, works here now. Very cool!

    --Eric
     
  7. Dep

    Dep

    Joined:
    Jan 17, 2013
    Posts:
    36
    Great! Glad you like it.
    I'll write some more fractal functions when I have more time to goof around and then post a pack to the asset store. Would be interesting to see more projects using fractal algorithms.
     
  8. kelebra

    kelebra

    Joined:
    Feb 13, 2013
    Posts:
    3
    This really looks amazing, especially the first one, very cool, and yes it would be very interestedto see the code or at least having some hints on how you made this :D.
     
  9. Sometimes_Always_Never

    Sometimes_Always_Never

    Joined:
    Apr 5, 2014
    Posts:
    19
    Looks brilliant! Would definitely pick it up on the Asset Store. Is the plan still to release this?
     
  10. Wolfram

    Wolfram

    Joined:
    Feb 16, 2010
    Posts:
    253
    Website is down?
     
  11. TimTro

    TimTro

    Joined:
    Jun 1, 2015
    Posts:
    20
    That's awesome! I'm really interested in seeing how this works. Can you give any advice on where to start with one of these or how you did it?
     
  12. M4R5

    M4R5

    Joined:
    Apr 11, 2013
    Posts:
    33
    Hey,

    I'd love to throw money your way for this!

    mw