Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Story
How we grew from 0 to 3 million users
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

18.2: 3D Geometries - WebGL and p5.js Tutorial

93.9K views
•
December 19, 2017
by
The Coding Train
YouTube video player
18.2: 3D Geometries - WebGL and p5.js Tutorial

TL;DR

This video introduces the basic concepts of working with 3D geometry using p5.js, including creating shapes, rotating them, and positioning them in space.

Transcript

all right I'm back so this now in this video I'm gonna look at three-dimensional geometry no first of all actually let's not even look at three three-dimensional geometry just yet this is three dimensional geometry it's a rectangle let me do a couple things I'm gonna just get rid of the fill so it's fine that it's black right now we'll deal with so... Read More

Key Insights

  • 🛩️ Shapes in 3D geometry are composed of small 2D polygons tiled together to create the illusion of a 3D object.
  • 💠 p5.js provides functions to rotate shapes along different axes, such as rotateX, rotateY, and rotateZ.
  • 🍱 3D primitives like box, sphere, cone, and torus can be used to quickly create 3D shapes with customizable dimensions.
  • 👾 The translate function is essential for positioning 3D shapes in the 3D space.
  • 👻 p5.js allows interaction with 3D shapes using variables like mouseX and mouseY to control their movement.
  • 🪜 Material and texture can be applied to 3D shapes to add color and shading effects.
  • 🛃 Creating custom 3D shapes is possible by defining vertices and creating polygons in p5.js.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How are 3D shapes represented in p5.js?

3D shapes in p5.js are composed of small 2D polygons tiled next to each other, creating the illusion of a 3D object.

Q: Can we create custom 3D shapes in p5.js?

Yes, we can create custom 3D shapes by defining the vertices and using them to create polygons, which can then be rotated and positioned in space.

Q: How can we rotate shapes along different axes in p5.js?

In p5.js, we can use the rotateX, rotateY, and rotateZ functions to rotate shapes along the x, y, and z axes, respectively.

Q: How can we control the dimensions of 3D shapes in p5.js?

3D shapes in p5.js have different parameters to control their dimensions, such as width, height, depth, radius, and tube radius, depending on the shape.

Summary & Key Takeaways

  • The video begins with an introduction to 3D geometry by creating a rectangle and demonstrating how 3D shapes are composed of small 2D polygons.

  • The video explores the use of rotate functions to animate and rotate shapes along different axes in a 3D space.

  • The concept of primitives like box, sphere, cone, and torus is introduced, along with how to control their dimensions and create rotating animations.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from The Coding Train 📚

How to Create Fractal Patterns with Toothpicks thumbnail
How to Create Fractal Patterns with Toothpicks
The Coding Train
9.4: Genetic Algorithm: Looking at Code - The Nature of Code thumbnail
9.4: Genetic Algorithm: Looking at Code - The Nature of Code
The Coding Train
8.1: Fractals - The Nature of Code thumbnail
8.1: Fractals - The Nature of Code
The Coding Train
Text Generation using Spell with Nabil Hassein thumbnail
Text Generation using Spell with Nabil Hassein
The Coding Train
Computer Mouse Conference Demos! (node.js + tensorflow.js) thumbnail
Computer Mouse Conference Demos! (node.js + tensorflow.js)
The Coding Train
ITP/IMA Winter Show 2019 thumbnail
ITP/IMA Winter Show 2019
The Coding Train

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots
  • Open Graph Checker

Company

  • About us
  • Our Story
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.