Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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  
  2D Graphics Other Than Java2D  (Read 919 times)
0 Members and 1 Guest are viewing this topic.
Offline Best Username Ever

Junior Member





« Posted 2012-10-09 01:19:12 »

What libraries are currently used for OpenGL-based 2D and 2.5D graphics? Is it worthwhile to use a library on top of LWJGL or is LWJGL enough? I would prefer to minimize the amount of time used for graphics related programming, but probably would prefer something minimal beyond simple graphics.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 438
Projects: 4


Hand over your head.


« Reply #1 - Posted 2012-10-09 01:21:05 »

Wiki: Java Gaming Resources

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Offline Best Username Ever

Junior Member





« Reply #2 - Posted 2012-10-09 01:36:12 »

One of three relevant links are broken. The rest does not answer my questions.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 264
Projects: 2


I'm the King!


« Reply #3 - Posted 2012-10-09 02:06:59 »

Whoa! Pulpcore is dead! Shocked

Offline davedes
« Reply #4 - Posted 2012-10-09 03:08:55 »

LibGDX would probably be your best bet. Smiley

Offline Pickleninja

JGO Coder


Medals: 9
Projects: 1


I'm tired of working for someone else.


« Reply #5 - Posted 2012-10-09 04:29:44 »

Yeah... I was using pulpcore for me game when the plug got pulled.... was a dark day for me   Emo



-pickle

Online ReBirth
« Reply #6 - Posted 2012-10-09 04:32:56 »

And I almost had used it just before got pulled.

Slick2D.

Offline __iCode__

Senior Newbie





« Reply #7 - Posted 2012-10-09 05:43:09 »

Use Slick2D I find it the most simple to use and there are loads of tutorials on the web about it, it you need them...
Offline Best Username Ever

Junior Member





« Reply #8 - Posted 2012-10-09 18:32:57 »

Based on low information "first" impressions after having looked at the APIs of Slick2D and LibGDX, Slick2D looks closer to my request for something minimal. I see a lot of begins and ends in example source code for both. I read somewhere that slick used immediate mode (from a possibly outdated source.) LibGDX example code seemed to include direct calls to OpenGL wrappers. (Would that be anymore helpful than plain LWJGL?)
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 438
Projects: 4


Hand over your head.


« Reply #9 - Posted 2012-10-09 18:49:43 »

There are so many threads like this that it's getting really boring.

First of all, you barely described what you were going to do, so who knows what's best for your use case. Second, just browse the forum for a bit, and you'll find more advice on which API to use, than you'll even need.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Games published by our own members! Check 'em out!
Try the Free Demo of Revenge of the Titans
Offline davedes
« Reply #10 - Posted 2012-10-09 19:39:42 »

LibGDX Pros:
  • Android, WebGL, iOS backends
  • Includes a UI tool for setting up projects (extremely easy)
  • More performant (at least out of the box)
  • More flexible (i.e. for 3D or other advanced features)
  • Better GUI classes
  • Bugs are fixed quickly by one of many contributors
  • More tools (texture packer, advanced particle editor)
  • Better architecture (Slick's codebase is somewhat disastrous)
  • Better future; more stable development and more contributors with a lot of OpenGL experience
  • Active forum, plenty of released games
...

Slick Pros:
  • Familiar for Java2D users
  • Easy for newbs/prototyping; no frightening GL setup or terms like "Matrix" or "Orthographic"
  • Easier to integrate with TWL

Offline Tjstretchalot

Junior Member


Medals: 2
Projects: 1



« Reply #11 - Posted 2012-10-09 20:06:22 »

I wouldn't say Slicks codebase is "disastrous", more like it's trying to copy Java2D, although I have avoided the classes that attempt to save / load for you [Oh dear, D=]

I really like having my draw method look like
1  
animation.draw(x, y);

and it will tick it at the right speed and smoothes automatically (I believe). Also really like that it has a default font, because I'm terrible at drawing something even that simple.
Offline Best Username Ever

Junior Member





« Reply #12 - Posted 2012-10-09 20:25:18 »

@Riven: Ya. I get that, but keep in mind I am NOT asking for a one sentence answer on which library is "better". I am not asking for a tutorials; I am not asking for what library a noob should learn first; and, I am not asking for what library does graphics, animation, physics, collision detection, and path finding. Plus, information about both Java and game programming topics become dated very quickly.

I'll take my existing questions and split them into simpler ones:
  • What graphics libraries exist that are primarily used for 2D graphics? Answer: Slick2D, LibGDX, Pulpcore
  • What makes each one special? Specifically, if a library provides a framework beyond OpenGL wrappers then what practical purposes does the abstraction serve?
  • Assuming it took the same amount of time to learn LWJGL as it did a library built on top of it, how much programming time would it take to create the same graphics with/without the high level library?
  • What other costs and benefits should I keep in mind from the start?
  • Bonus: Including Java2D, LWJGL, Slick2D, and LibGDX (and again assuming I've past the learning curve of each one), what would save the most time for creating simple graphics for (top-down and side-view) prototype games?
Offline princec
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


Eh? Who? What? ... Me?


« Reply #13 - Posted 2012-10-09 21:00:29 »

  • What graphics libraries exist that are primarily used for 2D graphics? Answer: Slick2D, LibGDX, Pulpcore
  • What makes each one special? Specifically, if a library provides a framework beyond OpenGL wrappers then what practical purposes does the abstraction serve?

Slick2D looks a bit like Java2D. Don't use it, as it is barely supported, and riddled with bugs, and unsupported.
LibGDX provides a whole pile of stuff, some of which you won't need, and is designed around its need to deploy easily on multiple platforms based on OpenGL and OpenGLES without code mods.
Pulpcore is gone. Don't use it.

  • Assuming it took the same amount of time to learn LWJGL as it did a library built on top of it, how much programming time would it take to create the same graphics with/without the high level library?
There's almost nothing to learn in LWJGL; it's just OpenGL. It can take quite a while to make a kickass sprite engine in OpenGL. But you could probably do something adequate in a few days.

  • What other costs and benefits should I keep in mind from the start?
Learning APIs always comes at a cost of not knowing exactly what's going on and then spending ages trying to find out how to do something which seems obvious, or spending ages trying to discover what you are trying to has a bug in it and it's not your fault.

  • Bonus: Including Java2D, LWJGL, Slick2D, and LibGDX (and again assuming I've past the learning curve of each one), what would save the most time for creating simple graphics for (top-down and side-view) prototype games?
If you say know OpenGL then use OpenGL, code exactly what you need and no more, and be done with it.

Cas Smiley

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

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (76 views)
2013-05-17 21:29:12

alaslipknot (87 views)
2013-05-16 21:24:48

gouessej (117 views)
2013-05-16 00:53:38

gouessej (112 views)
2013-05-16 00:17:58

theagentd (123 views)
2013-05-15 15:01:13

theagentd (112 views)
2013-05-15 15:00:54

StreetDoggy (156 views)
2013-05-14 15:56:26

kutucuk (178 views)
2013-05-12 17:10:36

kutucuk (177 views)
2013-05-12 15:36:09

UnluckyDevil (185 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.117 seconds with 21 queries.