diff options
author | Kevin Rushforth <[email protected]> | 2006-12-05 19:35:21 +0000 |
---|---|---|
committer | Kevin Rushforth <[email protected]> | 2006-12-05 19:35:21 +0000 |
commit | ccab634295f344e5b5812c62bf5ff5645922bb73 (patch) | |
tree | c6eedab10da17c0128e6713c2df7244dac7db9d0 /src/classes/jogl | |
parent | e854cc3ab06c86944a631a6b1e0c7ac454682726 (diff) |
Fixed the following issues:
400: Lighting differs with various renderers
403: AssertionError while changing (offscreen) Texture size
Partially fixed the following issue (JOGL pipeline is fixed):
399: Off-screen Canvas3D / JOGL | D3D: j3d.transparentOffScreen ignored
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@754 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/classes/jogl')
-rw-r--r-- | src/classes/jogl/javax/media/j3d/JoglPipeline.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/classes/jogl/javax/media/j3d/JoglPipeline.java b/src/classes/jogl/javax/media/j3d/JoglPipeline.java index eae3ab2..40a0b7e 100644 --- a/src/classes/jogl/javax/media/j3d/JoglPipeline.java +++ b/src/classes/jogl/javax/media/j3d/JoglPipeline.java @@ -6961,6 +6961,9 @@ class JoglPipeline extends Pipeline { gl.glDepthFunc(GL.GL_LEQUAL); gl.glEnable(GL.GL_COLOR_MATERIAL); gl.glReadBuffer(GL.GL_FRONT); + + // Workaround for issue 400: Enable separate specular by default + gl.glLightModeli(GL.GL_LIGHT_MODEL_COLOR_CONTROL, GL.GL_SEPARATE_SPECULAR_COLOR); } finally { context.release(); } @@ -8657,6 +8660,11 @@ class JoglPipeline extends Pipeline { // (Java3D's native code has a loop trying 8, 6, 4, 3, and 2 samples) caps.setNumSamples(4); + // Issue 399: Request alpha buffer if transparentOffScreen is set + if (VirtualUniverse.mc.transparentOffScreen) { + caps.setAlphaBits(1); + } + java.util.List<Integer> capsToDisable = new ArrayList<Integer>(); // Add PREFERRED capabilities in order we will try disabling them if (gct.getStereo() == GraphicsConfigTemplate.PREFERRED) { |