Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (517)
Games in Android Showcase (123)
games submitted by our members
Games in WIP (577)
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  
  Terrain rendering demo for Android  (Read 5451 times)
0 Members and 1 Guest are viewing this topic.
Offline Xorgo

Senior Newbie


Projects: 1



« Posted 2013-06-19 21:40:59 »

Hi,
here's my terrain rendering demo/testbed for Android using LibGDX.
Currently, Geomipmapping and SOAR methods for terrain LOD are supported.

Controls:
In main menu you can select LOD method and LOD tolerance
(error projected to screen space...) - basically lower tolerance = better quality = lower performance.
On Android just check "autowalk" in menu and later swipe finger on display to
look around and change direction. Better/more controls are in todo list Smiley
On desktop you can also use these keys when viewing terrain:
W/Up - forwards, S/Down - backwards, Ctrl - move really fast, +/- change tolerance, O - toggle wireframe overlay.

Links:
Play Store page
Desktop version JAR

Screenshots:






Limitations:
Needs at least 2048x2048 max texture limit, GL_OES_element_index_uint for
SOAR, and GL_OES_standard_derivatives for wireframe overlay. For instance
SOAR won't run on Galaxy S3 with Mali-400 MP GPU. Also, wireframe overlay
is only for Geomipmapping.


Crash reports, performance reports, and other reports will be appreciated.
Offline RobinB

JGO Ninja


Medals: 44
Projects: 1
Exp: 3 years


Spacegame in progress


« Reply #1 - Posted 2013-06-19 21:54:22 »

Looks really nice, however i still noticed one bug at the seams:
Click to Play


Also the walking was really-really slow for me.
Offline BurntPizza
« Reply #2 - Posted 2013-06-19 22:03:09 »

Hold Ctrl for a boost Wink

To OP: Really nice, reminds me of PlanetSide2, massive landscapes!
No crashing or other problems detected, getting about 350-450 FPS on HD 4670 (Desktop, ofc)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline EgonOlsen
« Reply #3 - Posted 2013-06-20 05:38:57 »

Exits without a trace after trying to start the actual demo (the start-up/options screen works fine). This is on my work pc (Windows XP 32 bit, Radeon HD 6350).
Haven't tried the Android version yet, because my mobile connect is pretty lame here ATM.

Edit: Works fine on Android 4.2/Nexus 4, ~60fps with Geomipmaps, 35-40fps with SOAR.

Offline Xorgo

Senior Newbie


Projects: 1



« Reply #4 - Posted 2013-06-21 00:19:05 »

Looks really nice, however i still noticed one bug at the seams:
   
Also the walking was really-really slow for me.

Yes the boundaries of geomipmap tiles with different LOD could look better.
Only simple skirts around tiles are used now.
The reason I put skirts in is actually something not seemingly related:
no support for wireframe polygon fills in OpenGL ES.
So I'm using barycentric coordinates for wireframe overlay
but that puts some restrictions on geometry. Could be avoided given more time  Tongue


Walk speed: As BurntPizza points out CTRL is the magic key Smiley

Exits without a trace after trying to start the actual demo (the start-up/options screen works fine). This is on my work pc (Windows XP 32 bit, Radeon HD 6350).

Edit: Works fine on Android 4.2/Nexus 4, ~60fps with Geomipmaps, 35-40fps with SOAR.
Could be some outdated OpenGL drivers? Could you please check GL info reported by the program ("Show GL Info" button in menu)?
Or run the JAR from console (there should be some stack dump)?

Nice performance on Nexus 4, probably will have to add some bigger terrains to stress the newer devices more  Shocked
Offline CommanderKeith
« Reply #5 - Posted 2013-06-21 06:32:16 »

Cool demo. ran at 56 fps on my old samsung galaxy s 1.

Offline xmakina

Senior Newbie





« Reply #6 - Posted 2013-06-21 09:09:07 »

Looks really good. 30FPS and quick loading on a HTC Rhyme
Offline EgonOlsen
« Reply #7 - Posted 2013-06-24 06:00:29 »

Quote from: Xorgo link=topic=29936.msg275945#msg275945

Could be some outdated OpenGL drivers? Could you please check GL info reported by the program ("Show GL Info" button in menu)?
Or run the JAR from console (there should be some stack dump)?
GL info button displays...some gl info. Looks fine to me at first glance. The drivers aren't current, maybe 1.5 years old.
And this is the stack trace:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
glTerrain: Vertex shader(s) linked, fragment shader(s) linked.
glTerrain: Vertex shader(s) linked, fragment shader(s) linked.
glTerrain: Vertex shader(s) linked, fragment shader(s) linked.
glTerrain: Ground tex loaded in:  107 ms
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NullPointerException
        at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:112)
Caused by: java.lang.NullPointerException  
   at com.galfarslair.glterrain.TerrainRunner$TerrainBuilder.processState(TerrainRunner.java:425)
   at com.galfarslair.util.SequenceExecutor.execute(SequenceExecutor.java:22)
        at com.galfarslair.glterrain.TerrainRunner.render(TerrainRunner.java:177)
        at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:186)
        at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:109)

Offline DQQAYME
« Reply #8 - Posted 2013-06-24 10:23:27 »

Can you plz send me apk file, sorry don’t have wifi Wink
Really want see performance on my device.

Offline Xorgo

Senior Newbie


Projects: 1



« Reply #9 - Posted 2013-06-24 16:25:22 »

Can you plz send me apk file, sorry don’t have wifi Wink
Really want see performance on my device.

You can find APK for download here: http://sdrv.ms/14mN4Ia
v0.30 is the latest one.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DQQAYME
« Reply #10 - Posted 2013-06-24 17:54:49 »

You can find APK for download here: http://sdrv.ms/14mN4Ia
v0.30 is the latest one.
Ty

10-12 fps =)
Geo
Soar not support
prestigio pmp3270b
CPU Cortex A8

Offline Xorgo

Senior Newbie


Projects: 1



« Reply #11 - Posted 2013-06-26 11:58:31 »

And this is the stack trace:
....

Thanks for the report. I was suspecting shader compiling but this points to texture creation.
Offline Abuse

JGO Knight


Medals: 13


falling into the abyss of reality


« Reply #12 - Posted 2013-07-01 11:00:10 »

~30 fps on my Huawei G300. (Adreno 200 gpu)

SOAR might have been ever so slightly slower than geomipmapping, but it's hard to tell without a deterministic benchmark.

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 823
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #13 - Posted 2013-07-01 11:07:53 »

One should use SOAR within each geomipmap tile for best results.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Xorgo

Senior Newbie


Projects: 1



« Reply #14 - Posted 2013-07-03 16:41:22 »

~30 fps on my Huawei G300. (Adreno 200 gpu)

SOAR might have been ever so slightly slower than geomipmapping, but it's hard to tell without a deterministic benchmark.
Some benchmark flyover mode is planned.
SOAR test actually runs with only 512x512 terrain compared to 1024x1024 in Geomipmapping test
(SOAR is limited so that the app can fit in 32MB of RAM).
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.

TehJavaDev (33 views)
2014-10-27 03:28:38

TehJavaDev (26 views)
2014-10-27 03:27:51

DarkCart (41 views)
2014-10-26 19:37:11

Luminem (22 views)
2014-10-26 10:17:50

Luminem (27 views)
2014-10-26 10:14:04

theagentd (33 views)
2014-10-25 15:46:29

Longarmx (61 views)
2014-10-17 03:59:02

Norakomi (59 views)
2014-10-16 15:22:06

Norakomi (47 views)
2014-10-16 15:20:20

lcass (43 views)
2014-10-15 16:18:58
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!