I just have tested your new changes on the BumpMappingTest: that's great !
But i have two remarks :
- The test BumpMappingTest2 is broken because some ressources missing:
java.io.FileNotFoundException: \space\workspace\xith-tk\test-resources\shader\shader.bump.vertex.glsl (Le chemin d'accès spécifié est introuvable)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
at java.net.URL.openStream(URL.java:1009)
at org.xith3d.loaders.shaders.impl.glsl.GLSLShaderLoader.loadShader(GLSLShaderLoader.java:136)
at org.xith3d.loaders.shaders.impl.glsl.GLSLShaderLoader.loadVertexShader(GLSLShaderLoader.java:201)
at org.xith3d.effects.GLSLBumpMappingFactory.getVertexProgram(GLSLBumpMappingFactory.java:75)
- When i add an HUD, and if bumpmapping is enabled there's some strange HUD rendering results.
For example i have just added an HUD with one button, and one image on the test "BumpMappingTest" with this :
private HUD createHUD(Canvas3D canvas, OperationScheduler opSched){
HUD hud = new HUD(canvas, opSched);
hud.addWidget(new Button(100f, 25f, "test"),10f,10f );
hud.addWidgetCentered(new Image(100f, 100f, "lena.dds"));
return hud;
}
and this
env.addHUD(createHUD(canvas, this.getOperationScheduler()), this.getInputManager());
And, depending on the light position, the HUD widgets are lighted or not.
But if the bumpmapping is disabled like this
torus.setBumpMappingEnabled( false, "normalmap.bmp" );
the widgets are OK
Sorry to be so annoying with all my bugs, i'm just learning how Xith works
