LeprovostQuentin / mt4j

Automatically exported from code.google.com/p/mt4j
GNU General Public License v2.0
0 stars 0 forks source link

Water Web Start demo not working #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The Web Start process it self worked ok and the settings dialog did pop-up. But 
the water it self seems to have issues.

* When I run it in hardware OpenGL mode I get:

A black window with just a little block of water in the left-bottom corner. 
Click events are only registered in this block. Besides this the water tap 
effect doesn't happen under the cursor but always in the most left-bottom 
corner pixel. So here i think we have a coordinates related issue.

I've attached a screenshot.

* When I run it in software P3D mode I get:

A gray window and an exception:

INFO - Platform: "Linux" -> JVM Bit: "64"
java.lang.NullPointerException
    at javax.swing.ImageIcon.<init>(ImageIcon.java:167)
    at org.mt4j.MTApplication.setup(MTApplication.java:460)
    at processing.core.PApplet.handleDraw(Unknown Source)
    at processing.core.PApplet.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:619)
INFO - MT4j window dimensions: "1024 X 768"
INFO - Maximum framerate: "60"
ERROR - Error while loading Settings.txt file. Using defaults.
INFO - Initializing TUIO input on port: 3333
Water Scene requires OpenGL renderer
Exception in thread "Animation Thread" java.lang.NullPointerException
    at scenes.WaterSceneExportObf.drawAndUpdate(WaterSceneExportObf.java:423)
    at org.mt4j.MTApplication.runApplication(MTApplication.java:622)
    at org.mt4j.MTApplication.draw(MTApplication.java:554)
    at processing.core.PApplet.handleDraw(Unknown Source)
    at processing.core.PApplet.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:619)

Original issue reported on code.google.com by wal...@gmail.com on 29 Jul 2010 at 3:03

Attachments:

GoogleCodeExporter commented 8 years ago
Ive tried on my Ubuntu machine and could actually reproduce the error. But only 
sometimes, irregularly in fullscreen mode.
The water is created using the frame's window dimensions. Maybe in some cases 
these dimensions are not yet available when the application starts. I rewrote 
the water scene so that it doesent rely on the window dimensions but rather the 
dimensions from the settings.
I'll soon upload the modified version to confirm if this was the issue.

Original comment by sirhc.f...@gmail.com on 29 Jul 2010 at 5:24

GoogleCodeExporter commented 8 years ago
Ok. Give me a note I'd be glad to test it

Original comment by wal...@gmail.com on 29 Jul 2010 at 7:43

GoogleCodeExporter commented 8 years ago
should be fixed, but no time to re-compile and upload the webstart stuff right 
now.. :/

Original comment by sirhc.f...@gmail.com on 2 Mar 2011 at 10:35