All pastes #458449 Raw Edit

Unnamed

public text v1 · immutable
#458449 ·published 2007-04-25 22:04 UTC
rendered paste body
18:03:01 SEVERE de.matthiasmann.worldscape.loader.effects.TechniqueData$ShaderAgg::parseResult	Unable to link shader
de.matthiasmann.worldscape.renderer.ShaderException: ERROR: 0:7: '[]' : integer expression required 
ERROR: 1 compilation errors.  No code generated.


001: uniform vec4 color;
002: uniform vec4 colors[64];
003: 
004: void main (void) {
005:     gl_Position = gl_ModelViewProjectionMatrix * vec4(gl_Vertex.xy, 0.0, 1.0);
006:     gl_TexCoord[0].xy = gl_Normal.xy;
007:     gl_FrontColor = colors[gl_Normal.z];
008: }

	at de.matthiasmann.worldscape.renderer.Shader.checkShader(Shader.java:48)
	at de.matthiasmann.worldscape.renderer.ShaderProgram.linkProgram(ShaderProgram.java:887)
	at de.matthiasmann.worldscape.loader.effects.ShaderData.link(ShaderData.java:53)
	at de.matthiasmann.worldscape.loader.effects.TechniqueData$ShaderAgg.parseResult(TechniqueData.java:142)
	at de.matthiasmann.worldscape.loader.effects.TechniqueData$ShaderAgg.parseResult(TechniqueData.java:118)
	at de.matthiasmann.worldscape.xml.Aggregator.parse(Aggregator.java:32)
	at de.matthiasmann.worldscape.xml.TagParser.parseContent(TagParser.java:42)
	at de.matthiasmann.worldscape.xml.AbstractParser.parse(AbstractParser.java:56)
	at de.matthiasmann.worldscape.xml.Aggregator.parse(Aggregator.java:31)
	at de.matthiasmann.worldscape.xml.TagParser.parseContent(TagParser.java:42)
	at de.matthiasmann.worldscape.xml.AbstractParser.parse(AbstractParser.java:56)
	at de.matthiasmann.worldscape.loader.effects.XmlEffectLoader.load(XmlEffectLoader.java:79)
	at de.matthiasmann.worldscape.loader.effects.XmlEffectLoader.getAppearance(XmlEffectLoader.java:41)
	at de.matthiasmann.worldscape.loader.effects.XmlEffectLoader.getAppearance(XmlEffectLoader.java:34)
	at de.matthiasmann.worldscape.ui.UIBatcher.<init>(UIBatcher.java:30)
	at de.matthiasmann.worldscape.ui.UIBatcher.<clinit>(UIBatcher.java:24)
	at de.matthiasmann.worldscape.ui.bmfont.BMFontManager.<init>(BMFontManager.java:37)
	at de.matthiasmann.worldscape.ui.bmfont.BMFontManager.<clinit>(BMFontManager.java:32)
	at de.matthiasmann.worldscape.test.TestBench.createFont(TestBench.java:159)
	at de.matthiasmann.worldscape.test.TestBench.downloadAndMountPAKs(TestBench.java:179)
	at de.matthiasmann.worldscape.test.TestBench.init(TestBench.java:124)
	at de.matthiasmann.worldscape.test.BTTTest.main(BTTTest.java:448)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

18:03:01 INFO de.matthiasmann.worldscape.loader.effects.RenderStateLoader::loadFromXml	Loading render state: /renderStates/ui.xml
18:03:01 WARNING de.matthiasmann.worldscape.loader.effects.EffectData::addTechnique	getTechnique() returned null without an alternate
18:03:01 INFO de.matthiasmann.worldscape.loader.effects.XmlEffectLoader::load	Loading of "/effects/ui/combined.xml" took 61065 us
18:03:01 WARNING de.matthiasmann.worldscape.appearance.Effect::getTechnique	Technique "default" not found
18:03:01 WARNING de.matthiasmann.worldscape.appearance.Effect::getTechnique	Technique "default" not found
java.lang.ExceptionInInitializerError
	at de.matthiasmann.worldscape.ui.bmfont.BMFontManager.<init>(BMFontManager.java:37)
	at de.matthiasmann.worldscape.ui.bmfont.BMFontManager.<clinit>(BMFontManager.java:32)
	at de.matthiasmann.worldscape.test.TestBench.createFont(TestBench.java:159)
	at de.matthiasmann.worldscape.test.TestBench.downloadAndMountPAKs(TestBench.java:179)
	at de.matthiasmann.worldscape.test.TestBench.init(TestBench.java:124)
	at de.matthiasmann.worldscape.test.BTTTest.main(BTTTest.java:448)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
	at de.matthiasmann.worldscape.ui.batcher.Batch.<init>(Batch.java:47)
	at de.matthiasmann.worldscape.ui.batcher.Batch.<init>(Batch.java:39)
	at de.matthiasmann.worldscape.ui.UIBatcher.<init>(UIBatcher.java:30)
	at de.matthiasmann.worldscape.ui.UIBatcher.<clinit>(UIBatcher.java:24)
	... 15 more
#### Java Web Start Error:
#### null