Game

can i make the game screen without using the ‘extends SimpleApplication’?

Yes



.

.

.

.

.

.

.

.

.

.

.



.

.

(for more detaild answer more detaild question)

ok, i created i menu and i want to make the game’s screen, is it suppose to update it self, and am i suppose to use OGL for the screen or is there a different way to use it?

Well you need opengl for jme.

You can however render the output of jme3 to a differente output system, for example a buffered image to use with swing.



Basically you have a gameloop in every game, that runs and updates the scengraph and does the rendering. Of course you could create that display also yourself, however I still don’t really see why you don’t want to use SimpleApplication. (Don’t mistake simple for primitive, simpleapplication does quite some stuff to safe you work already)



For gui’s you would usually do them in the scenegraph, to avoid the need to copy framedata to an external gui system(like the swing approach mentioned above) As long as you don’t have any special use case, it is far better suited that way.

Currently you can either use NiftyGUI

or alternativly you can create the gui with textured quads in orthogonal mode.

(Don’t mistake simple for primitive, simpleapplication does quite some stuff to safe you work already)


Yeah, @pspeed always says that :).
1 Like
@EmpirePhoenix said:
Well you need opengl for jme.
You can however render the output of jme3 to a differente output system, for example a buffered image to use with swing.

Basically you have a gameloop in every game, that runs and updates the scengraph and does the rendering. Of course you could create that display also yourself, however I still don't really see why you don't want to use SimpleApplication. (Don't mistake simple for primitive, simpleapplication does quite some stuff to safe you work already)

For gui's you would usually do them in the scenegraph, to avoid the need to copy framedata to an external gui system(like the swing approach mentioned above) As long as you don't have any special use case, it is far better suited that way.
Currently you can either use NiftyGUI
or alternativly you can create the gui with textured quads in orthogonal mode.

i don't use SimpleApplication, because i didn't understand how to use it ><"" i though that it was just to learn how to use the libraries...
so your saying that i can use NiftyGUI to make a GUI for the game without using an external gui system(swing / GUIBUILDER)?

and for NiftyGUI i need to know XML no? :S

Yes you can use niftygui, and yes it is xml based. (or you use textured quads and the bitmap text class and create your own simple gui out of them, your choice)



I suggest to download the examples and take a good look at them, as they show prettymuch how most of the engine works.

ok thanks

Keep in mind that using Nifty GUI without extending SimpleApplication is not an easy task. Because to use nifty, you have to have an input system, an audio system, a render system, and an asset manager. And the SimpleApplication provides you all this. And for the xml knowledge, it’s optional, but it’s very recommended, because such way the maintenance won’t be a pain. Btw all those questions can be answered by reading the FAQ.

@alongoltzman: Please do the tutorials from start to end, almost all of your questions until now have been answered in them…

i am using a guiNode(yes this one from SimpleApp)… i have my classes / barely everything what nifty can do. Also i use normal maps on gui with light(i dont know if nifty can do it)



so i dont know if nifty is best way to create gui :slight_smile:

@normen said:
@alongoltzman: Please do the tutorials from start to end, almost all of your questions until now have been answered in them..

yeah im doing it now
Also i use normal maps on gui with light(i dont know if nifty can do it)


Yes, you can ;). It's something called "Mesh To GUI". And nifty is the recommended gui system for jme.

nvm found why

yeah i forgot about that XD

What’s your point normen? :stuck_out_tongue:

xD just wanted to test the pretty new arrows in my screenshot utility :wink:

Can’t say they’re not pretty. The green box below them kinda pisses me off though :stuck_out_tongue: