Loading...
Logo
Processing Forum

3d text

in General Discussion  •  Other  •  5 months ago  
Hello, I'm making a 3D editor software and I use OCD camera library but when i add text, this text is implented into the 3D scene but i want it to be in the front of the screen and not moving with camera

thancks

Replies(1)

Re: 3d text

5 months ago
There are many ways to do this, see the code snippet below for some useful methods. Try searching for 2D/3D and you will most likely find more solutions, such as using PGraphics. This topic has been discussed many times.

Code Snippet
Copy code
  1. void draw() {
  2.   // 3D code
  3.  
  4.   hint(DISABLE_DEPTH_TEST);
  5.   camera();
  6.   noLights();
  7.   // 2D code
  8.   hint(ENABLE_DEPTH_TEST);
  9. }