Problem with water

when i try to execute the TestSimpleQuadWater tutorial i have this result :



14 sept. 2006 16:08:25 com.jme.app.BaseGame start

INFO: Application started.

14 sept. 2006 16:08:25 com.jme.system.PropertiesIO <init>

INFO: PropertiesIO created

14 sept. 2006 16:08:25 com.jme.system.PropertiesIO load

INFO: Read properties

14 sept. 2006 16:08:26 com.jme.input.joystick.DummyJoystickInput <init>

INFO: Joystick support is disabled

14 sept. 2006 16:08:26 com.jme.system.lwjgl.LWJGLDisplaySystem <init>

INFO: LWJGL Display System created.

14 sept. 2006 16:08:26 com.jme.system.PropertiesIO save

INFO: Saved properties

14 sept. 2006 16:08:26 com.jme.app.BaseSimpleGame initSystem

INFO: jME version 0.11 beta

14 sept. 2006 16:08:26 com.jme.app.BaseSimpleGame initSystem

INFO: Running on: ialmrnt5

Driver version: 6.14.10.4299

14 sept. 2006 16:08:27 com.jme.renderer.lwjgl.LWJGLRenderer <init>

INFO: LWJGLRenderer created. W:  640H: 480

14 sept. 2006 16:08:27 com.jme.renderer.AbstractCamera <init>

INFO: Camera created.

14 sept. 2006 16:08:27 com.jme.util.lwjgl.LWJGLTimer <init>

INFO: Timer resolution: 1000 ticks per second

14 sept. 2006 16:08:27 com.jme.scene.Node <init>

INFO: Node created.

14 sept. 2006 16:08:27 com.jme.scene.Node <init>

INFO: Node created.

14 sept. 2006 16:08:27 com.jme.scene.Node attachChild

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

14 sept. 2006 16:08:27 com.jme.scene.Node attachChild

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

14 sept. 2006 16:08:27 com.jme.scene.Node attachChild

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

14 sept. 2006 16:08:27 com.jme.scene.Node <init>

INFO: Node created.

14 sept. 2006 16:08:27 com.jme.scene.Node <init>

INFO: Node created.

14 sept. 2006 16:08:27 com.jme.scene.Node attachChild

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

14 sept. 2006 16:08:27 com.jme.scene.Node attachChild

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

14 sept. 2006 16:08:27 com.jme.scene.Node attachChild

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

14 sept. 2006 16:08:27 com.jme.scene.Node attachChild

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

14 sept. 2006 16:08:27 com.jme.scene.Node attachChild

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

14 sept. 2006 16:08:27 com.jme.scene.Node attachChild

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

14 sept. 2006 16:08:28 com.jme.scene.Node attachChild

INFO: Child (skybox) attached to this node (reflectNode)

14 sept. 2006 16:08:28 com.jme.scene.Node <init>

INFO: Node created.

14 sept. 2006 16:08:28 com.jme.scene.Node attachChild

INFO: Child (Torus) attached to this node (objects)

14 sept. 2006 16:08:28 com.jme.scene.Node attachChild

INFO: Child (box1) attached to this node (objects)

14 sept. 2006 16:08:28 com.jme.scene.Node attachChild

INFO: Child (box2) attached to this node (objects)

14 sept. 2006 16:08:28 com.jme.scene.Node attachChild

INFO: Child (box3) attached to this node (objects)

14 sept. 2006 16:08:28 com.jme.scene.Node attachChild

INFO: Child (box4) attached to this node (objects)

******** REUSING TEXTURE ******** Texture with id: 0

14 sept. 2006 16:08:28 com.jme.scene.Node attachChild

INFO: Child (box5) attached to this node (objects)

14 sept. 2006 16:08:28 com.jme.scene.Node attachChild

INFO: Child (objects) attached to this node (reflectNode)

14 sept. 2006 16:08:28 com.jme.scene.Node attachChild

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

14 sept. 2006 16:08:28 com.jmex.effects.water.WaterRenderPass <init>

INFO: Not enough textureunits, falling back to non refraction water

Could not load image…  URL was null.

java.lang.NullPointerException

at com.jmex.effects.water.WaterRenderPass.<init>(Unknown Source)

at jmetest.effects.water.TestSimpleQuadWater.simpleInitGame(Unknown Source)

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

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

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

at jmetest.effects.water.TestSimpleQuadWater.main(Unknown Source)

14 sept. 2006 16:08:28 com.jme.app.BaseSimpleGame cleanup

INFO: Cleaning up resources.

Exception in thread "main" java.lang.NullPointerException

at jmetest.effects.water.TestSimpleQuadWater.cleanup(Unknown Source)

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

at jmetest.effects.water.TestSimpleQuadWater.main(Unknown Source)







HELP me please :slight_smile:


What videocard/OS are you using?

I have a dell computer with a integrated video card. But i have lunch 2 or 3 times the tutorial before. I don't anderstand.

I have restart my computer just in case of the memory was then problem but no success.

Probably you have Intel integrated graphics then, try updating the drivers…



However, the water effect is pretty advanced, it's more likely to run well on nVidia and Ati graphics cards.

it should be able to fall back to sucky water though…you get a "Could not load image…  URL was null." which is strange…can you run any other samples that loads textures from the data folders?

?

"

I have the same problem  :?

It seems that when I build the jars using ant the data folder in effects is omitted, and thus no textures or shaders are found.

How to fix this?

Ok, it was easy. Just add the following to the ant build.xml:



Find the following entry:


<target name="dist-effects" depends="compile" description="generate jme jar file (effects)">
      <jar jarfile="${jars}/jme-effects.jar" basedir="${class}" update="no" compress="false" includes="**/com/jmex/effects/**/*.class" />
   </target>




And exchange for:

<target name="dist-effects" depends="compile" description="generate jme jar file (effects)">
      <jar jarfile="${jars}/jme-effects.jar" basedir="${class}" update="no" compress="false" includes="**/com/jmex/effects/**/*.class, **/com/jmex/effects/**/data/*.*" />
   </target>

Checked in, thanks…