# Brohann's 3D devlog

**URL:** https://forum.makecode.com/t/brohanns-3d-devlog/20917
**Category:** Game Design
**Tags:** javascript, art, demo, graphics-and-math, extension
**Created:** [June 27, 2023, 5:01pm UTC](https://forum.makecode.com/t/brohanns-3d-devlog/20917 "2023-06-27T17:01:31Z")
**Posts on this page:** 1
**Showing post:** 72

<div class="post-metadata">

### Author: ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)
#### Post date: [January 24, 2024, 6:09am UTC](https://forum.makecode.com/t/brohanns-3d-devlog/20917/72 "2024-01-24T06:09:36Z")

</div>

**THIS IS IT! THE MOMENT YOU AAAAAALLLL HAVE BEEN WAITING FOR!**  
yay now it’s an extension!

```auto
Brohann3214/arcade-brohann-3d

```

⇧⇧⇧copy and paste that into the extension search bar⇧⇧⇧

* * *

it’s a little bit hard to use, and it is in very early beta right now, so don’t get super upset if something doesn’t work. It is also not compatible with the obj to makecode thingy yet. Let me explain what all of the blocks do.

* * *

* * *

 ![Screen Shot 2024-01-23 at 9.09.02 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/b41670db58dd33cf6fc6515d43228981152029b6.png)  
This block sets the method the 3d engine uses to sort the triangles. Accurate method is the original slow method, Fast method is the new less-accurate but super speedy method

.

 ![Screen Shot 2024-01-23 at 9.17.50 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/30e43dd1b387e1f36d47c50776f04b8177a2b4bf.png)  
this block does exactly what it says it does and changes the angle of the stage/3d model thingy

.

 ![Screen Shot 2024-01-23 at 9.19.18 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/f/fb9c937a7e7c007f6aae520ea4e51686b84ffe78.png)  
This block adds a new vertice to the vertices array. vertices are the point upon which the triangles are made of. this block should be in an on game update before render. The 3 inputs are the x y and z coordinates

.

 ![Screen Shot 2024-01-23 at 9.20.36 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/321ad4706f2e7c059947fea8b4adf60b2754c3b9.png)  
this block adds a new triangle to the triangles array. the triangles are the triangles that you see on the screen. this should also be in an on game update, but after the vertices and before render. the 3 inputs are the 3 vertices that the triangle is made of. (vertice #s start at 1 instead of 0 btw)

.  
 ![Screen Shot 2024-01-23 at 9.23.42 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/9edcc77fbdb06d9d49d753cec5bdcaa6710fc3f7.png)  
and finally, the render block. always put this at the end of an on game update. all it does is render the triangles currently in the triangles array to the screen. when it is done, it will erase the triangles and vertices arrays.

* * *

if you are confused (you probably are), just take a look at this example:

> **[Extension Example](https://arcade.makecode.com/S71793-44740-90873-29381)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

* * *

blocks coming soon are:

- change camera position
- set camera position
- set angle

* * *

---

_[View the full topic](https://forum.makecode.com/t/brohanns-3d-devlog/20917)._
