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
clearing ZBuffer? (Read 1138 times)
clearing ZBuffer?
May 25th, 2005, 1:53am
 
Hi,

I'm running in some problems converting old applets. In some, I need to clear the ZBuffer. However, g.zbuffer no longer seems to exist: "No accesible field named "zbuffer" was found in type "processing.core.PGraphics"."

I'm missing something very obvious here...


Seeya,

Frederik
www.wmute.org
Re: clearing ZBuffer?
Reply #1 - May 25th, 2005, 3:09am
 
you have to cast it to a PGraphics3 object:

PGraphics3 g3 = (PGraphics3) g;

then do things to g3.zbuffer... will probably move this stuff into PGraphics so you won't have to do this annoying cast thing.
Re: clearing ZBuffer?
Reply #2 - Jul 28th, 2005, 5:50pm
 
update: as of revision 92 and later, casting back to a PGraphics3 is no longer necessary.
Page Index Toggle Pages: 1