Hello,
When I try to run the TestFog.java, I get the following output in the console. Something similar happends when I try to run TestPostWater.java or TestHoverTank.java (and others). Most examples work, but a lot give me these kind of errors. I only get a black screen shortly which is closed after a second or so. Any idea what causes this?
Husky
init:
Deleting: C:UsersArjenDocumentsjMonkeyProjectsJmeTestsbuildbuilt-jar.properties
deps-jar:
Updating property file: C:UsersArjenDocumentsjMonkeyProjectsJmeTestsbuildbuilt-jar.properties
Compiling 1 source file to C:UsersArjenDocumentsjMonkeyProjectsJmeTestsbuildclasses
compile-single:
run-single:
6-sep-2011 20:21:22 com.jme3.system.JmeSystem initialize
INFO: Running on jMonkeyEngine 3.0.0 Beta
6-sep-2011 20:21:22 com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory #1: file:/C:/Users/Arjen/AppData/Roaming/.jmonkeyplatform/dev/libs/
6-sep-2011 20:21:22 com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory #2: C:UsersArjenDocumentsjMonkeyProjectsJmeTests
6-sep-2011 20:21:22 com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory #3: C:UsersArjenDocumentsjMonkeyProjectsJmeTests
6-sep-2011 20:21:22 com.jme3.system.Natives extractNativeLib
WARNING: Cannot locate native library: windows/bulletjme.dll
6-sep-2011 20:21:22 com.jme3.system.lwjgl.LwjglAbstractDisplay run
INFO: Using LWJGL 2.7.1
6-sep-2011 20:21:22 com.jme3.system.lwjgl.LwjglDisplay createContext
INFO: Selected display mode: 1280 x 720 x 0 @0Hz
6-sep-2011 20:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Adapter: atiu9p64 aticfx64 atiu9pag aticfx32 atiumd64 atidxx64 atiumdag atidxx32 atiumdva atiumd6a atitmm64
6-sep-2011 20:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Driver Version: null
6-sep-2011 20:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Vendor: ATI Technologies Inc.
6-sep-2011 20:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: OpenGL Version: 3.2.9551 Compatibility Profile Context
6-sep-2011 20:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Renderer: ATI Radeon 3000 Graphics
6-sep-2011 20:21:22 com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: GLSL Ver: 1.50
6-sep-2011 20:21:22 com.jme3.system.lwjgl.LwjglTimer
INFO: Timer resolution: 1.000 ticks per second
6-sep-2011 20:21:22 com.jme3.renderer.lwjgl.LwjglRenderer initialize
INFO: Caps: [FrameBuffer, FrameBufferMRT, FrameBufferMultisample, TextureMultisample, OpenGL20, OpenGL21, OpenGL30, OpenGL31, OpenGL32, ARBprogram, GLSL100, GLSL110, GLSL120, GLSL130, GLSL140, GLSL150, VertexTextureFetch, TextureArray, TextureBuffer, FloatTexture, FloatColorBuffer, FloatDepthBuffer, PackedFloatTexture, SharedExponentTexture, PackedFloatColorBuffer, TextureCompressionLATC, NonPowerOfTwoTextures, MeshInstancing, VertexBufferArray]
6-sep-2011 20:21:22 com.jme3.asset.DesktopAssetManager
INFO: DesktopAssetManager created.
6-sep-2011 20:21:22 com.jme3.renderer.Camera
INFO: Camera created (W: 1.280, H: 720)
6-sep-2011 20:21:22 com.jme3.renderer.Camera
INFO: Camera created (W: 1.280, H: 720)
6-sep-2011 20:21:22 com.jme3.input.lwjgl.LwjglMouseInput initialize
INFO: Mouse created.
6-sep-2011 20:21:22 com.jme3.input.lwjgl.LwjglKeyInput initialize
INFO: Keyboard created.
6-sep-2011 20:21:23 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: AudioRenderer supports 64 channels
6-sep-2011 20:21:23 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio effect extension version: 1.0
6-sep-2011 20:21:23 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio max auxilary sends: 1
6-sep-2011 20:21:23 com.jme3.material.MaterialDef
INFO: Loaded material definition: Unshaded
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Gui Node)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (Statistics View) attached to this node (Gui Node)
6-sep-2011 20:21:23 com.jme3.material.MaterialDef
INFO: Loaded material definition: Sky Plane
6-sep-2011 20:21:23 com.jme3.scene.Node attachChild
INFO: Child (Sky) attached to this node (null)
6-sep-2011 20:21:24 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
6-sep-2011 20:21:24 com.jme3.material.MaterialDef
INFO: Loaded material definition: Phong Lighting
6-sep-2011 20:21:24 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: depth_write
6-sep-2011 20:21:25 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
6-sep-2011 20:21:26 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
6-sep-2011 20:21:26 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
6-sep-2011 20:21:27 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
6-sep-2011 20:21:27 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
6-sep-2011 20:21:28 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
6-sep-2011 20:21:29 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
6-sep-2011 20:21:29 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
6-sep-2011 20:21:29 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
WARNING: Unsupported pass directive: depth_write
6-sep-2011 20:21:29 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
6-sep-2011 20:21:30 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
WARNING: Unsupported texture_unit directive: colour_op
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (wildhouse) attached to this node (main-scene_node)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-1) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-2) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-3) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-4) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-5) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-6) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-7) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-8) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-9) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-10) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-11) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-12) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-geom-13) attached to this node (main-ogremesh)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-ogremesh) attached to this node (wildhouse-entity)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (wildhouse-entity) attached to this node (wildhouse)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (main-scene_node) attached to this node (null)
6-sep-2011 20:21:30 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Root Node)
6-sep-2011 20:21:30 com.jme3.renderer.Camera
INFO: Camera created (W: 1, H: 1)
6-sep-2011 20:21:30 com.jme3.material.MaterialDef
INFO: Loaded material definition: Fade
6-sep-2011 20:21:30 com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
INFO: Uniform g_CameraPosition is not declared in shader [ShaderSource[name=Common/MatDefs/Light/Lighting.vert, defines, type=Vertex], ShaderSource[name=Common/MatDefs/Light/Lighting.frag, defines, type=Fragment]].
6-sep-2011 20:21:30 com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
INFO: Uniform g_WorldMatrix is not declared in shader [ShaderSource[name=Common/MatDefs/Light/Lighting.vert, defines, type=Vertex], ShaderSource[name=Common/MatDefs/Light/Lighting.frag, defines, type=Fragment]].
6-sep-2011 20:21:30 com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
INFO: Uniform m_ParallaxHeight is not declared in shader [ShaderSource[name=Common/MatDefs/Light/Lighting.vert, defines, type=Vertex], ShaderSource[name=Common/MatDefs/Light/Lighting.frag, defines, type=Fragment]].
6-sep-2011 20:21:30 com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
INFO: Uniform m_UseMaterialColors is not declared in shader [ShaderSource[name=Common/MatDefs/Light/Lighting.vert, defines, type=Vertex], ShaderSource[name=Common/MatDefs/Light/Lighting.frag, defines, type=Fragment]].
6-sep-2011 20:21:30 com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
INFO: Uniform m_GlowColor is not declared in shader [ShaderSource[name=Common/MatDefs/Light/Lighting.vert, defines, type=Vertex], ShaderSource[name=Common/MatDefs/Light/Lighting.frag, defines, type=Fragment]].
6-sep-2011 20:21:31 com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
INFO: Uniform m_UseAlpha is not declared in shader [ShaderSource[name=Common/MatDefs/Light/Lighting.vert, defines, type=Vertex], ShaderSource[name=Common/MatDefs/Light/Lighting.frag, defines, type=Fragment]].
6-sep-2011 20:21:31 com.jme3.renderer.lwjgl.LwjglRenderer updateShaderSourceData
WARNING: Bad compile of:
#extension GL_ARB_texture_multisample : enable
uniform int m_NumSamples;
uniform int m_NumSamplesDepth;
#ifdef RESOLVE_MS
#define COLORTEXTURE sampler2DMS
#else
#define COLORTEXTURE sampler2D
#endif
#ifdef RESOLVE_DEPTH_MS
#define DEPTHTEXTURE sampler2DMS
#else
#define DEPTHTEXTURE sampler2D
#endif
// NOTE: Only define multisample functions if multisample is being used!
#ifdef GL_ARB_texture_multisample
vec4 textureFetch(in sampler2DMS tex,in vec2 texC, in int numSamples){
ivec2 iTexC = ivec2(texC * textureSize(tex));
vec4 color = vec4(0.0);
for (int i = 0; i < numSamples; i++){
color += texelFetch(tex, iTexC, i);
}
return color / numSamples;
}
vec4 fetchTextureSample(in sampler2DMS tex,in vec2 texC,in int sample){
ivec2 iTexC = ivec2(texC * textureSize(tex));
return texelFetch(tex, iTexC, sample);
}
vec4 getColor(in sampler2DMS tex, in vec2 texC){
return textureFetch(tex, texC, m_NumSamples);
}
vec4 getColorSingle(in sampler2DMS tex, in vec2 texC){
ivec2 iTexC = ivec2(texC * textureSize(tex));
return texelFetch(tex, iTexC, 0);
}
vec4 getDepth(in sampler2DMS tex,in vec2 texC){
return textureFetch(tex,texC,m_NumSamplesDepth);
}
#endif
vec4 fetchTextureSample(in sampler2D tex,in vec2 texC,in int sample){
return texture2D(tex,texC);
}
vec4 getColor(in sampler2D tex, in vec2 texC){
return texture2D(tex,texC);
}
vec4 getColorSingle(in sampler2D tex, in vec2 texC){
return texture2D(tex, texC);
}
vec4 getDepth(in sampler2D tex,in vec2 texC){
return texture2D(tex,texC);
}
uniform COLORTEXTURE m_Texture;
uniform DEPTHTEXTURE m_DepthTexture;
uniform vec4 m_FogColor;
uniform float m_FogDensity;
uniform float m_FogDistance;
in vec2 texCoord;
vec2 m_FrustumNearFar=vec2(1.0,m_FogDistance);
const float LOG2 = 1.442695;
void main() {
vec4 texVal = getColor(m_Texture, texCoord);
float fogVal = getDepth(m_DepthTexture,texCoord).r;
float depth= (2.0 * m_FrustumNearFar.x) / (m_FrustumNearFar.y + m_FrustumNearFar.x - fogVal* (m_FrustumNearFar.y-m_FrustumNearFar.x));
float fogFactor = exp2( -m_FogDensity * m_FogDensity * depth * depth * LOG2 );
fogFactor = clamp(fogFactor, 0.0, 1.0);
gl_FragColor =mix(m_FogColor,texVal,fogFactor);
}
6-sep-2011 20:21:31 com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
com.jme3.renderer.RendererException: compile error in:ShaderSource[name=Common/MatDefs/Post/Fog15.frag, defines, type=Fragment] error:Fragment shader failed to compile with the following errors:
WARNING: 0:21: warning(#239) Declaration should include a precision qualifier or the default precision should have been previously declared
ERROR: 0:22: error(#155) Internal error wrong operand type built in unary operator function. Type: in sampler2DMS
ERROR: error(#273) 1 compilation errors. No code generated
could you try to update your graphic drivers?
Why would it complain about sampler2DMS not being defined if GL_ARB_texture_multisample is defined? Maybe it doesn’t like it that the sampler2DMS is specified as in input to a function rather than a uniform? In either case the driver is clearly broken…