OpenCL Perlin Mesh Noise 2D

The normals are incorrect and facetted, but I actually quite like the look.

And a quick video:


5 Responses to “OpenCL Perlin Mesh Noise 2D”

  1. 1 John Bowers
    November 13, 2009 at 4:09 pm

    I’m trying to get a handle on using Quartz Composer to do things with 3D objects (I’m new to Quartz, but it seems like it might have a better chance of letting me debug multipass GLSL shaders and OpenCL stuff than the OpenGL Shader Builder). Anyway, I was wondering if you’d be willing to post some of your quartz project files?

  2. 2 toneburst
    November 13, 2009 at 6:46 pm

    Hi John.

    There are quite a few of my QTZ projects in the Box.net widget at the right of my blog. You’re welcome to have a poke around in there.

    When it comes to GLSL, you might find some of Quartz Composer’s limitations a bit… limiting.

    having said that, if you only want to chain-together Fragment Shaders, and experiment with OpenCL a little, QC is a good bet. OpenCL is currently VERY unstable in QC 4 though.

    Don’t let me put you off though: QC is a great program for testing stuff out quickly, and integrates nicely with other Mac applications, too.

  3. November 23, 2009 at 5:48 pm

    Hi, i’m using jitter and quartz composer a little bit. I’m realizing that GLSL is quite foundamental. I think you used that for the examples above and also the fragmented spheres can be done in GLSL. Do you have any usggestion about were to start? Tutorials and such? I’m quite good at programming in general… but have no clue how it works…
    There must be something simple enough to start, but with clear connection to practical examples

  4. 4 toneburst
    November 26, 2009 at 8:47 pm

    Hi Alberto,

    good to hear from you!
    I’m actually using OpenCL in this example, but doing something that can also be done with a GLSL shader.
    GLSL is definitely a cool thing to get into, and opens up lots of possibilities. QC has some annoying limitations when it comes to GLSL, which you’ll find surprisingly quickly. There’s still a lot you can do though.

    The best place to start is probably the GLSL Orange Book, the standard text on the language. The only problem is that the book is written for programmers who are already familiar with 3D graphics generally, and OpenGL more specifically. Being a Jitter user, you may be in a better position to jump in that I was.

    I’d say, do some background reading on OpenGL, specifically on coordinate spaces, matrices and transformations. There’s lots stuff about this on the web. Try and look for OpenGL-specific stuff though, as otherwise you might get confused by differences in terminology between OpenGL/GLSL and Microsoft’s DirectX/HLSL.

    You’ll find lots more info on the Windows-only systems than on OpenGL/GLSL, unfortunately.I’d stick with GLSL sourcecode to start with, then maybe try converting some HLSL later on. If you’ve got the hang of the basics though, there is a lot of sourcecode out there to experiment with.

    In terms of tutorial material, there seems to some quite outdated stuff out there still, and not so much new stuff seems to have appeared since I first started experimenting with GLSL, to be honest.

    Hope this helps. Sorry it’s not very specific though.

    Keep me posted on your progress.


  5. 5 toneburst
    November 26, 2009 at 8:52 pm

    Oh, one more thing, if you’re not so interested realistic lighting effects, shadows etc., then things are a LOT less complicated. Much of the heavy maths stuff tends to revolve around generating normal vectors for lighting. If you cut all that out, there’s a lot you can still do, without getting so heavily into the mathematics.

    Having said that, you might thrive on that geometry stuff.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


October 2009
« Sep   Nov »


Blog Stats

  • 482,101 hits

%d bloggers like this: