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 (407)
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 2 [3]
  ignore  |  Print  
  Slick-AE Development  (Read 14662 times)
0 Members and 1 Guest are viewing this topic.
Offline EgonOlsen
« Reply #60 - Posted 2010-12-07 09:17:33 »

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

Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


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

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

Kev

Offline strategy

Junior Member


Projects: 1



« Reply #62 - Posted 2010-12-07 11: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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #63 - Posted 2010-12-07 11: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 Wizard


Medals: 81
Projects: 3


Esoteric Software


« Reply #64 - Posted 2010-12-07 19: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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


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

Did Egon's fix get into libgdx?

Kev

Offline badlogicgames
« Reply #66 - Posted 2010-12-07 20: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 23: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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


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

Thanks all. I'll update from nightlys asap!

Kev

Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #69 - Posted 2010-12-14 10: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 20: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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


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

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

Kev

Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #72 - Posted 2010-12-15 12: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 13: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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


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

Oh dear Sad

Still works elsewhere.

Kev

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

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

Offline badlogicgames
« Reply #76 - Posted 2010-12-15 23: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.

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 (88 views)
2013-05-17 21:29:12

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

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

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

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

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

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

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

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

UnluckyDevil (191 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.134 seconds with 22 queries.