FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Bug Fixes, Implemented Suggestions
(Moderator: fry)
   Disable Zbuffer
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Disable Zbuffer  (Read 2136 times)
_scloopy
Guest
Email
Disable Zbuffer
« on: Mar 4th, 2004, 8:27pm »

I noticed that when you start using 3d transformations, any 2d polys drawn over each other have problems fighting for the zbuffer, so it'd be helpful to have maybe a hint(DISABLE_ZBUFFER); or something like that so that p5 just draws everything on top.
 
I've seen the posts about clearing the zbuffer too, but in my case i'd have to clear it every time i draw a shape. It'd probably be faster too, because it would't be comparing z values all the time
 
fry


WWW
Re: Disable Zbuffer
« Reply #1 on: Mar 5th, 2004, 5:54pm »

as of now (subject to change, so it's not in the reference), this can be done with:
g.depthTest = false;
or vice versa. you're right thought, it should probably be a hint(), because it's pretty useful. i'll make a note to change that.
« Last Edit: Mar 5th, 2004, 5:56pm by fry »  
skloopy

WWW
Re: Disable Zbuffer
« Reply #2 on: Mar 5th, 2004, 8:20pm »

Thanks fry! That relly helps me out! Sweet!
 
fry


WWW
Re: Disable Zbuffer
« Reply #3 on: Jul 10th, 2004, 8:49pm »

now changed to hint(NO_DEPTH_TEST) for megabucket.
 
Pages: 1 

« Previous topic | Next topic »