Depth of the field and ShadowMapping problem

Hi,

Im having problems with the recently added effects Depth of Field and ShadowMapping.

The test for DirectionalShadowMap works on OSX but not on Windows on my ATI X1600 mobile.

On windows it blinks a gray screen and throws an error saying that cannot invert matrix.

Here is the log error:



Sep 14, 2008 6:06:43 PM com.jme.renderer.lwjgl.LWJGLTextureRenderer setupTexture
INFO: setup fbo tex with id 7: 2048,2048
Sep 14, 2008 6:06:44 PM com.jme.scene.state.lwjgl.shader.LWJGLShaderUtil updateUniformLocation
SEVERE: Shader uniform [offset] could not be located in shader
Sep 14, 2008 6:06:48 PM class jmetest.renderer.TestDirectionalShadowMapPass start()
SEVERE: Exception in game loop
java.lang.ArithmeticException: This matrix cannot be inverted
   at com.jme.math.Matrix4f.invert(Matrix4f.java:1041)
   at com.jme.math.Matrix4f.invert(Matrix4f.java:1015)
   at com.jme.renderer.pass.DirectionalShadowMapPass.renderShadowedScene(DirectionalShadowMapPass.java:461)
   at com.jme.renderer.pass.DirectionalShadowMapPass.doRender(DirectionalShadowMapPass.java:444)
   at com.jme.renderer.pass.Pass.renderPass(Pass.java:90)
   at com.jme.renderer.pass.BasicPassManager.renderPasses(BasicPassManager.java:90)
   at com.jme.app.SimplePassGame.render(SimplePassGame.java:84)
   at com.jme.app.BaseGame.start(BaseGame.java:84)
   at jmetest.renderer.TestDirectionalShadowMapPass.main(TestDirectionalShadowMapPass.java:90)




The depth of field on osx works very slow, about 7 fps.
On windows it simply doesnt make the desired effect and make only white flashes on screen.

Im not depending on it, its just to report the problem.

Well then, let's hope the developers see this.

Yes, up to date drivers!

X1600 has Shadel Model 3.0

Hmm coming from this topic I experience the same problem when trying to use shadowmapping  :frowning:



I also receive a “SEVERE: Shader uniform [offset] could not be located in shader” like clovis, though no exception, but that might explain that the shadowmaps are pixelated, obivously rendered in software + I get very bad performance.



I’m using only an Ati9700 Mobility which is weak but it supports up to shader 2.0. Should still be sufficient, no?

clovis said:

Hi,
Im having problems with the recently added effects Depth of Field and ShadowMapping.


The depth of field on osx works very slow, about 7 fps.
On windows it simply doesnt make the desired effect and make only white flashes on screen.

Could you please try the files in the jcrpg repository? It should work faster theoretically (its better on my rig). Replace the jme repository's default shaders (you can download the files from this url):
http://javacrpg.svn.sourceforge.net/viewvc/javacrpg/trunk/jcrpg/src/org/jcrpg/threed/jme/effects/shader/