[SOLVED] How can use jme3 in multiple scenes?

how can use jme3 in multiple scenes?
i want make a model editor, it have tabpane one model need one scene ! and we can change the tabpan for change model to editor。 so i need one SimpleApplication or multiple SimpleApplication?

how can change scene in one SimpleApplication? only change rootNode and camera?

You only need one SimpleApplication. Create an App state for each model scene. When the state is attached, attach your scene to the RootNode and change the camera parameters as desired. When the state is detached, detach your scene from the RootNode as well. After that, you can attach another state that does the same thing, but with a different scene.

In the end, you have 1 SimpleApplication and 2 App-States that attach/detach your scenes as you wish.

2 Likes

@qq1053831109 Please provide feedback. Are you satisfied with the answer you got?

yes ,the hub is good,and The people here are very nice

1 Like