# Text on top of 3D box

**URL:** <https://discourse.processing.org/t/text-on-top-of-3d-box/35757>\
**Category:** Coding Questions\
**Created:** [March 15, 2022, 2:17am UTC](https://discourse.processing.org/t/text-on-top-of-3d-box/35757 "2022-03-15T02:17:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Shwaa](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/shwaa/32/9696_2.png) [@Shwaa](https://discourse.processing.org/u/Shwaa)\
**Post date:** [March 15, 2022, 2:46am UTC](https://discourse.processing.org/t/text-on-top-of-3d-box/35757/2 "2022-03-15T02:46:23Z")

</div>

If what you want is to draw like a 2d sketch over your 3d sketch, this post will help you:

> [@Drawing 2D GUI over a 3D sketch](https://discourse.processing.org/t/drawing-2d-gui-over-a-3d-sketch/22819):
>
> I’m making a 3D game, and a problem I ran into was drawing a 2D GUI over top of the main 3D sketch. The solution I found is pretty simple, but it works really well: //IMPORTANT: make sure to use textMode(SHAPE) before using this!! Otherwise text will be drawn as black boxes. //GUI hint(DISABLE\_DEPTH\_TEST); //draws on top of whatever is drawn on screen camera(); //reset camera to default position, which conveniently lines up with the screen exactly ortho(); //orthographic projection r…

---

_[View the full topic](https://discourse.processing.org/t/text-on-top-of-3d-box/35757)._
