Light Scatter - Material definition cannot be null

If i try to use Light Scatter , it shows the following error,



java.lang.NullPointerException: Material definition cannot be null

at com.jme3.material.Material.(Material.java:150)

at com.jme3.material.Material.(Material.java:157)

at com.jme3.post.filters.LightScatteringFilter.initFilter(LightScatteringFilter.java:121)

at com.jme3.post.Filter.init(Filter.java:163)

at com.jme3.post.FilterPostProcessor.initFilter(FilterPostProcessor.java:121)

at com.jme3.post.FilterPostProcessor.reshape(FilterPostProcessor.java:322)

at com.jme3.post.FilterPostProcessor.initialize(FilterPostProcessor.java:117)

at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:701)

at com.jme3.renderer.RenderManager.render(RenderManager.java:748)

at com.jme3.app.SimpleApplication.update(SimpleApplication.java:216)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:144)

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:141)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:203)

at java.lang.Thread.run(Thread.java:619)



I check the revision number, and in the Installed plugin list, it says

jMonkeyPlatform Core jME 3 → Version 0.7.0.6518



and the log of r6518 revision is


  • Ambient Pass is now gone. Ambient light is applied in the first light pass

    (as before)
  • Deleted old non-functional lighting shader and moved light scattering to post

    directory




    So, has the revision has created this issue?

LOL

according to the revision log Kirill changed the lightscattering files from the light directory to the post directory…but only the deletion from the light directory has been committed

(I’m sure it’s a subversion bug Kirill don’t worry :smiley: )



So JME3 does not have a light scattering filter anymore!! forget this feature!!!



i’ll fix that tonight.

after all these years subversion has bug!



maybe linus was right -.-

it’s fixed :wink:

umm, there is a new error, when i try to use LightScatter



java.lang.NullPointerException: Shader source cannot be null

at com.jme3.shader.Shader$ShaderSource.setSource(Shader.java:156)

at com.jme3.shader.Shader.addSource(Shader.java:294)

at com.jme3.asset.DesktopAssetManager.loadShader(DesktopAssetManager.java:339)

at com.jme3.material.Technique.loadShader(Technique.java:206)

at com.jme3.material.Technique.makeCurrent(Technique.java:191)

at com.jme3.material.Material.selectTechnique(Material.java:706)

at com.jme3.material.Material.autoSelectTechnique(Material.java:717)

at com.jme3.material.Material.render(Material.java:780)

at com.jme3.renderer.RenderManager.renderGeometry(RenderManager.java:445)

at com.jme3.post.FilterPostProcessor.renderProcessing(FilterPostProcessor.java:147)

at com.jme3.post.FilterPostProcessor.renderFilterChain(FilterPostProcessor.java:206)

at com.jme3.post.FilterPostProcessor.postFrame(FilterPostProcessor.java:218)

at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:731)

at com.jme3.renderer.RenderManager.render(RenderManager.java:748)

at com.jme3.app.SimpleApplication.update(SimpleApplication.java:216)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:146)

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:141)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:208)

at java.lang.Thread.run(Thread.java:662)

Sorry my bad, should be fixed in SVN now

thanks, it working agggain :smiley: