Problem with BumpNode

j have written the following code



protected void simpleInitGame()

{





.

.

box=new MyBox(“scatola”,new Vector3f(0,0,0),new Vector3f(50,50,50));

box.setModelBound(new BoundingBox(“bounding”));

box.updateModelBound();

box.setLocalTranslation(new Vector3f(-156f,520f,-400f));



nodo=new Node(“padre nodo bump”);

bumpNode=new BumpMapNode(nodo,skyBottom,dr,false);



box.setRandomColors();

bumpNode.attachChild(box); // row 240

bumpNode.updateRenderState();

rootNode.attachChild(nodo) ;

}



but at running time :





C:JBuilderXjdk1.4binjavaw -classpath “C:Documents and SettingsAngelojbprojectTestTerrianPclasses;C:JBuilderXlwjgl-092-JMEliblwjgl.jar;C:JBuilderXlwjgl-092-JMElibjogg-0.0.5.jar;C:JBuilderXlwjgl-092-JMElibjorbis-0.0.12.jar;C:JBuilderXlwjgl-092-JMEjme.jar;C:JBuilderXlwjgl-092-JMEjmetest-data.jar;C:JBuilderXjdk1.4demojfcJava2DJava2Demo.jar;C:JBuilderXjdk1.4demopluginjfcJava2DJava2Demo.jar;C:JBuilderXjdk1.4jrejavawsjavaws.jar;C:JBuilderXjdk1.4jrelibcharsets.jar;C:JBuilderXjdk1.4jrelibextdnsns.jar;C:JBuilderXjdk1.4jrelibextldapsec.jar;C:JBuilderXjdk1.4jrelibextlocaledata.jar;C:JBuilderXjdk1.4jrelibextsunjce_provider.jar;C:JBuilderXjdk1.4jrelibimindicim.jar;C:JBuilderXjdk1.4jrelibimthaiim.jar;C:JBuilderXjdk1.4jrelibjce.jar;C:JBuilderXjdk1.4jrelibjsse.jar;C:JBuilderXjdk1.4jrelibplugin.jar;C:JBuilderXjdk1.4jrelibrt.jar;C:JBuilderXjdk1.4jrelibsunrsasign.jar;C:JBuilderXjdk1.4libdt.jar;C:JBuilderXjdk1.4libhtmlconverter.jar;C:JBuilderXjdk1.4libtools.jar” -Djava.library.path=C:JBuilderXlwjgl-092-JMElib testterrianp.TestTerrainPage

6-nov-2004 11.29.54 com.jme.app.BaseGame start



INFO: Application started.



6-nov-2004 11.29.54 com.jme.system.PropertiesIO



INFO: PropertiesIO created



6-nov-2004 11.29.54 com.jme.system.PropertiesIO load



INFO: Read properties



6-nov-2004 11.29.56 com.jme.system.lwjgl.LWJGLDisplaySystem



INFO: LWJGL Display System created.



6-nov-2004 11.29.56 com.jme.system.PropertiesIO save



INFO: Saved properties



6-nov-2004 11.29.56 com.jme.system.lwjgl.LWJGLDisplaySystem



INFO: LWJGL Display System created.



6-nov-2004 11.29.57 com.jme.renderer.lwjgl.LWJGLRenderer



INFO: LWJGLRenderer created. W: 640H: 480



6-nov-2004 11.29.57 com.jme.renderer.AbstractCamera



INFO: Camera created.



6-nov-2004 11.29.57 com.jme.util.lwjgl.LWJGLTimer



INFO: Timer resolution: 3579545 ticks per second



6-nov-2004 11.29.57 com.jme.scene.Node



INFO: Node created.



6-nov-2004 11.29.57 com.jme.scene.Node



INFO: Node created.



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (FPS label) attached to this node (FPS node)



6-nov-2004 11.29.57 com.jme.scene.Node



INFO: Node created.



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (Camera Node) attached to this node (rootNode)



6-nov-2004 11.29.57 com.jme.terrain.util.FaultFractalHeightMap load



INFO: Created Heightmap using Fault Fractal



6-nov-2004 11.29.57 com.jme.scene.Node



INFO: Node created.



6-nov-2004 11.29.57 com.jme.terrain.TerrainPage createQuadPage



INFO: Creating Page



6-nov-2004 11.29.57 com.jme.scene.Node



INFO: Node created.



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage1Block1) attached to this node (TerrainPage1)



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage1Block2) attached to this node (TerrainPage1)



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage1Block3) attached to this node (TerrainPage1)



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage1Block4) attached to this node (TerrainPage1)



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage1) attached to this node (Terrain)



6-nov-2004 11.29.57 com.jme.scene.Node



INFO: Node created.



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage2Block1) attached to this node (TerrainPage2)



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage2Block2) attached to this node (TerrainPage2)



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage2Block3) attached to this node (TerrainPage2)



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage2Block4) attached to this node (TerrainPage2)



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage2) attached to this node (Terrain)



6-nov-2004 11.29.57 com.jme.scene.Node



INFO: Node created.



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage3Block1) attached to this node (TerrainPage3)



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage3Block2) attached to this node (TerrainPage3)



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage3Block3) attached to this node (TerrainPage3)



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage3Block4) attached to this node (TerrainPage3)



6-nov-2004 11.29.57 com.jme.scene.Node attachChild



INFO: Child (TerrainPage3) attached to this node (Terrain)



6-nov-2004 11.29.57 com.jme.scene.Node



INFO: Node created.



6-nov-2004 11.29.58 com.jme.scene.Node attachChild



INFO: Child (TerrainPage4Block1) attached to this node (TerrainPage4)



6-nov-2004 11.29.58 com.jme.scene.Node attachChild



INFO: Child (TerrainPage4Block2) attached to this node (TerrainPage4)



6-nov-2004 11.29.58 com.jme.scene.Node attachChild



INFO: Child (TerrainPage4Block3) attached to this node (TerrainPage4)



6-nov-2004 11.29.58 com.jme.scene.Node attachChild



INFO: Child (TerrainPage4Block4) attached to this node (TerrainPage4)



6-nov-2004 11.29.58 com.jme.scene.Node attachChild



INFO: Child (TerrainPage4) attached to this node (Terrain)



6-nov-2004 11.29.58 com.jme.scene.Node attachChild



INFO: Child (Terrain) attached to this node (rootNode)



6-nov-2004 11.30.01 com.jme.scene.Node



INFO: Node created.



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (north) attached to this node (cielo)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (south) attached to this node (cielo)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (east) attached to this node (cielo)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (west) attached to this node (cielo)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (up) attached to this node (cielo)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (down) attached to this node (cielo)



6-nov-2004 11.30.01 com.jme.scene.Node



INFO: Node created.



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (cielo) attached to this node (cielo)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (cielo) attached to this node (rootNode)



6-nov-2004 11.30.01 com.jme.scene.Node



INFO: Node created.



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (quad) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf0) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf1) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf2) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf3) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf4) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf5) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf6) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf7) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf8) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf9) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf10) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf11) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf12) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf13) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (sf14) attached to this node (LensFlare)



6-nov-2004 11.30.01 com.jme.scene.Node attachChild



INFO: Child (LensFlare) attached to this node (rootNode)



6-nov-2004 11.30.01 com.jme.scene.Node



INFO: Node created.



java.lang.NullPointerException



at com.jme.scene.Node.attachChild(Unknown Source)



at testterrianp.TestTerrainPage.simpleInitGame(TestTerrainPage.java:240)



at com.jme.app.SimpleGame.initGame(Unknown Source)



at com.jme.app.BaseGame.start(Unknown Source)



at testterrianp.TestTerrainPage.main(TestTerrainPage.java:64)



6-nov-2004 11.30.01 com.jme.app.SimpleGame cleanup



INFO: Cleaning up resources.



6-nov-2004 11.30.01 com.jme.app.BaseGame start



INFO: Application ending.





what’s the problem ? J don’t undestand. ://

tanks to all.

bye…

BumpNode doesn’t work… period.



I’m actually going to begin work on it soon, real soon.

tanks mojomonk and good work!!!