Brohann's 3D devlog

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

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.




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

.


this block does exactly what it says it does and changes the angle of the stage/3d model thingy

.


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

.


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
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:


blocks coming soon are:

  • change camera position
  • set camera position
  • set angle

21 Likes