Tag: chapter 3

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 […]

Read more

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 […]

Read more

Making my way through the Making polygon soup recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned how to create a 3D cylinder with a flexible function that allows for the top, bottom and sides of the cylinder to be customised. In this recipe, the QUAD_STRIP parameter (draws a series […]

Read more

Making my way through the Using lights recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe, I learned how to declare the lightMode and lightDirection integers to allow for different lighting modes to be activated. Inside the setUp function they’re assigned a value of 0 and then referenced again in the if test. […]

Read more

Making my way through the Drawing 3D primitives recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned how: the box function can be used with one or three parameters to set different values for depth, width and height of the box. the sphereDetail function can be used to define […]

Read more

Making my way through the Understanding 3D space recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned how set a variable for depth and zSpeed and also how to change the variable inside the draw function for animation. I also learned that if you want to use the rect […]

Read more

The Silhouette Story. Chapter 3 – Some birds on some wires, originally uploaded by Rowan Peter. The Silhouette Story started from a response to a blog post. Then came Chapter 1 – My hand which was closely followed by Chapter 2 -The sun and the street light. Now Chapter 3 – Some birds on some […]

Read more