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.
IndexProgramming Questions & HelpPrograms › Using 2D in a 3D environment
Page Index Toggle Pages: 1
Using 2D in a 3D environment (Read 549 times)
Using 2D in a 3D environment
Dec 12th, 2007, 1:18pm
 
Hi all,

Is it possible to draw to the screen in 2D, while in 3D mode?

Do you have to do it through billboarding (making an object face the camera - in which case, how can this be achieved in processing?). Or is it possible to use the regular commands to draw in both styles?

I'm looking to be able to place a semi-transparent rectangle over my entire sketch at the end of each frame to create a fade out effect.

Also, while I'm here, does anyone know whether Processing uses a right handed or left handed coordinate system?

Thanks for any help.

Martin
Re: Using 2D in a 3D environment
Reply #1 - Dec 12th, 2007, 2:42pm
 
Quote:
Is it possible to draw to the screen in 2D, while in 3D mode?

You can :
- draw your 3D scene in a buffer, using createGraphics(width, height, P3D) for example
- display the content of the buffer on the screen, using image(buffer, 0, 0)
- then draw 2D shapes or whatever over it

Quote:
does anyone know whether Processing uses a right handed or left handed coordinate system?

http://processing.org/reference/environment/#Coordinates
Re: Using 2D in a 3D environment
Reply #2 - Dec 12th, 2007, 5:08pm
 
Nice one, thanks for the help!
Page Index Toggle Pages: 1