Hello Collision tutorial don't work

Hi to all!



As in title: I’m try to run this tutorial, but this make Exception. This is log:



[java]

2011-04-14 15:26:40 com.jme3.system.JmeSystem initialize

INFO: Running on jMonkey Engine 3 Alpha 0.6

2011-04-14 15:26:40 com.jme3.system.Natives extractNativeLibs

INFO: Extraction Directory #1: file:/home/[CENSORED]/jmonkeyplatform/jmonkeyplatform/libs/

2011-04-14 15:26:40 com.jme3.system.Natives extractNativeLibs

INFO: Extraction Directory #2: /home/[CENSORED]/jMonkeyProjects/TestKolizji

2011-04-14 15:26:40 com.jme3.system.Natives extractNativeLibs

INFO: Extraction Directory #3: /home/[CENSORED]/jMonkeyProjects/TestKolizji

2011-04-14 15:26:40 com.jme3.system.lwjgl.LwjglAbstractDisplay run

INFO: Using LWJGL 2.7.1

2011-04-14 15:26:40 com.jme3.system.lwjgl.LwjglDisplay createContext

INFO: Selected display mode: 1024 x 768 x 0 @0Hz

2011-04-14 15:26:41 com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: Adapter: null

2011-04-14 15:26:41 com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: Driver Version: null

2011-04-14 15:26:41 com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: Vendor: NVIDIA Corporation

2011-04-14 15:26:41 com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: OpenGL Version: 2.1.2 NVIDIA 260.19.06

2011-04-14 15:26:41 com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: Renderer: GeForce 7300 SE/7200 GS/PCI/SSE2

2011-04-14 15:26:41 com.jme3.system.lwjgl.LwjglContext printContextInitInfo

INFO: GLSL Ver: 1.20 NVIDIA via Cg compiler

2011-04-14 15:26:41 com.jme3.system.lwjgl.LwjglTimer <init>

INFO: Timer resolution: 1000 ticks per second

2011-04-14 15:26:41 com.jme3.renderer.lwjgl.LwjglRenderer initialize

INFO: Caps: [FrameBuffer, FrameBufferMRT, FrameBufferMultisample, OpenGL20, OpenGL21, ARBprogram, GLSL100, GLSL110, GLSL120, VertexTextureFetch, FloatTexture, FloatColorBuffer, VertexBufferArray]

2011-04-14 15:26:41 com.jme3.asset.DesktopAssetManager <init>

INFO: DesktopAssetManager created.

2011-04-14 15:26:41 com.jme3.renderer.Camera <init>

INFO: Camera created (W: 1 024, H: 768)

2011-04-14 15:26:41 com.jme3.renderer.Camera <init>

INFO: Camera created (W: 1 024, H: 768)

2011-04-14 15:26:41 com.jme3.input.lwjgl.LwjglMouseInput initialize

INFO: Mouse created.

2011-04-14 15:26:41 com.jme3.input.lwjgl.LwjglKeyInput initialize

INFO: Keyboard created.

2011-04-14 15:26:41 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread

INFO: AudioRenderer supports 64 channels

2011-04-14 15:26:41 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread

INFO: Audio effect extension version: 1.0

2011-04-14 15:26:41 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread

INFO: Audio max auxilary sends: 1

2011-04-14 15:26:41 com.jme3.material.MaterialDef <init>

INFO: Loaded material definition: Unshaded

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Gui Node)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (BitmapFont) attached to this node (null)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (null) attached to this node (Statistics View)

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (Statistics View) attached to this node (Gui Node)

2011-04-14 15:26:42 com.jme3.material.MaterialDef <init>

INFO: Loaded material definition: Phong Lighting

2011-04-14 15:26:42 com.jme3.scene.Node attachChild

INFO: Child (level) attached to this node (main-scene_node)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-1) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-2) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-3) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-4) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-5) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-6) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-7) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-8) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-9) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-10) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-11) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-12) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-geom-13) attached to this node (level-ogremesh)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-ogremesh) attached to this node (level-entity)

2011-04-14 15:26:44 com.jme3.scene.Node attachChild

INFO: Child (level-entity) attached to this node (level)

2011-04-14 15:26:44 com.jme3.app.Application handleError

SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

com.jme3.asset.AssetNotFoundException: Scene.material

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:236)

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:281)

at com.jme3.scene.plugins.ogre.SceneLoader.startElement(SceneLoader.java:209)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:504)

at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:353)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2732)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:741)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)

at com.jme3.scene.plugins.ogre.SceneLoader.load(SceneLoader.java:340)

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:240)

at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:373)

at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:383)

at mygame.Main.simpleInitApp(Main.java:54)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:219)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:117)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:188)

at java.lang.Thread.run(Thread.java:636)

Inconsistency detected by ld.so: dl-close.c: 736: _dl_close: Assertion `map->l_init_called’ failed![/java]



Yes, town.zip is coppied.

This is just a guess, but you might have to add the jme.test.materials or whatever library it says to use.

ehnohpe: how to finds jme.test.materials?



And this don’t says need of any library.

Hmm. I tried it on my own without the jme3-test-data library and it worked. I dont know. Sorry man. :confused:

it works with the town.zip that I’m using, that is MD5:

c104e94889432f3545ed0100e8c15cb0 *town.zip

1,409,803 bytes

and it still works even after deleting the entire subfolder “town” inside town.zip where I notice the Scene.material file exists (which is specified in your exception) which is also referred to in main.scene in town.zip as:

pre type="xml"
 <item type=“material”>


      <file name=“Scene.material”/>


    </item>
/pre



also, I’m using jme3 from svn, revision 7242 (didn’t test with jme3 alpha 4 which is older)

ah this is what I see different (and it works, 'cause it’s just a WARNING):

pre type="java"
WARNING SceneLoader 2:53:33 AM Cannot locate material file: Scene.material


Apr 15, 2011 2:53:33 AM com.jme3.scene.plugins.ogre.SceneLoader startElement


WARNING: Cannot locate material file: Scene.material


INFO Node 2:53:33 AM Child (main-scene_node) attached to this node (Root Node)


Apr 15, 2011 2:53:33 AM com.jme3.scene.Node attachChild


INFO: Child (main-scene_node) attached to this node (Root Node)


INFO LwjglRenderer 2:53:33 AM Uniform g_CameraPosition is not declared in shader.


Apr 15, 2011 2:53:33 AM com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation


INFO: Uniform g_CameraPosition is not declared in shader.


INFO LwjglRenderer 2:53:33 AM Uniform g_WorldMatrix is not declared in shader.


Apr 15, 2011 2:53:33 AM com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation


INFO: Uniform g_WorldMatrix is not declared in shader.


INFO LwjglRenderer 2:53:33 AM Uniform m_UseMaterialColors is not declared in shader.


Apr 15, 2011 2:53:33 AM com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation


INFO: Uniform m_UseMaterialColors is not declared in shader.


INFO LwjglRenderer 2:53:33 AM Uniform m_VertexColor is not declared in shader.


Apr 15, 2011 2:53:33 AM com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation


INFO: Uniform m_VertexColor is not declared in shader.
/pre

apparently to get rid of the warning I had to edit town.zip/main.scene file and change from:

pre type="xml"
 <item type=“material”>


      <file name=“Scene.material”/>


    </item>
/pre

to this:

pre type="xml"
<item type=“material”>


      <file name=“town/Scene.material”/>


    </item>
/pre



so you can either do that or update your jme3 to the latest svn revision



EDIT: the html code in this post didn’t show, I should’ve pasted it with insert snippet