Starting with JME3 - Need a little help

I SVN checked out the source for JME3



however…



I try to go to the link for building JME3 in Eclipse and it simply takes me to the JME2 page.



The code, after importing it into Eclipse and nothing else, has plenty of errors in it. Am I doing something wrong?

What would be the next step after importing the project into Eclipse?



I appreciate any help.

Thanks.

If you're having trouble perhaps you can try using the nightly builds?

http://www.jmonkeyengine.com/nightly

If you really need to edit or compile the source by yourself you might want to try netbeans. There's a netbeans project set up in the SVN, you just open it and it works.

Well, you probably need to remove the androit stuff from the source, depack lwjgl manually and add the natives (the automated one fails for me), and in one converter stuff there i still a g3d package name, change this with the suggestin from eclipse.

I also have these problems in Eclipse.

Seems like some classes are not in the right packages (their package description on top of the file is different of their actual location).

I got to to work from the nightly builds



Too bad JME3 isnt a little farther along (networking and gamestates) or else i could really begin developing in it :slight_smile:

its good to get little tests up and running though, definitely alot more smooth than JME2

InShadow said:

I also have these problems in Eclipse.
Seems like some classes are not in the right packages (their package description on top of the file is different of their actual location).

Dont add the src/ directory to your sources but add every directory in the src folder, so src/core, src/animation etc..

Thanks normen!

it would be great to check in the .project/.classpath file, that way you can just 'check out as project from svn' and everything is set up correctly aready.

Core-Dump said:

it would be great to check in the .project/.classpath file, that way you can just 'check out as project from svn' and everything is set up correctly aready.

yeah, well this would require keeping both, ant/netbeans and the eclipse project up to date. Since none of the core devs use eclipse it would probably be broken very often..
But maybe someone wants to care for that..?
normen said:

Core-Dump said:

it would be great to check in the .project/.classpath file, that way you can just 'check out as project from svn' and everything is set up correctly aready.

yeah, well this would require keeping both, ant/netbeans and the eclipse project up to date. Since none of the core devs use eclipse it would probably be broken very often..
But maybe someone wants to care for that..?


Its pretty simple.. Switch to Eclipse ;)

Hijacking this thread…



Im trying the code  from

http://www.jmonkeyengine.com/wiki/doku.php/jme3:beginner:hello_simpleapplication



Im using Intellij IDE.



Can anyone tell me how to set the paths for JME

the example code says

Material mat = new Material(manager, "plain_texture.j3md");


I changed it to

Material mat = new Material(manager, "matdefs/plain_texture.j3md");



Is there a way to make the app not need the "matdefs" folder in front

The reason I ask is further down the code it uses the plain_texture.j3md file and inside it it has
VertexShader GLSL100: plain_texture.vert  which will give me a error because it cant find the path

WARNING DesktopAssetManager 10:36:20 PM Cannot locate resource: plain_texture.vert
WARNING DesktopAssetManager 10:36:20 PM Cannot locate resource: plain_texture.frag
java.lang.NullPointerException: Shader source cannot be null
at com.jme3.shader.Shader$ShaderSource.setSource(Shader.java:122)
at com.jme3.shader.Shader.addSource(Shader.java:256)


Thanks,
Greg

Are you using the latest revision? Because in the latest one there are no more relative paths. the phong_lighting.j3md should now be loaded as Common/MatDefs/Light/Lighting.j3md

I looked for code that uses Common/MatDefs/Light/Lighting.j3md

I was able to run the

jme3test.light.TestSimpleLighting example



I guess the HelloJME3 Example is just incorrect…Might need to have some change it since its the example of how to use JME3.



Thanks for your help.



-Greg