# Raycasting 3D render -- Blocks Edition

**URL:** <https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921>\
**Category:** Game Design\
**Tags:** game, graphics-and-math, extension\
**Created:** [April 1, 2022, 6:23pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921 "2022-04-01T18:23:28Z")\
**Posts on this page:** 20\
**Page:** 15

<div class="post-metadata">

**Author:** ![SellMoreOf](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@SellMoreOf](https://forum.makecode.com/u/SellMoreOf)\
**Post date:** [April 24, 2024, 9:02pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/288 "2024-04-24T21:02:18Z")

</div>

Figured it out! (with help from a friend).

[https://arcade.makecode.com/S55218-84444-80372-29329](https://arcade.makecode.com/S55218-84444-80372-29329)

---

<div class="post-metadata">

**Author:** ![CoolKid2134m13](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/coolkid2134m13/32/16047_2.png) [@CoolKid2134m13](https://forum.makecode.com/u/CoolKid2134m13)\
**Post date:** [May 1, 2024, 9:57pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/289 "2024-05-01T21:57:42Z")

</div>

Hey @AqeeAqee im a fellow coder and I can tell your good at ray casting im currently working on a Minecraft game in make code and I need a little help with the project would you be down to help with ray casting and 3d effects?

---

<div class="post-metadata">

**Author:** ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)\
**Post date:** [May 2, 2024, 7:26pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/290 "2024-05-02T19:26:53Z")

</div>

Feel free post your question on Arcade forum, I will answer as long as I have time. And more important, here are tons of coder members can help you either.  
Good luck!

---

<div class="post-metadata">

**Author:** ![DA\_PRO\_PLAYZ](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/da_pro_playz/32/19214_2.png) [@DA\_PRO\_PLAYZ](https://forum.makecode.com/u/DA_PRO_PLAYZ)\
**Post date:** [May 30, 2024, 5:05pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/291 "2024-05-30T17:05:50Z")

</div>

hi, I am also using this extension in my Minecraft game. I am trying to make grass blocks randomly generate on world creation, but whenever I add the walls, the texture gets removed. can someone please help me make this work in 3d?

> **[Minecraft](https://arcade.makecode.com/S26571-51075-46023-73666)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![danger\_kitty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/danger_kitty/32/32006_2.png) [@danger\_kitty](https://forum.makecode.com/u/danger_kitty)\
**Post date:** [May 31, 2024, 1:00pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/292 "2024-05-31T13:00:28Z")

</div>

It’s pretty hard to work in 3D the raycasting is like face 3D you can really go up and down you’d stuck on this one layer

---

<div class="post-metadata">

**Author:** ![anon30657772](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@anon30657772](https://forum.makecode.com/u/anon30657772)\
**Post date:** [May 31, 2024, 1:05pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/293 "2024-05-31T13:05:41Z")

</div>

Hello @AqeeAqee ,  
First off, thanks for the awesome extension! I wanted to ask you if there was a way to simulate the screen shake effect while using raycasting? Kinda like forcing a sway effect.

---

<div class="post-metadata">

**Author:** ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)\
**Post date:** [June 3, 2024, 5:15pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/294 "2024-06-03T17:15:29Z")

</div>

That’s possible, like sway as you said, but not implemented yet.

---

<div class="post-metadata">

**Author:** ![anon30657772](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@anon30657772](https://forum.makecode.com/u/anon30657772)\
**Post date:** [June 5, 2024, 5:02pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/295 "2024-06-05T17:02:42Z")

</div>

Also is there a way to take away movement from the player / camera in raycasting?

---

<div class="post-metadata">

**Author:** ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)\
**Post date:** [June 7, 2024, 5:09pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/296 "2024-06-07T17:09:53Z")

</div>

Just set both value to 0.

> [@AqeeAqee](#):
>
> ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/85062ed8ffcc376a09137a279023621c16d6ec09.png)

---

<div class="post-metadata">

**Author:** ![anon30657772](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@anon30657772](https://forum.makecode.com/u/anon30657772)\
**Post date:** [June 7, 2024, 7:10pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/297 "2024-06-07T19:10:41Z")

</div>

Yes! I did use that. Turns out I had other movement code that would override it because I forgot to add a condition to it 😅  
Thanks!

---

<div class="post-metadata">

**Author:** ![Awesomefreez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/awesomefreez/32/24832_2.png) [@Awesomefreez](https://forum.makecode.com/u/Awesomefreez)\
**Post date:** [June 10, 2024, 5:59pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/298 "2024-06-10T17:59:19Z")

</div>

How could you do the lantern effect with blocks?

---

<div class="post-metadata">

**Author:** ![SoftTalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/softtalker/32/10776_2.png) [@SoftTalker](https://forum.makecode.com/u/SoftTalker)\
**Post date:** [June 14, 2024, 3:08pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/299 "2024-06-14T15:08:30Z")

</div>

I fogor

---

<div class="post-metadata">

**Author:** ![3DGameMaker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/3dgamemaker/32/16193_2.png) [@3DGameMaker](https://forum.makecode.com/u/3DGameMaker)\
**Post date:** [June 30, 2024, 4:36pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/300 "2024-06-30T16:36:16Z")

</div>

can someone please explain to me how floors and ceilings work because i am noob

---

<div class="post-metadata">

**Author:** ![Josef](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/josef/32/12457_2.png) [@Josef](https://forum.makecode.com/u/Josef)\
**Post date:** [July 2, 2024, 4:54pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/301 "2024-07-02T16:54:25Z")

</div>

no ceiling. floors can be done by making the bottom half of the bg img the floor color

---

<div class="post-metadata">

**Author:** ![pecan4pi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pecan4pi/32/20940_2.png) [@pecan4pi](https://forum.makecode.com/u/pecan4pi)\
**Post date:** [August 7, 2024, 6:22pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/302 "2024-08-07T18:22:03Z")

</div>

@AqeeAqee How would I revert the extension to a version where non wall tiles are rendered?

---

<div class="post-metadata">

**Author:** ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)\
**Post date:** [August 7, 2024, 9:40pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/303 "2024-08-07T21:40:57Z")

</div>

> [@pecan4pi](#):
>
> How would I revert the extension to a version where non wall tiles are rendered?

Edit your pxt.json file, append or modify extension version to v0.3.15 or below. Just like the line in red box of following screen shot.

 ![1723058762192](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/e/d/edf28b36514ebc6a155575b1a11ea4c3c6da3f5a.png)

---

<div class="post-metadata">

**Author:** ![Ultimategreg123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ultimategreg123/32/9940_2.png) [@Ultimategreg123](https://forum.makecode.com/u/Ultimategreg123)\
**Post date:** [October 5, 2024, 7:03pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/304 "2024-10-05T19:03:04Z")

</div>

I know its been a full year, but is there any progress on the floor update?

---

<div class="post-metadata">

**Author:** ![DA\_PRO\_PLAYZ](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/da_pro_playz/32/19214_2.png) [@DA\_PRO\_PLAYZ](https://forum.makecode.com/u/DA_PRO_PLAYZ)\
**Post date:** [November 25, 2024, 7:20pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/305 "2024-11-25T19:20:19Z")

</div>

can someone please make this compatible with random tile placement? like, the extension?

---

<div class="post-metadata">

**Author:** ![LeoIsAGamer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/leoisagamer/32/19409_2.png) [@LeoIsAGamer](https://forum.makecode.com/u/LeoIsAGamer)\
**Post date:** [April 21, 2025, 1:02am UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/306 "2025-04-21T01:02:56Z")

</div>

Right, here is an extension to add a ceiling, it can also make the sky move like sky! Here it is: [GitHub - The-Code-Zone/Raycasting-pxt-extension: AqeeAqee’s raycasting extension now with ceiling rendering and MrFranko’s floor rendering](https://github.com/The-Code-Zone/Raycasting-pxt-extension)

---

<div class="post-metadata">

**Author:** ![LeoIsAGamer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/leoisagamer/32/19409_2.png) [@LeoIsAGamer](https://forum.makecode.com/u/LeoIsAGamer)\
**Post date:** [April 21, 2025, 3:53pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/307 "2025-04-21T15:53:40Z")

</div>

It also adds a floor!

[Previous page](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921.md?page=14)

[Next page](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921.md?page=16)
