Hi folks,
I'm trying to implement the sketch from this video in
pico-8.
but I'm confused by some of the magic included in the Processing API.
Does anyone have any tips or resources on creating the triangle strip mesh and rotating the whole scene on the X axis, or have a cart doing something similar.
Thanks
The Processing library is actually providing built-in function for 3d.
The "magic" line is here:
setup(600,600,P3D) |
That is actually setting up a 3d viewport, e.g. something that takes 3d points and project them into a 2d output of 600x600 pixels.
The maths behind the scene is described here:
https://en.wikipedia.org/wiki/3D_projection
Suggest to step back and try something like a 3d cube.
Multiple pico-8 carts are doing that already.
That’ll teach you basic concepts like:
- vertex
- faces
- projection
- rotation
You’ll get a better grasp of 3d and then you can try something a lot more challenging!
[Please log in to post a comment]