Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (483)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (550)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JME versus JOGL  (Read 9980 times)
0 Members and 1 Guest are viewing this topic.
Offline TheAnalogKid

JGO Coder


Projects: 2



« Posted 2006-09-21 20:40:27 »

Hi,

I'm experiencing OGL via JOGL to eventually make a 2D based game with OGL. While I'm still exploring the various Java graphics API I was wondering what about JME? Do you think it would be more productive to use it for a 2D based game or is it just as painful as any OGL API? Is JME simple and high level enough for 2D?  Note that I'd like to use it while beign able to use advanced OGL features such as lighting and blending for example.

Thanks

Offline kevglass

JGO Kernel


Medals: 153
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2006-09-21 20:48:54 »

JME isn't an OpenGL binding, it's a scenegraph like Java3D (or Xith, or the Agency 9 stuff). Not really comparable to something like JOGL. It's not really suited to 2D games development, the emphasis is very much on 3D - check out hte JME demos for more examples.

Kev

Offline TheAnalogKid

JGO Coder


Projects: 2



« Reply #2 - Posted 2006-09-21 21:27:31 »

OK thanks for the info. I didn't express myself correctly. I know that JME abstracts the underlying rendering API. What I was wondering is: is it possible or simply a good idea to use JME to do 2D gaming? A lot of 3D APIs are able to do 2D as well.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #3 - Posted 2006-09-21 22:39:16 »

I find it pretty easy to set up for 2D stuff.  It supports orthographic projection mode.

Offline dsellars

Junior Member




Need to write more games


« Reply #4 - Posted 2006-09-22 08:59:51 »

If your wanting to do a 2d game in opengl then lwjgl might be the best place to look.  I think you might find yourself fighting against the design of jME if you try and use that for a 2d game.

Dan. 
Offline irrisor

Junior Member





« Reply #5 - Posted 2006-09-22 11:23:44 »

There already are some people, as CaptainJester seemingly, who use it for 2D. It does not seem they struggle much with the design. Maybe you should post over at jmonkeyengine.com and ask if they like it for 2D, too. It might be easier than using lwjgl or jogl directly.
Offline TheAnalogKid

JGO Coder


Projects: 2



« Reply #6 - Posted 2006-09-22 14:51:28 »

My point is that doing 2D in OGL requires many operations that could be done by default by a higher level API above OGL. For example when you load translucent textures you have to enable blending and this in 2 calls. You have to call methods such as viewport, matrix mode, ortho, etc. All these sort of setups that could be done by default in a 2D based API above OGL. It's not that complicated once you've learned OGL but the learning curve is rather high when you only want to do 2D.

I've looked at GTGE but it doesn't seem to be maintained actively and version 1.0 hasn't been reached yet so there is a high risk of API changes and I don't like to develop with an API that is at a version far far from a final release.

Offline TheAnalogKid

JGO Coder


Projects: 2



« Reply #7 - Posted 2006-09-22 16:30:20 »

Here is what I found in JME forums about 2D games with JME:

http://www.jmonkeyengine.com/jmeforum/index.php?topic=2416.0

Offline dtaylorjr

Innocent Bystander





« Reply #8 - Posted 2006-09-30 04:20:50 »

To me, it is very easy to use JME's Quads as 2d sprites.  And you even get the extra benefit of having a scene graph (which is suprisingly very helpful - even for 2d)   The only difficult thing you might have trouble with is getting precise pixel level type collision detection (if using Quads).   If you choose to use Quads, I would not try collision detection at the pixel level (there are several other approaches that should give close enough results and be faster). 
Online princec

JGO Kernel


Medals: 362
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #9 - Posted 2006-10-31 11:21:18 »

I'd recommend something far more lightweight, just a sprite engine really, rather than a whole big scenegraph thing. It's quite fun learning to write a sprite engine but if you want some pointers take a look at my Shaven Puppy Game Library code which has quite a nice one in it you can learn a few tricks and tips from.

Cas Smiley

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (14 views)
2014-08-22 19:31:30

atombrot (28 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!