From: Kenneth B. R. <kbr...@al...> - 2001-12-14 04:02:30
|
> How can I change the number of bits of the depth buffer. > I have used: > GLContext kj =this.getGLContext(); > GLCapabilities lk = kj.getGLCapabilities(); > lk.setDepthBits(32); This definitely won't work; you need to set this before you create the context. For example, use the GLDrawableFactory and set up the GLCapabilities when you call createGLAnimCanvas. However, I'm not sure what depth buffer sizes most current hardware supports. I think the GLDrawableFactory will return null if the requested depth can't be satisfied, but am not sure. |