Graphical menu for Game

Hi,



I am trying to implement custom graphical menu for a game using JME. Menu boxes and items are 3D objects.



The problem with menu boxes are that as they are 3D objects, they might be blended with game graphics. Can I somehow create an overlay for menu so that menu objects are always on top of game graphics?



Thanks.

I think that would be somehow related to three things



LightCombineMode

ZBufferState



and



RenderQueauMode

It sounds like you may want a GUI library (FengGUI, GBUI, etc).  Is there any reason you don't want one of these?

mhelz0001 said:

LightCombineMode

maybe

mhelz0001 said:

ZBufferState

yes

and ...

mhelz0001 said:

RenderQueauMode

no ;)

If you want to render 3d objects you wont need the ORTHO queue. To prevent these 3d objects from blending in the scene objects, you have to render them in a seperate pass, maybe with a ZBufferState and testfunctio to always pass or something like that. So, take a look at the BasicPassManager and RenderPass classes.

Hi,



Thanks for all comments. I'll look into the suggestions.



It is not out of question to use a GUI library, but I would like to use a mature and well-maintained library, which could perhaps render custom 3D objects as a GUI.