Purr Data: GEM

Using the information provided by the source given that explained what GEM is and what it is used for in Pure Data, I now have a clear understanding on how GEM is used to create media visuals; images, videos, and 3D Shapes.

What is GEM?

GEM is based on a large part of OpenGL. GEM is apart of pure data, and it is used to create motion graphics, this includes videos or still images, draw 2D or 3D shapes, and transform objects and shapes. Visuals can also be made to react to sounds.

[gemwin]

[gemwin] is what represents the window a graphic is drawn into - it creates a window which displays the graphics created. Using frame-rate, it schedules when frames should be drawn to the screen, by default, it clears the window and sets a background colour using RGB values.

[gemhead]

[gemhead] is the start of a chain of graphics operations connected by patch cords, that should be executed ever frame. Drawing operations cascade from the top down - adding to each other, flowing downwards across objects.

Chain of operations are triggered by [gemwin] according to the frame-rate set.

Auto rendering can be turned off by sending [gemhead] the message 0.

To put things together - to open a window to draw graphics, the object [gemwin] must be created - which is the render context - and send the message "create" to create the window, and "1" to start rendering. Starting with [gemhead], this begins a render chain, that will still draw things into your GEM window.

pix_object and 3D shapes

Images have to be mapped onto a 3D shapes - no image will be drawn in the GEM window unless it is associated with a 3D shape.

The are 2 sets of GEM:
  1. Image processing
  2. Shapes and their transformations
Objects that deal with texturing are called pix objects, and have the prefix "pix_" in their object name. Using [pix_texture] allows you to cascade shapes.

Comments

Popular posts from this blog

Pure Data: GEM

The Enduring Ephemeral, or the Future Is a Memory