We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Mixing 2D and 3D (Read 804 times)
Mixing 2D and 3D
Dec 27th, 2008, 1:44am
 
I am interested in displaying a flat, 2D interface on "top" of a 3D scene.

I am sure there is a ridiculously obvious way to do this.

Nonetheless I can't seem to figure it out.

Any ideas on this would be greatly appreciated!
Re: Mixing 2D and 3D
Reply #1 - Dec 27th, 2008, 10:43pm
 
Figured it out Smiley
Re: Mixing 2D and 3D
Reply #2 - Jan 2nd, 2009, 8:45pm
 
Edit: I guess I should have clarified; How did you end up doing this?


There may be other ways to do this, but some methods I have made use of are
http://processing.org/reference/pushMatrix_.html

+
http://processing.org/reference/popMatrix_.html

to move things then start at the origin again.

with
http://processing.org/reference/textMode_.html

to draw text directly to screen coordinates.

and
http://processing.org/reference/hint_.html

to disable depth sorting because objects can be closer to the camera than the screen (z == 0)
Page Index Toggle Pages: 1