3d Rendering with floor and ceiling!

I’ve been making some tweaks to AqeeAqee’s wonderful raycasting extension and there’s a bit to fix yet on some of my lazy code but I wanted to show off what I’ve got so far, now with the ability to add a tilemap to be rendered as the game’s ceiling.
ceiling render

24 Likes

wow! will this be for public use? I was thinking of making a doom video game…

4 Likes

Also, I forgot to mention the floor rendering code is from MrFranko.

Ignore the framerate in the gif. I accidentally locked the gif FPS to 15 so there aren’t any glaring performance issues, at least on my end (though I exclusively use MakeCode on the pc).

3 Likes

I’m happy to share the extension code with permission from AqeeAqee unless they’d like to absorb some of these changes in their repo (though I remember reading they didn’t implement floor/ceiling rendering due to performance issues).

If anyone could let me know how to tag someone on the forums I’ll go ahead and do that.

4 Likes

this looks amazing

1 Like

I have been looking for something like this forever! Could you share it by chance? This is really cool.

2 Likes

WOW so cool!! @AqeeAqee
someone make this an extension

3 Likes

I can’t seem to figure out how to tag the original authors of the pxt-raycasting and original floor rendering code, so while I figure out how to tag users, here’s the updated extension now with ceiling rendering (and MrFranko’s floor rendering) forked from AqeeAqee’s raycasting extension :

The project in the gif above can be achieved by simply using code from the ‘3d Render’ section like this image:
image

Note: the ceiling tilemap must match the width and height of the tilemap that is currently loaded or it will throw an error.

10 Likes

I’ve attached a link to the extension in another reply in this thread below :slight_smile:

3 Likes

I think i recall aqeeaqee talking about adding floor and ceiling in the future, but that was like a year ago. I hope this speeds up the process!

4 Likes

Thanks a lot! (And to tag users you use the @ )

2 Likes

Im wondering if you could use the second player/jkil to move a camera

3 Likes

WOWZEREEZ!!! @AqeeAqee said it was impossible! (I think)

2 Likes

gonna see what i can do with this

2 Likes

WOW thanks alot

2 Likes

From the standpoint of a person who uses an iPad to code, I can confirm that this is 100% smooth :white_check_mark:

5 Likes

Thanks I’m very happy with the end result. :slightly_smiling_face:

If I remember correctly I think AqeeAqee said they were experimenting with it but the main issue was more to do with the performance impact on consoles like the meowbit.

To be honest, that’s likely still the case. I just use makecode exclusively on the pc so it’s less of an issue on my end.

7 Likes

This is AWESOME!!
So much progress right now in 3D Makecode, and this is stunning!
Where did you learn to do this / to code in general?

1 Like

It’s definitely possible, but it would require some maths that are beyond me at this point in time. I’ve got a few personal projects in the pipeline outside of makecode but I’ll give it a swing when I have some time for sure.

1 Like

Haven’t been in tne comunity that long but this is the coolest thing I’ve seen so far continue making amazing things like this and I think you’ll go far in lif :+1:

2 Likes