Brohann's 3D devlog

Happy anniversary @richard ! You were a great help to everyone on the forums!

4 Likes

That’s awesomeeeeeee!!

1 Like

Making an extension out of it is on my agenda, but currently I’m not very good at making extensions. The vertices and triangle blocks will be pretty easy actually because they are both just arrays lol. It has also come to my attention that the sorting is a little bit worse than before, but it is worth it for the good performance

4 Likes

Yeah, that would be great to see as a MCA game!! On for the challenge, @KIKIvsIT?

1 Like

Amazing, @Brohann!!!

2 Likes

Do you think the SM64 castle grounds could be rendered with this? The lowest-poly model I found was 871 triangles and 760 vertices.

Actually, now that I think about it, probably not.

7 Likes

The star fox model supposedly has 800+ triangles and still has a reasonably high fps so it could be possible
Not the textures, at least for now though

2 Likes

I’ve actually tried this and it does work perfectly fine. if 1000 triangles renders at 200 fps then we could technically use around 10000 triangles and still achieve 30fps. My only concern is some issues regarding triangle sorting and other camera bugs that might make it really hard to play when a model/level is super huge

1 Like

That’s so cool how it renders in the player! How did you do that?

1 Like

I just copied the link from Sketchfab, I didn’t even know there was a preview :laughing:

1 Like

the extension is almost done, but it may be a little tricky to use(there are only 3 blocks lol)

3 Likes

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

OMG! I think a lot of us have been waiting.

2 Likes

THAT’S AWESOME!!! Thanks so much for making this extension, even in beta its super cool :smiley: You really are revolutionizing makecode arcade graphics!! I can’t wait to use this… :eyes:

6 Likes

yo venge might look crazy

2 Likes

New Update (v0.0.0 → v0.3.1)

  • bug fixes
  • set angle block
  • set size block
  • new sorting method (as accurate as the slow original but about as fast as the new one)(I’m really excited about this one)
  • updated example project
    https://makecode.com/_APkLaPHiraiH
  • changed the “set angle angle x” block to “set angle x”
6 Likes

The only thing I could think of adding to this is probably adding the color feature to the vertices if you can. It would make it easier to make stuff instead of adding the triangle indice every time you wanted a colored triangle. One more thing is even though I got a colored triangle, some time it won’t let me make a triangle in certain spot but forces it to stan in one spot no matter how much I tried.

2 Likes

noice

2 Likes

can you share you code?

2 Likes

I can’t since I deleted it, but I had a super hard time with the indice feature because it wouldn’t work. I was just suggesting that maybe it should be the triangles be put on the 3d space by hand and colored by the same block with the vertices of the triangle.

2 Likes