3D voxel rendering engine

Perfect! Creative mode! You know what’s next now…

AHH Ur breakin my brain
THIS IS AWESOME
how’d you do the click raytracing for interaction?

1 Like

render() uses traceRay() to trace a ray into a block, and so I made the clicking do the same thing. traceRay() returns a number[] like this [face, distance, face x, face y, voxel index, voxel x, voxel y, voxel z] and when placing a block, it adds/subtracts 1 to voxelX/voxelY/voxel and sets the block. Did that help?

4 Likes

HITBOXES ARE ADDED!!! WOOOOOOOO

no sliding though, because i have plans to add gravity and make it a platformer

5 Likes

also id appreciate it if anybody would like to help!

Job Thing
  • want to help maybe (respond with what your okay with helping on)
  • spectator or something
  • advice giver I guess
  • other (respond with post)
0 voters
1 Like

Soooo why does the house suddenly turn into eyes when you get far enough from it

2 Likes

because the ray tracer has a max amount of steps, so some of the house is never rendered

1 Like

:0 creepy!

1 Like

Ok thx, I was kind of half-asking half-making-a-joke here so thx for answering!

1 Like

I have added gravity and stuff :󠇪)

9 Likes

Wowowowowow (how do I even start tho)

1 Like

Do you think you’ll be turning this into an extension? Since that would be nice!

2 Likes

I suggest add skins. And AI’s also doing parkour. (That is what I plan to make 2D.)

1 Like

if you don’t know how I can help with that

1 Like
4 Likes

Thanks! I know how to make the code work on an extension, but I’m not very good at making the blocks actually show up on the editor. Any help on that would be good!

this project will be paused until I finish changing Makecode’s Code to try to add an audio function in c++ (more info here Questions about MakeCode C++ sound )

what do you mean not showing up?

dang Nice :ok_hand:

also

ok so check out Breaking Makecode! [Contest] [Badges]

but

Congratulations You Have Now Won A

1st Place Badge in the Complex Yet Cool Game Design Section

Note: more than one person can have the same badge in the same section its more like 1st place is just a ranking like 100% or 100 points

things like:

//% block="..."

or

//% shadow=...

Often is very finicky when I use them. My first extension made (doesn’t work yet) was Mini menu Trees! The issue was more the coding part, but I disliked using the //%… because of have to repeatedly change to blocks over and over again and the blocks would often glitch out