An open API service indexing awesome lists of open source software.

https://github.com/btipling/blockens-3d

A project to learn 3D GPU programming using Metal
https://github.com/btipling/blockens-3d

Last synced: over 1 year ago
JSON representation

A project to learn 3D GPU programming using Metal

Awesome Lists containing this project

README

          

# blockens-3d

Blockens-3d project to learn 3D GPU programming and 3D math using Metal

I learned about vertex and matrix math from several books and online resources but mostly from [3D Math Primer for Graphics and Game Development](https://www.amazon.com/Math-Primer-Graphics-Game-Development-ebook/dp/B008KZU548/)

## This project features:

* Keyboard controls for controlling the 3D cube.
* An orthographic projection
* Translation, rotation transforms and model-view rendering.
* I learned about wind order and culling and how the order of vertices dictate which side of a shape is the front.
* Stencil depth, and various other 3D related aspects.

## Controls:
* Rotation: W, A, S, D, F, B
* Zoom: + -
* Translation: Up, Down, Left, Right, O, I
* Manipulate the far point with [ and ]
* Manipulate the near point with < and >

Video:

[![A video of this project.](https://img.youtube.com/vi/QxUyue2qm2s/0.jpg)](https://www.youtube.com/watch?v=QxUyue2qm2s)