Skip to content

Latest commit

 

History

History
111 lines (89 loc) · 6.04 KB

File metadata and controls

111 lines (89 loc) · 6.04 KB

Class 9

🛠️ 3D Graphics

The Graphics pipeline

Basic layout & 3d thinking

CPU vs GPU

  • What tasks are handled on each?
    • Shader code and pixel display operations are handled on the GPU
    • Most of the code that you write is on the CPU, unless you're writing shaders or OpenGL code
      • Under the hood of p5js & Processing, there's a ton of OpenGL/WebGL code, so know how this stuff works is helpful to know what your performance bottlenecks might be
  • What's optimized on the GPU
    • It depends on the platform and tools
      • For example, certain parts of web browser rendering happen on the GPU, but differs per browser
    • Textures & texture operations
      • Loading an image file is almost always faster than drawing vector data
    • Cached Geometry with p5.Geometry and buildGeometry()
    • Drawing the pixels to the screen
  • cpu.land
  • CPU vs GPU vs TPU vs DPU vs QPU

🛠️ Computer vision

🛠️ Computer vision in p5js

📝 Homework:

Read:

  • The WebGL & OpenGL articles above

Watch:

Listen to an episode from either podcast:

Build something with 3D graphics or computer vision

📋 Review code

  • Present your shader sketches