What can you learn from blog spam?

What can you learn from blog spam? You can learn that one famous sunglass manufacturer is alive and well and hasn’t been relegated to a sticker on the rear window of an Australian teenager’s car in 80s. You can also learn about two new golf clubs that are now available, a Japanese golfer and their preferred golf club manufacturer. I don’t normally get the chance to read blog spam. It’s normally automatically placed directly into my blog’s spam queue ready to be trashed. This time they (the person or people…

I’m having trouble with the surfaceTouchEvent

I’m having trouble with the surfaceTouchEvent in the Responding to touch interaction recipe from the Processing 2 Creative programming cookbook source code on GitHub. I’ve worked through the Troubleshooting,  Discussion and Known issues, Common problems, Understanding changes to processing.core sections of the Android page of the Processing Wiki, but still no success. Unsurprisingly, someone else posted a similar issue with Android Multitouch on Processing 2.0.X on the Android Processing Forum. Unfortunately their solution (import. android.view.motionEvent) doesn’t seem to resolve my issue. Time to sort this one out.

Accessing screen size and density

Making my way through the Accessing screen size and density recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned how to use the Android DisplayMetrics class to determine general information about the display of the device used to run the sketch.  While this is more of a diagnostic recipe than a creative one, I think it’s pretty useful way for finding out more about the capabilities of your device which could then inform the way you code your sketch. Nice.

I don’t always require an affirmation, but when I do, I prefer the Bene Gesserit’s litany against fear

Inspired by Tom Woodwards’s Dune-themed tweet on 24 April 2014, Rhys Fulber and Bill Leeb’s production on Fear Factory’s Fear Is the Mindkiller EP and the Bene Gesserit’s litany against fear and based on Jan Vantomme’s Drawing text and Running your sketch on an Android device  Processing recipes on Github, I created this portable litany against fear as a fun exercise in combining , expanding and learning further from the recipes I’ve worked through so far. Extending the functionality I’d like to extend the portable litany against fear by creating functionality that allows for use of: sound…

Running a sketch in the Android Emulator and on a device

Making my way through the Running your sketch on the Android Emulator recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned how to run a sketch on my Android device. I did this by  creating a sketch from the sample code, enabling USB debugging on my device and then selecting Run on device from the Sketch menu in Processing. Processing then compiled the code and then installed it on my device. Neat. Unfortunately, I had some issues with running my sketch in the…

Drawing triangle and quad strips

Making my way through the Drawing triangle and quad strips recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned how to use the QUAD_STRIP and TRIANGLE_STRIP parameters inside the beginShape function to draw triangle or quad 3D geometry to screen. With some work, QUAD_STRIP and TRIANGLE_STRIP could be used to draw 3D grass and lawn geometry on screen for Sew, Grow and Mow as an alternative to pre-modelled geometry. Maybe. This code draws the QUAD_STRIP and then rotates it around the centre of the screen. I…

Mixing 2D and 3D objects

Making my way through the Mixing 2D and 3D objects recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned how to use the ENABLE_DEPTH_TEST and the DISABLE_DEPTH_TEST parameter inside the hint function at the beginning and end of the draw function to to enable and disable the z buffer. This means the first black square intersects the coloured 3D cubes, while the second white square is drawn on top of the coloured 3D cubes. The DISABLE_DEPTH_TEST parameter would be useful if you wanted to display user interface elements such…

css.php