jME 1.0 or 2.0? [Solved ;)] But now a new problem

Hey



Well basically I'm about to start a large project which will take a while to complete. I need some advice on weather to use jME 1 or 2?



I have already started a small bit with jME 1, I still havenot even looked at jME 2 though, Would it be best to switch over to jME 2, and then just change the project as jME changes and bugs are fixed? I would do that if there was a massive difference between jME 1 and 2, otherwise I would just start my project with jME 1, then when the jME2 final release comes out I will edit my code and change it to that.



Would that be to big a job to edit all my code from jME1 to jME 2 once there is a final release, or should I simply start with jME 2 and hope I don't encounter any bugs.



thanks :slight_smile:



Also is there any vague release date for jME 2?





____________________________________________________________________________________











Thought i wouldn't spam the forum with threads so I'm putting this on here as well. I have now installed jme 2.0, and got the java build path working, or well, it should be working. I am now getting weird problems, mainly I cannot get any of the tests to run in full screen, and even worse, I cannot get any of the tests to run without full screen because of a null pointer exception when the camera's setFrustumPerspective method is called.


        cam.setFrustumPerspective( 45.0f, (float) display.getWidth()
                / (float) display.getHeight(), 1, 1000 );





SEVERE: Exception in game loop
java.lang.NullPointerException
at com.jme.app.BaseSimpleGame.cameraPerspective(BaseSimpleGame.java:457)
at com.jme.app.BaseSimpleGame.initSystem(BaseSimpleGame.java:393)
at com.jme.app.BaseGame.start(BaseGame.java:67)
at jmetest.scene.TestPassNode.main(TestPassNode.java:62)


Your motniter claims not to support the display mode you've selected.

The conbination of bit depth and refresh rate is not supported.



This is the error I get when trying full screen, I never got this error with jme 1. I tried all the different frequencies and bit depths together, which took like 10 minutes, but none worked.



I would use 2 personally.  imo, it is easier to use and will have less bugs and more features.



As for a dateā€¦ no. :slight_smile:

renanse said:

I would use 2 personally.  imo, it is easier to use and will have less bugs and more features.

As for a date... no. :)


Probably the best person to take advice from ;)

Is jME 2 completely different? Will I have to almost re-teach myself jME? Or is it basically the same, just a few changes? Are things done in a different way? And are there any up to date tutorials?

All the jmetest classes of course.  :) 



The main differences are the removal of batches, the addition of enums, the texcoords class, JOGL implementation, SWT canvas implementation, and several other odds and ends.

Ok, just checked out jME 2 with eclipse, but how are you suppoased to use the jars? I have jme 2 as a project in my workspace, but what do i do now? I've created a library with the lwjgl jars, but the tests still don't run or compile.



Basically I can't work out how to fix the java build path.

Just add all the jars from the different subfolders of jme2/lib to your buildpath. Then go over them again and add the native libraries to all the jars that have native libs available - the native libraries are in the sub-subfolders of this lib folder.



So:

JOGL jar is in jME v2libjogl

JOGL native in jME v2libjoglnativewindows_i586

(gluegen natives also)



Just check in the lib folder and you will understand it immediately - its pretty self explanatory there. Just read the filenames. And once you have all the jars hooked to the natives, you are set.

Hi, I'm just trying to integrate jME 2.0 in my Eclipse on my iMac.



I checked out the sources from svn and tried to use the Tutorial from jME 1.0.


Mindgamer said:

Just add all the jars from the different subfolders of jme2/lib to your buildpath. Then go over them again and add the native libraries to all the jars that have native libs available - the native libraries are in the sub-subfolders of this lib folder.


I added all the .jars from the different subfolders to my buildpath. But I have the problem, that not for every jar is a native library for mac os x present.

I get this error when trying to start TestTeapot

java.lang.LinkageError: Unknown platform: Darwin
   at org.lwjgl.LWJGLUtil.getPlatform(LWJGLUtil.java:291)
   at org.lwjgl.Sys.createImplementation(Sys.java:109)
   at org.lwjgl.Sys.<clinit>(Sys.java:97)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:128)
   at com.jme.system.lwjgl.LWJGLPropertiesDialog$ModesRetriever.run(LWJGLPropertiesDialog.java:682)
   at com.jme.app.AbstractGame.getAttributes(AbstractGame.java:231)
   at com.jme.app.BaseGame.start(BaseGame.java:64)
   at jmetest.renderer.TestTeapot.main(TestTeapot.java:62)




Another strange thing is, that my XServer get start when running this

maybe this helps:

http://lwjgl.org/forum/index.php?topic=2562.0

did you try to use java 1.5 ?

Thank you, with Java 1.5 the error doesn't appear.



But now I get this:

03.08.2008 11:15:31 com.jme.app.BaseGame start
INFO: Application started.
03.08.2008 11:15:31 com.jme.system.PropertiesGameSettings <init>
INFO: PropertiesGameSettings created
03.08.2008 11:15:31 com.jme.system.PropertiesGameSettings load
WARNUNG: Could not load properties. Creating a new one.
2008-08-03 11:15:31.173 java[626:80f] [Java CocoaComponent compatibility mode]: Enabled
2008-08-03 11:15:31.174 java[626:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
2008-08-03 11:15:31.849 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19ae90> '(null)') unlocked when not locked
2008-08-03 11:15:31.849 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:31.951 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19b630> '(null)') unlocked when not locked
2008-08-03 11:15:31.952 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.053 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19bcb0> '(null)') unlocked when not locked
2008-08-03 11:15:32.054 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.158 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19ba00> '(null)') unlocked when not locked
2008-08-03 11:15:32.158 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.260 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19c020> '(null)') unlocked when not locked
2008-08-03 11:15:32.263 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.370 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19c2a0> '(null)') unlocked when not locked
2008-08-03 11:15:32.371 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.473 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19c400> '(null)') unlocked when not locked
2008-08-03 11:15:32.474 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.576 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19c5b0> '(null)') unlocked when not locked
2008-08-03 11:15:32.579 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.682 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19c680> '(null)') unlocked when not locked
2008-08-03 11:15:32.685 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.789 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19c8e0> '(null)') unlocked when not locked
2008-08-03 11:15:32.789 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.891 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19cb50> '(null)') unlocked when not locked
2008-08-03 11:15:32.894 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.995 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19cd50> '(null)') unlocked when not locked
2008-08-03 11:15:32.996 java[626:14b03] *** Break on _NSLockError() to debug.



And see nothing. I think I forget something to configure

Good evening,



I am new and i am trying to use jMonkeyEngine on Mac Os x 10.5.4 with JVM 1.5, 1.6. After many troubles and researches i have found this post described the problem i meet :


sainth said:

Thank you, with Java 1.5 the error doesn't appear.

But now I get this:

03.08.2008 11:15:31 com.jme.app.BaseGame start
INFO: Application started.
03.08.2008 11:15:31 com.jme.system.PropertiesGameSettings <init>
INFO: PropertiesGameSettings created
03.08.2008 11:15:31 com.jme.system.PropertiesGameSettings load
WARNUNG: Could not load properties. Creating a new one.
2008-08-03 11:15:31.173 java[626:80f] [Java CocoaComponent compatibility mode]: Enabled
2008-08-03 11:15:31.174 java[626:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
2008-08-03 11:15:31.849 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19ae90> '(null)') unlocked when not locked
2008-08-03 11:15:31.849 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:31.951 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19b630> '(null)') unlocked when not locked
2008-08-03 11:15:31.952 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.053 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19bcb0> '(null)') unlocked when not locked
2008-08-03 11:15:32.054 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.158 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19ba00> '(null)') unlocked when not locked
2008-08-03 11:15:32.158 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.260 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19c020> '(null)') unlocked when not locked
2008-08-03 11:15:32.263 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.370 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19c2a0> '(null)') unlocked when not locked
2008-08-03 11:15:32.371 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.473 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19c400> '(null)') unlocked when not locked
2008-08-03 11:15:32.474 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.576 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19c5b0> '(null)') unlocked when not locked
2008-08-03 11:15:32.579 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.682 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19c680> '(null)') unlocked when not locked
2008-08-03 11:15:32.685 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.789 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19c8e0> '(null)') unlocked when not locked
2008-08-03 11:15:32.789 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.891 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19cb50> '(null)') unlocked when not locked
2008-08-03 11:15:32.894 java[626:14b03] *** Break on _NSLockError() to debug.
2008-08-03 11:15:32.995 java[626:14b03] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x19cd50> '(null)') unlocked when not locked
2008-08-03 11:15:32.996 java[626:14b03] *** Break on _NSLockError() to debug.



And see nothing. I think I forget something to configure


Someone can help ?

I try JME 1.0 with lwjgl 1.4, then JME 2.0 (nightly build) with lwjgl 2.0 RC1. Regrettably, i always have problems. It's impossible to use JME on Mac Os X ?

Thanks,

Laurent

see this thread:

http://www.jmonkeyengine.com/jmeforum/index.php?topic=8556.0



make sure to only have swt_fake.jar in the classpath but not swt.jar.

Oh okay, it's all good. Thanks a lot  :smiley: