# 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:** 1\
**Showing post:** 209

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [March 7, 2023, 5:01pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/209 "2023-03-07T17:01:25Z")

</div>

@AqeeAqee I made a version of your extension (I hope its ok to post it here) that uses the grayscale color palette, and has a nice fade-in effect to objects while preserving textures! It was made in inspiration by the game that @richard is making in the livestream, and I figured it could be expanded so as to not take up like 15 tiles but instead render at runtime! (sprites not supported in the effect)

The extension is:  
kiwiphoenix364/pxt-raycasting-mod-grayscale

I made a test project (only uses 2 blocks):

> **[spooky](https://arcade.makecode.com/19369-97365-38380-10488)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

There is a new block at the bottom of the list, and the darkness modifier is normally 1, but you can change it with 0 being no darkness at all. The texture visibility determines how bright the textures are, ranging from 0 and higher, with 1 being normal, 0 being white, and colors above 1 getting (quickly) darker as they get higher (you don’t usually want to go above 2). The texture visibility isn’t a recommended setting to change, because leaving it at 1 is optimal most of the time.

---

_[View the full topic](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921)._
