Log In  

Cart #23801 | 2016-06-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

I'm thinking about making a vector graphics 3d game for the PICO-8 so I coded up a little demo. The 11 lines refers to the _DRAW() function for the pedants out there. :)

This is probably terrible in some way as I don't know much about 3d rendering, I just worked out the equations from a little background knowledge and some trig. Seems to work ok as long as you don't pass through the viewing plane (possibly the wrong term for what I'm thinking of).

P#23800 2016-06-28 17:46 ( Edited 2016-07-11 15:03)

This is pretty cool. I took a lot of 3D graphics classes in college, and can probably help you understand 3D stuff if you want a small introduction. Typically it's handled with matrices multiplied together. Rotation is fairly complicated, but matrix multiplication the best way if you want to be able to apply the same transformation to multiple objects, or have hierarchical transformations (like an arm that rotates with a elbow with another point of rotation)

P#25093 2016-07-11 11:03 ( Edited 2016-07-11 15:03)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-12-01 02:47:31 | 0.008s | Q:11