I’m making a game (ofc) and have trouble creating trees. I’ve used unity earlier when you can just drag-and-drop trees. Is there any way to do the same in Jmonkey?
If not, which is the best way?
I imported the jme test data package and saw that there was a tree in there, but how do i actually use it and place in into the terrain?
I personally do not know the java test data package too well. But I guess the trees are stored somewhere as .j3o files. That’s what you need to find.
Two ways:
Either you add it via programming “assetManager.loadModel(”…");" and place it via “setLocalTranslation(…)”.
Or (that’s more what you want I guess): You can add the model in the scene via the SceneComposer.
However this is pretty basic jME stuff and can be easily found in the tutorials: SDK Tutorials
Take a look at the videos, Importing Models, Dragging and Dropping Nodes and Scene Composing especially.
(Tough everything else is gonna be useful sooner or later anyway.)
@mrbanana said:
How does everybody place trees into the scene in jmonkeyy?
My personal solution:
The standard SDK editor does not fulfill my requirements of placing many objects very fast, applying certain UserData and so on, so I have a own little jME world editor, which does exactly what I wants.
I think I saw a forum post about a more extensive scene editor somewhere, but it’s in an early stage and user contributed, so no ‘official jME development’ at the moment.
@m41q said:
1. I personally do not know the java test data package too well. But I guess the trees are stored somewhere as .j3o files. That's what you need to find.
Two ways:
Either you add it via programming “assetManager.loadModel(”…");" and place it via “setLocalTranslation(…)”.
Or (that’s more what you want I guess): You can add the model in the scene via the SceneComposer.
However this is pretty basic jME stuff and can be easily found in the tutorials: SDK Tutorials
Take a look at the videos, Importing Models, Dragging and Dropping Nodes and Scene Composing especially.
(Tough everything else is gonna be useful sooner or later anyway.)
OK thank you very much for helping a Dummie I will look into it right away!
I’m making a noob version of “battlefield vietnam” in java and you will be the first one to get a copy of the game!