A 3d thing

I made a 3d thing!

https://arcade.makecode.com/S05557-33904-28616-63370

7 Likes

Now I could make a Minecraft clone with this.

2 Likes

Oh yeah, I should probably list the controls:

Left/Right/Up/Down Arrow Keys: Look

W/A/S/D/Shift/Space Keys: Move

2 Likes

WOW this is actually quite well done!!
The 3D projection works well, and I was suprised you even included moving up and down too 0_0 impressive!
The only glitch I’ve found is that if you walk forward into the block, the texture sort of explodes and the block flips upside-down. (It’s a pretty cool effect to see!)

3 Likes

that method is easy, but the rendering gets messed up sometimes. I don’t know how it works, but if it renders each cube one by one using math, then that kind of glitch happens. either make it only render cubes in front of the camera (though there may be other rendering glitches) or cast rays from the camera (I don’t expect you to know rust or what this means, but I would recommend https://www.youtube.com/watch?v=ztkh1r1ioZo . one thing to note is that you don’t want to do rays on constant step distances, but instead using math to find the next voxel). somebody please rewrite this.

I need help from someone who KNOWS Javascript. The cubes aren’t showing up, please check the Renderer3D file. https://makecode.com/_HoPYVidPHAp0

Good luck buddy

1 Like

Bro wow. Instead of making a 3D object itself, you projected it!

This is what eventually happens to any project relying on an AI-generated backbone. I ran into similar issues when progressing my 3D engine past a ChatGPT tech demo. Your options are either learn JavaScript and research 3D engines, or wait until GPT-7 comes out.

3 Likes

Well I wrote the render all cubes function myself, it was working until then

4 Likes

I cant help right now because I’m on mobile :frowning:

Hey, can anybody tell me how the Painter’s Algorithm works and how to implement it in Makecode?

1 Like

Here’s the wikipedia that seemed to explain it well, I’m not sure how you would implement it because it depends on how you are storing and rendering the polygons! (If you have a link that would help)

1 Like

I still need help with sorting the cubes by depth though- could anybody help with that?

Thanks!

1 Like

HAHA I HAVE FINALLY DONE IT!!!

4 Likes

Very cool! But when you turn around everything glitches :frowning:

3 Likes

Guys don’t fly into any grass blocks or you will ruin the world lol


(Note: all cubes are inverted and movement is backwards)

2 Likes

oh yeah, the link can still be accessed up above

1 Like

New update! We now have collision with the cubes. Please don’t ask me why these glitches happen; I have absolutely NO idea. Any insight into them would be helpful, however.

1 Like