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
Camera to texture (Read 1272 times)
Camera to texture
Nov 27th, 2009, 6:18am
 
Hi. Is it possible in processing to set up a virtual camera (or several), and map the output to a texture?

Thanks

Will
Re: Camera to texture
Reply #1 - Nov 27th, 2009, 6:53am
 
using the "gestalt" library you are able to use a sketch as texture. Maybe it works for what you want to do
http://www.the-product.org/gestalt/
Re: Camera to texture
Reply #2 - Nov 30th, 2009, 8:18am
 
Thanks, I'll take a look
Re: Camera to texture
Reply #3 - Nov 30th, 2009, 8:42am
 
I'm not sure what you mean by virtual camera -- you mean video camera?

You don't need Gestalt (or any other library) to use a sketch as a texture; you can do with that with offscreen rendering.  See:
http://processing.org/reference/PGraphics.html

Also, GLGraphics works similarly if you're using that renderer instead of the default OpenGL renderer (which will someday be included with Processing).
Page Index Toggle Pages: 1