Light Dusts

OpenGL blending, textures and lights study with Processing.download the desktop version (including source code): macosx | windows | linux

instruction: Move around with the mouse, press Space Bar to repulse particles.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  1. To

    Saturday, May 1st, 2010

    Nice stuff – is the source-code for pro55ing availble?

  2. TM

    Thursday, May 13th, 2010

    Thanks,
    I will put it up next week. It’s probably not well commented but hey ho…

  3. Thursday, May 20th, 2010

    Very nice, I’m also looking forward to the source. Also FYI the interactive demo doesn’t seem to be working, at least not for me. Here’s what the console told me:

    java.lang.NullPointerException
    at com.sun.opengl.util.JOGLAppletLauncher.start(JOGLAppletLauncher.java:404)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.NullPointerException

  4. TM

    Friday, May 21st, 2010

    Thanks Jason! Source is coming, promess. Can’t remember the code but might be uncommented and a little bit messy.

    Sorry it’s not working anymore, don’t know why, might need to recompile it. Maybe because of the latest java update? Don’t know…

  5. TM

    Saturday, May 22nd, 2010

    Source code available now, recompile didn’t fixed the problem, it’s seems to be related to OPENGL, can’t be bother to search for solution but if I find it (or you do) I will fix it :)

    Thanks

  6. jon

    Wednesday, October 24th, 2012

    Hi there! This is a very nice effect. I’ve been playing around with processing and now I’m trying to understand how opengl blending works. The source is a great help by the way. :)
    Just one request, could you upload the texture you’re using? I’ve tried with some, but the effect you achieve is nicer. I guess the texture would help to understand it better. Thanks in advance!

  7. TM

    Sunday, December 2nd, 2012

    Cheers Jon,

    The texture is a transparent png with a radial gradient on the color and the opacity. The center is one colour and the outside colour is black (or white I can’t remember but I’m pretty sure it’s black). Experiment with different colours as the OPENGL blending mode kind of invert the colours.

  8. TM

    Sunday, December 2nd, 2012

    Also Jon, I think to remember that I used black or white png and then who dealing with the colour in processing using tint()