-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
p5.js version
1.11.0
Web browser and version
130.0.6723.70
Operating system
mac os 14.7
Steps to reproduce this
Steps:
- load .obj file as model
- in draw() call normalMaterial() for example
- call model(yourModel)
Snippet:
let teapot;
function preload() {
teapot = loadModel("teapot.obj");
}
function setup() {
createCanvas(400, 400, WEBGL);
}
function draw() {
background(20);
normalMaterial();
scale(50);
translate(0, 1.5, 0);
rotateX(PI);
model(teapot);
}