Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 2 [3]
  ignore  |  Print  
  Slick-AE Development  (Read 19746 times)
0 Members and 1 Guest are viewing this topic.
Offline EgonOlsen
« Reply #60 - Posted 2010-12-07 08:17:33 »

They never will. Display lists are not supported by OpenGL ES. VBOs are the way to go instead.

Offline kevglass

JGO Kernel


Medals: 159
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #61 - Posted 2010-12-07 08:19:49 »

Yeah, but I might well emulate display lists with recorded in memory operation lists - or VBO backing or something.

Kev

Offline strategy
« Reply #62 - Posted 2010-12-07 10:08:22 »

The Fail: messages are just reminders to me. For instance, some things in slick are optimized using display lists - which don't work on this renderer (yet?).

Yeah, noted that the logging was rather insistent.  Wink

Have to check how much work it is to create an app with a nice scrolling map in the background that can be zoomed. Any idea when this will be far enough advanced that one could prototype something like that? Everything I do ends up being a strategy game requiring the scrolling of some huge background map. Or would that sort of thing still be best to do straight in libgdx? I think I really need to do a game-independent implementation of this sometime and OS it - I never find any good examples/tutorials of this kind of thing.

No pressure, of course - but you know, if I don't ask, I certainly won't have an answer...

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

JGO Kernel


Medals: 159
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #63 - Posted 2010-12-07 10:11:43 »

LibGDX is a great library already. Seems like it'd be a good fit for what you want. If you do want to use Slick for the purpose as far as I can see most everything will work - just not been tested on android yet Smiley

Kev

Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #64 - Posted 2010-12-07 18:22:31 »

Yeah, but I might well emulate display lists with recorded in memory operation lists - or VBO backing or something.
The libgdx SpriteCache class sort of does this. It uses a VBO and does the bookkeeping for binding various textures. It is good for any static geometry and is currently being used for tile maps (example here). Looks like this...

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
cache = new SpriteCache();
...
cache.beginCache();
cache.add(texture1, x, y, u, v, ...);
cache.add(textureRegion1, x, y);
cache.add(sprite);
// etc
int handle = cache.endCache();
...
cache.draw(handle);


You can call begin/endCache multiple times to define multiple "handles" in the same VBO. Handles can be redefined individually, or the entire cache can be cleared and redefined.

Offline kevglass

JGO Kernel


Medals: 159
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #65 - Posted 2010-12-07 19:33:35 »

Did Egon's fix get into libgdx?

Kev

Offline badlogicgames
« Reply #66 - Posted 2010-12-07 19:59:52 »

Not yet. Will include it this weekend. Life is busy Smiley

http://www.badlogicgames.com - musings on Android and Java game development
Offline badlogicgames
« Reply #67 - Posted 2010-12-12 22:23:57 »

Added your fix. Took some time, was busy with a lot of other stuff. If you happen to run it on a Samsung let me know what AndroidGraphics reports in LogCat. You'll either want to work from source or use the latest nightlies.

Thanks Egon for the hint!

http://www.badlogicgames.com - musings on Android and Java game development
Offline kevglass

JGO Kernel


Medals: 159
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #68 - Posted 2010-12-13 10:15:52 »

Thanks all. I'll update from nightlys asap!

Kev

Offline kevglass

JGO Kernel


Medals: 159
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #69 - Posted 2010-12-14 09:20:22 »

Slick-AE svn is updated with the new versions, thanks again guys. I'm going to write a new test game to try this stuff out in earnest:



Kev

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline EgonOlsen
« Reply #70 - Posted 2010-12-14 19:42:53 »

Have you updated that Kitten-game too? Because if so, the fix doesn't fix it...it's still "powered" by Pixelflinger.

Offline kevglass

JGO Kernel


Medals: 159
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #71 - Posted 2010-12-14 21:08:36 »

Not updated yet. I'll get it tonight hopefully.

Kev

Offline kevglass

JGO Kernel


Medals: 159
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #72 - Posted 2010-12-15 11:34:59 »

Updated to new libgdx here: http://dl.dropbox.com/u/1668516/android/Slick-Android-Test.apk

Kev

Offline EgonOlsen
« Reply #73 - Posted 2010-12-15 12:07:00 »

Doesn't work any more. It's giving me an IllegalStateException saying that setRenderer has already been called for this Activity.

Offline kevglass

JGO Kernel


Medals: 159
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #74 - Posted 2010-12-15 12:54:40 »

Oh dear Sad

Still works elsewhere.

Kev

Offline EgonOlsen
« Reply #75 - Posted 2010-12-15 20:23:35 »

Yes, most likely. However, the Samsung fix needs a fix... Wink

Offline badlogicgames
« Reply #76 - Posted 2010-12-15 22:23:10 »

Haha, i suck. The IllegalStateException should be gone. Whether the config chooser snippet from EgonOlsen fixes the surface creation on the shitty samsung is a different story. Nightlies updated.

http://www.badlogicgames.com - musings on Android and Java game development
Pages: 1 2 [3]
  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 (24 views)
2014-08-22 19:31:30

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

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

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

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

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

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

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

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

Norakomi (42 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!