1. Fun programming 152: Exporting 3D shapes as .obj files in Processing

    09:13

    from Abe Pazos / Added

    This time we are taking the shape we created in episode 151 and exporting it as an .obj file. To achieve that we use the OBJExport Processing library. We also take a look at how to make code run only once even if it's inside the draw loop. That becomes useful to avoid exporting the .obj file over and over again. We only need the file once :) Processing by default offers a limited set of 3D primitives: only spheres and cubes. Other shapes you have to load or build yourself out of triangles calling vertex(), which probably means knowing a lot of math. To make it easier to generate and manipulate complex 3D shapes there are several libraries, for instance Toxiclibs (http://toxiclibs.org/) and HE_Mesh (http://hemesh.wblut.com/). In this tutorial I also show where you can find examples for exporting .obj files using both HE_Mesh and Toxiclibs. In the next episode we will import the .obj file into Blender and render an image with realistic lights and shadows!

    + More details
    • "String Trio"

      01:05

      from Bill Hsu / Added

      222 Plays / / 0 Comments

      Video by Bill Hsu Music by Gino Robair ("Motor(goat) Brool" from Singular Pleasures, Rastascan 1997)

      + More details
      • Shatter(ed)

        03:52

        from Noric Couderc / Added

        828 Plays / / 0 Comments

        An exploration of opposition. Life/Death, Order/Disorder, Shattering/Construction. Soundtrack by Pietari Kaasinen. Visuals made with Processing & Toxiclibs. Reedition of a previous video. Visuals are based on pictures by myself and others. Picture credits: LG-Design: http://vetii.deviantart.com/art/Black-Horse-PNG-337731468 David Smith: https://www.flickr.com/photos/david_e_smith/2545404410/in/photolist-4SVS3W-4PuPpe-4P97CJ-4N4EEk-4Mai1R-4y84zi-4mpV4v-4ipJkY-45SDoX-3Ggo8R-3foyMx-38fSui-23pyh1-MHEyq-Kha1s-HXe8L-FcW1S-zqr2e-wqUxj-sWoLB-fPMKV-aAmyS-4E25s-FtG6-oBXrQ2-oBgHcf-ojdnGi-oj6zSp-oCjMyR-oyhW4s-ozX1z5-ozVkYj-oz6qHN-ohyR78-ohnCgb-ozPick-ozPhCV-oy4DfH-ogtkFv-oxApUs-oxqXfy-ovqgME-oxcdPq-owTPxP-ofz8bV-ofqrCU-ofdEBc-owtDFW-oeAVU1-ovMaKW/ Zepfanman: https://secure.flickr.com/photos/zepfanman/12041443215/in/photolist-jm4xxV-ahLy3M-9zs3Xz-ojxKQ-dssdyf-9zs4xv-9dtUY2-aLSgaZ-akjj9G-fEq1t8-7f8Cgs-az92o1-ddgv6M-akjiKw-fQQvpH-4LLBoR-brrqk-amPQ5g-dryJBn-99uPTB-dmXgx4-5DYshc-2aUdq-dsjLjR-93Xy72-h2u4ZC-dssdEN-99uSjn-iknW5L-9rK6am-c6fhv-dss3SR-9UMbpm-52Poqc-4YfRmW-nrunaQ-4jyma6-tUSTE-94dcA1-cAWcBN-52Tcqh-5wbPgN-KraR9-5dvzkY-eGS7xB-8MUE1C-wf74-f1cA5U-2dSHzN-bS9q2a

        + More details
        • jelly thing 2

          00:59

          from Blind Elephants / Added

          41 Plays / / 0 Comments

          started playing with Toxiclibs in Processing. This was supposed to be more of a plant leaf, but it is behaving more like a jelly blob thing.

          + More details
          • Playing with toxiclibs

            00:40

            from Abe Pazos / Added

            I've been working for a month with toxiclibs and somehow I wish it was part of the Processing core. It can make a lot of things much simpler and cleaner. Sometimes toxiclibs is tricky, because there's no manual, and the examples don't cover all areas and functionality. I think using Eclipse is a must, because (among other reasons) it auto import the libraries I need, and it autocompletes using those libraries. Also, the more I use toxiclibs the more I can predict how the unexplored areas work. The latest binary is from 3 years ago, so I compiled the latest version myself to get a lot of new functionality. This is an example with 15000 points on the surface of a sphere. I alternate between two modes. One, I rotate the points between 2 planes using CosineInterpolation. Two, I smoothly interpolate those planes to a new random orientation. As a side note, it looks like video codecs were never designed to encode material of this nature. They completely destroy the small details. In this case, most of the back of the sphere is gone. The positive side of this is that it gives a reason for art installations to exist :) Update: I tricked Vimeo to show an HD version by using mogrify to convert the 600x600 images into 1280x720, and re-uploading the video. The amount of useful pixels is the same, but the encoding quality is better.

            + More details
            • erosion v004

              00:06

              from tommaso casucci / Added

              441 Plays / / 0 Comments

              _erosion_ multi-agent simulation made in Processing, the agents behaviour is a combination of two main rules, descendent alghoritm and stigmergy. more at: http://synth-e-techmorph.blogspot.it/2014/04/erosion.html

              + More details
              • erosion v000

                00:06

                from tommaso casucci / Added

                373 Plays / / 0 Comments

                _erosion_ multi-agent simulation made in Processing, the agents behaviour is a combination of two main rules, descendent alghoritm and stigmergy. more at: http://synth-e-techmorph.blogspot.it/2014/04/erosion.html

                + More details
                • Dots and lines animation

                  05:34

                  from Alistair Colling / Added

                  44 Plays / / 0 Comments

                  Using processing and toxiclibs

                  + More details
                  • Triangulate WebCam_Processing_Toxiclibs

                    01:16

                    from Laura Chen / Added

                    541 Plays / / 3 Comments

                    (normal speed!!) previous version failed to pick up the right color because the voronoi.addPoint() is adding with random()! details: http://www.jhclaura.com/triangulation/

                    + More details
                    • toxiclibs_triangulation w/ colors!

                      00:27

                      from Laura Chen / Added

                      45 Plays / / 0 Comments

                      (x3 speed up!) same with ver.Line, plus getting pixel color from the centers of each triangles, with fill(), beginShape(), endShape() and vertex().

                      + More details

                      What are Tags?

                      Tags

                      Tags are keywords that describe videos. For example, a video of your Hawaiian vacation might be tagged with "Hawaii," "beach," "surfing," and "sunburn."