# 3D graphics test

**URL:** <https://forum.makecode.com/t/3d-graphics-test/6285>\
**Category:** Show & Tell\
**Tags:** graphics-and-math\
**Created:** [February 20, 2021, 4:53am UTC](https://forum.makecode.com/t/3d-graphics-test/6285 "2021-02-20T04:53:43Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![kwx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kwx/32/1545_2.png) [@kwx](https://forum.makecode.com/u/kwx)\
**Post date:** [November 2, 2022, 4:34am UTC](https://forum.makecode.com/t/3d-graphics-test/6285/22 "2022-11-02T04:34:05Z")

</div>

Your vertex array doesn’t match the diagram - for example, the array starts at index 0, so your array’s point 0 at [-1, 0, 0] corresponds to the point labeled 1 in the diagram. It looks like the face definitions use the diagram’s index numbers, but then end up referring to the points from the array which are at different locations.

---

<div class="post-metadata">

**Author:** ![NxNMatrixGL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/nxnmatrixgl/32/2553_2.png) [@NxNMatrixGL](https://forum.makecode.com/u/NxNMatrixGL)\
**Post date:** [November 2, 2022, 4:50pm UTC](https://forum.makecode.com/t/3d-graphics-test/6285/23 "2022-11-02T16:50:55Z")

</div>

Got it to render to correctly. Thanks! BTW, your 3D render code is documented really well. Thank you.

---

<div class="post-metadata">

**Author:** ![R0B0-BOT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/r0b0-bot/32/9783_2.png) [@R0B0-BOT](https://forum.makecode.com/u/R0B0-BOT)\
**Post date:** [December 4, 2023, 7:42am UTC](https://forum.makecode.com/t/3d-graphics-test/6285/24 "2023-12-04T07:42:51Z")

</div>

I tried the 3D cubes on my Meowbit, and it works great! It gets around 30 fps.

[Previous page](https://forum.makecode.com/t/3d-graphics-test/6285.md?page=1)
