# Text output in 3d using various rotations: text letters bounding box becomes not transparent

**URL:** <https://discourse.processing.org/t/text-output-in-3d-using-various-rotations-text-letters-bounding-box-becomes-not-transparent/15629>\
**Category:** Coding Questions\
**Created:** [November 19, 2019, 12:24am UTC](https://discourse.processing.org/t/text-output-in-3d-using-various-rotations-text-letters-bounding-box-becomes-not-transparent/15629 "2019-11-19T00:24:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![add02one](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@add02one](https://discourse.processing.org/u/add02one)\
**Post date:** [November 19, 2019, 12:24am UTC](https://discourse.processing.org/t/text-output-in-3d-using-various-rotations-text-letters-bounding-box-becomes-not-transparent/15629/1 "2019-11-19T00:24:46Z")

</div>

hi, i’m trying to output text in 3d using various rotations and subsequent text’s bounding box starts hiding the text below.

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/25667af368720466d5211eca8e39a5f17ed42e03.png)

This is my code, very simple. Is there a way to fix this?

Thanks in advance!

```auto
void setup() {
  size(300, 300, P3D);                         
  fill(300, 300, 0);
  textAlign(LEFT, CENTER);
  background(0);
}  
void draw() { 
  background(0);
  textSize(56);
  fill(0, 102, 153, 500);
  
  pushMatrix();
     rotateY(radians(30));
     text("word", 12, 45); 
  popMatrix();
  
  pushMatrix();
     rotateY(radians(50));
     text("word", 12, 60);
  popMatrix();
}

```

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 19, 2019, 2:01am UTC](https://discourse.processing.org/t/text-output-in-3d-using-various-rotations-text-letters-bounding-box-becomes-not-transparent/15629/2 "2019-11-19T02:01:22Z")

</div>

play with  
[https://processing.org/reference/hint\_.html](https://processing.org/reference/hint_.html)

```auto
void setup() {
  size(300, 300, P3D);                         
  textAlign(LEFT, CENTER);
  //hint(ENABLE_DEPTH_TEST);
  //hint(ENABLE_DEPTH_SORT);
  hint(DISABLE_DEPTH_TEST);
  
}

void draw() { 
  background(200,200,0);

  textSize(56);
  fill(0, 102, 153, 500);
  pushMatrix();
  rotateY(radians(30));
  text("word1", 12, 45); 
  popMatrix();

  pushMatrix();
  rotateY(radians(50));
  text("word2", 12, 60);
  popMatrix();
}

```

---

<div class="post-metadata">

**Author:** ![add02one](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@add02one](https://discourse.processing.org/u/add02one)\
**Post date:** [November 19, 2019, 2:56am UTC](https://discourse.processing.org/t/text-output-in-3d-using-various-rotations-text-letters-bounding-box-becomes-not-transparent/15629/3 "2019-11-19T02:56:36Z")

</div>

> [@kll](#):
>
> play with  
> [hint() / Reference / Processing.org](https://processing.org/reference/hint_.html)

thanks a lot! hint(DISABLE\_DEPTH\_TEST) fixed it
