Skip to content

Latest commit

Β 

History

History
61 lines (45 loc) Β· 2.55 KB

class-08.md

File metadata and controls

61 lines (45 loc) Β· 2.55 KB

Class 8

πŸ› οΈ Graphics Effects & Algorithms

🧊 3D Graphics

The Graphics pipeline

Basic layout & 3d thinking

πŸ“ Homework

Read:

  • The WebGL & OpenGL articles above

Watch:

Build something with a 3rd dimension

  • Steps
    • Start with WEBGL mode in p5js
      • This moves the coordinate system to the center of the screen
    • Use box(), sphere() and other 3d primitive functions to create shapes
      • p5js has additional 3d shapes like torus()
  • Stretch goals
    • Create your own 3d geometry with beginShape(), vertex(), and endShape()
    • Apply a texture to your geometry
    • Load a 3d model with loadModel()`
    • Use a shader to create a custom material for your 3d geometry

πŸ“‹ Review code

  • Present your audio sketches