Talk:Engine Test Build

From Mythruna Wiki
Jump to: navigation, search

when i ran the Mythruna-20110415 game the following exception arrise.

Uncaught exception from thread:Thread[LWJGL Renderer Thread,5,main] com.jme3.renderer.RendererException: compile error in:ShaderSource[name=Common/MatDefs/Post/bloomExtract15.frag, defines, type=Fragment] error:Fragment shader failed to compile with the following errors: ERROR: 0:20: error(#155) Internal error wrong operand type built in unary operator function. Type: in sampler2DMS ERROR: error(#273) 1 compilation errors. No code generated

at com.jme3.renderer.lwjgl.LwjglRenderer.updateShaderSourceData(LwjglRenderer.java:887) at com.jme3.renderer.lwjgl.LwjglRenderer.updateShaderData(LwjglRenderer.java:922) at com.jme3.renderer.lwjgl.LwjglRenderer.setShader(LwjglRenderer.java:1002) at com.jme3.material.Material.render(Material.java:874) at com.jme3.renderer.RenderManager.renderGeometry(RenderManager.java:428) at com.jme3.post.FilterPostProcessor.renderProcessing(FilterPostProcessor.java:148) at com.jme3.post.FilterPostProcessor.renderFilterChain(FilterPostProcessor.java:191) at com.jme3.post.FilterPostProcessor.postFrame(FilterPostProcessor.java:224) at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:719) at com.jme3.renderer.RenderManager.render(RenderManager.java:738) at com.jme3.app.SimpleApplication.update(SimpleApplication.java:257) at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:137) at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:161) at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205) at java.lang.Thread.run(Unknown Source)


i've already report this error to the jmonkey site

http://code.google.com/p/jmonkeyengine/issues/detail?id=325&can=1&colspec=ID Type Status Component Priority Product Milestone Owner Summary&start=300

--> Issue 325: Fragment shader failed to compile

this problem has to do with the setupFilter function.

private void setupFilter() {
       FilterPostProcessor fpp = new FilterPostProcessor(assetManager);
       BloomFilter bloom = new BloomFilter(BloomFilter.GlowMode.Objects);
       fpp.addFilter(bloom);
       viewPort.addProcessor(fpp);



I have an problem:


Uncaught exception from thread:Thread[LWJGL Renderer Thread,5,main] com.jme3.renderer.RendererException: Shader link failure, shader:Shader[language=GLSL100, numSources=2, numUniforms=15, shaderSources=[ShaderSource[name=MatDefs/MyLighting.vert, defines, type=Vertex], ShaderSource[name=MatDefs/MyLighting.frag, defines, type=Fragment]]] info:Fragment shader(s) failed to link, vertex shader(s) linked.

at com.jme3.renderer.lwjgl.LwjglRenderer.updateShaderData(LwjglRenderer.java:968) at com.jme3.renderer.lwjgl.LwjglRenderer.setShader(LwjglRenderer.java:1002) at com.jme3.material.Material.renderMultipassLighting(Material.java:672) at com.jme3.material.Material.render(Material.java:865) at com.jme3.renderer.RenderManager.renderGeometry(RenderManager.java:428) at com.jme3.renderer.queue.RenderQueue.renderGeometryList(RenderQueue.java:174) at com.jme3.renderer.queue.RenderQueue.renderQueue(RenderQueue.java:225) at com.jme3.renderer.RenderManager.renderViewPortQueues(RenderManager.java:569) at com.jme3.renderer.RenderManager.flushQueue(RenderManager.java:549) at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:715) at com.jme3.renderer.RenderManager.render(RenderManager.java:740) at com.jme3.app.SimpleApplication.update(SimpleApplication.java:257) at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:137) at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:161) at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205) at java.lang.Thread.run(Unknown Source)

Personal tools