I can;t seem to find any sign of materials (or source code examples) with the Windows 32 bit distribution of the jMonkeyPlatform Alpha-3.
Specifically, I am trying to run the HelloAssets portion of the tutorial, but I am getting an error suggesting no assets are present (see below).
A search of the relevant directories created with the install package doesn’t turn up any assets either.
Any ideas? Is there someplace I can download the assets separately?
Thanks,
error message:
WARNING: Cannot locate resource: Models/Teapot/Teapot.obj
Mar 12, 2011 7:32:55 AM com.jme3.material.MaterialDef
INFO: Loaded material definition: Debug Normals
Mar 12, 2011 7:32:55 AM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.NullPointerException
at jme3test.helloworld.HelloAssets.simpleInitApp(HelloAssets.java:27)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:186)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:134)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:183)
at java.lang.Thread.run(Thread.java:662)
Java Result: -1073741819
No, did you update your jMP install by any chance?
My install was only a day old. I just tried updating, it downloaded a new plugin but I still got the same error when I ran the HelloAssets class.
I’m not sure how to proceed.
When I installed the JMP I left all the source directories as default, if that helps.
I didnt mean that you should update… Anyway I misunderstood you. You created a new BasicGame project and want to access the demo assets. Theres a hint at the start of HelloAssets about that, no? Add the jme3-test-data library to your project.
Thank you, that appeared to get past the asset location issue.
However, it now appears to be throwing an error further on in Material.java (below).
Is this another library I need to add to the properties?
Thanks again.
Error Message:
Mar 12, 2011 12:36:17 PM com.jme3.asset.DesktopAssetManager loadAsset
WARNING: Cannot locate resource: Common/MatDefs/Misc/Unshaded.j3md
Mar 12, 2011 12:36:17 PM com.jme3.app.Application handleError
SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.NullPointerException: Material definition cannot be null
at com.jme3.material.Material.(Material.java:146)
at com.jme3.material.Material.(Material.java:152)
at jme3test.helloworld.HelloAssets.simpleInitApp(HelloAssets.java:33)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:186)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:134)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:183)
at java.lang.Thread.run(Thread.java:662)
Java Result: -1073741819
Use the tutorials in the manual with alpha-3, the wiki is for svn.