I tried using the DirectionalLightShadowRenderer (latest nightly build) and got a compile error:
[java]
Mrz 02, 2014 11:16:54 PM com.jme3.app.Application handleError
Schwerwiegend: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
com.jme3.renderer.RendererException: compile error in:ShaderSource[name=Common/MatDefs/Shadow/PostShadow.vert, defines, type=Vertex, language=GLSL150] error:0(88) : warning C7555: ‘varying’ is deprecated, use ‘in/out’ instead
0(89) : warning C7555: ‘varying’ is deprecated, use ‘in/out’ instead
0(90) : warning C7555: ‘varying’ is deprecated, use ‘in/out’ instead
0(91) : warning C7555: ‘varying’ is deprecated, use ‘in/out’ instead
0(101) : error C1038: declaration of “m_LightPos” conflicts with previous declaration at 0(86)
0(103) : warning C7555: ‘varying’ is deprecated, use ‘in/out’ instead
0(110) : warning C7555: ‘varying’ is deprecated, use ‘in/out’ instead
0(112) : warning C7555: ‘varying’ is deprecated, use ‘in/out’ instead
0(114) : warning C7555: ‘attribute’ is deprecated, use ‘in/out’ instead
[/java]
Before that there is all the code of PostShadow.vert (I don’t think I need to include that, do I?)
I’m running it on a NVidia GTX 660M, if that helps you. @nehon, I believe you are the professional for that, aren`t you?
Ah, I forgot: The “TestDirectionalLightShadow”-test works for me.
But it does not work when I copy-paste the dlsr-code into mine:
[java]
DirectionalLightShadowRenderer dlsr = new DirectionalLightShadowRenderer(assetManager, 2048, 3);
dlsr.setLight(sunLight);
dlsr.setLambda(0.55f);
dlsr.setShadowIntensity(0.6f);
dlsr.setEdgeFilteringMode(EdgeFilteringMode.Nearest);
dlsr.displayDebug();
viewPort.addProcessor(dlsr);
[/java]
I don’t think it’s a problem with my code: I tried a few older projects with dlsr that worked before and now do not.
@m41q said:
Before that there is all the code of PostShadow.vert (I don't think I need to include that, do I?)
It’s actually not the code to PostShadow.vert. It’s the code that was passed to the compiler that is based on the PostShadow.vert. That’s why the log dumps it because it’s the only way to see what those line numbers actually match up to without us running and getting the same error ourselves.
@pspeed said:
It's actually not the code to PostShadow.vert. It's the code that was passed to the compiler that is _based on_ the PostShadow.vert. That's why the log dumps it because it's the only way to see what those line numbers actually match up to without us running and getting the same error ourselves.