supertuxkart porting android

supertuxkart porting android

Postby 344717871 » 22 Aug 2016, 10:06

:) :)
i try to porting supertuxkart on android ,and i did it.
source upload on github https://github.com/344717871/STK_android
344717871
 
Posts: 2
Joined: 22 Aug 2016, 09:56

Re: supertuxkart porting android

Postby deve » 22 Aug 2016, 18:25

There were already made some android ports in the past. For example:
https://git.gitorious.org/stkandroid/stkandroid.git
and newer version:
https://github.com/xapantu/stk-code.git

Also note that the OpenGL ES port is already done in current git STK (version >= 3.0 is needed, you can enable it on linux for testing).
deve
 
Posts: 268
Joined: 23 Jan 2014, 13:45

Re: supertuxkart porting android

Postby suiciwd » 30 Aug 2016, 02:40

344717871 {l Wrote}::) :)
source upload on github https://github.com/344717871/STK_android


How do I compile this ?
Graphic Designer & Website Developer
User avatar
suiciwd
 
Posts: 52
Joined: 26 Aug 2016, 12:52

Re: supertuxkart porting android

Postby TheGuyWhoLovesChill » 01 Sep 2016, 21:54

Any chance you could get it into the chromestore, now ?
TheGuyWhoLovesChill
 
Posts: 4
Joined: 28 Feb 2015, 19:16

Re: supertuxkart porting android

Postby Arthur » 01 Sep 2016, 22:09

Dunno about this port, if everything is touch-friendly and in any case, most Android devices will need stripped down assets or it might run very sluggishly. So a quick and dirty port is not likely to be good enough to put on the app store.
Hey pal, I took an oath for justice! "In happy days or tightest tights..." or something like that.
User avatar
Arthur
 
Posts: 1073
Joined: 06 Dec 2009, 00:49

Re: supertuxkart porting android

Postby QwertyChouskie » 01 Sep 2016, 22:48

And, this port is of a very old version of STK, one really should be done with the git version and the new GLES renderer.
Contributor to/fan of STK (Upstreamed Cartoon theme, numerous random big fixes/tweaks)
User avatar
QwertyChouskie
 
Posts: 559
Joined: 29 Jun 2016, 14:57

Re: supertuxkart porting android

Postby deve » 02 Sep 2016, 23:53

I already was able to run current git STK version on Lenovo Tab2 tablet with OpenGL ES 3.0 renderer. Currently it works only with disabled advanced lighing. Here are some photos:
IMG_20160903_002108.jpg

IMG_20160903_001945.jpg

IMG_20160903_001849.jpg

IMG_20160903_001742.jpg


Advanced lighting should work too after some tweaks, but TBH it will be probably too slow for smooth playing, at least in full-hd resolution.

The code is not available yet because I need to clean up some things and also make proper fixes for issues that I found. I hope that all fixes for OpenGL ES renderer will be available in STK master branch soon.

If someone is interested in working on Android port, here is a small TODO list:
- make a nice steering (I don't like steering with sensors, so maybe add the joystick buttons in a race gui?)
- integrate OpenAL and curl libraries
- find a way to decrease sounds quality on load time to save some RAM (maybe load only one channel and play it in mono?)
- add a virtual keyboard support based on Xapantu port (which is partially integrated with STK master branch), maybe it can be just ported from current irrlicht-gles version.

I am now focused on making the OpenGL ES port as good as possible.
deve
 
Posts: 268
Joined: 23 Jan 2014, 13:45

Re: supertuxkart porting android

Postby deve » 12 Sep 2016, 21:10

The most important patches for GLES renderer are now applied in STK master branch. One thing which is missing is that particles sometimes look buggy. But it's a WIP ;)

Actually advanced lighting works on Android too (without SSAO):
IMG_20160912_213837.jpg

But it's a performance killer :P Though it was relatively playable on old tracks such as Farm and Mathclass when I degraded resolution using "scale_rtts_factor" parameter.

Anyway with disabled advanced lighting it is certainly playable, even in full-hd resolution :)
deve
 
Posts: 268
Joined: 23 Jan 2014, 13:45

Re: supertuxkart porting android

Postby WillemS » 12 Sep 2016, 22:47

Wow, this is awesome! It would be very nice to be able to play STK on Android devices...
WillemS
 
Posts: 81
Joined: 03 Nov 2012, 17:42

Re: supertuxkart porting android

Postby deve » 25 Oct 2016, 00:31

I already made some progress with Android port.

Here is the video with multitouch steering in action:
https://www.youtube.com/watch?v=qJH33Rv ... e=youtu.be

It needs some tweaks, better buttons, placement etc. but works fine in general.

I should be able to merge multitouch steering to upstrem STK soon.
deve
 
Posts: 268
Joined: 23 Jan 2014, 13:45

Re: supertuxkart porting android

Postby Auria » 26 Oct 2016, 01:29

deve {l Wrote}:I already made some progress with Android port.

Here is the video with multitouch steering in action:
https://www.youtube.com/watch?v=qJH33Rv ... e=youtu.be

It needs some tweaks, better buttons, placement etc. but works fine in general.

I should be able to merge multitouch steering to upstrem STK soon.


Wow that looks great, fantastic work!! :)
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: supertuxkart porting android

Postby hiker » 27 Oct 2016, 05:27

deve {l Wrote}:I already made some progress with Android port.

Here is the video with multitouch steering in action:
https://www.youtube.com/watch?v=qJH33Rv ... e=youtu.be

It needs some tweaks, better buttons, placement etc. but works fine in general.

I should be able to merge multitouch steering to upstrem STK soon.

Whow, great work that, impressive!

Cheers,
Joerg
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: supertuxkart porting android

Postby suiciwd » 30 Oct 2016, 05:10

deve {l Wrote}:I already made some progress with Android port.

Here is the video with multitouch steering in action:
https://www.youtube.com/watch?v=qJH33Rv ... e=youtu.be

It needs some tweaks, better buttons, placement etc. but works fine in general.

I should be able to merge multitouch steering to upstrem STK soon.


Nice but can you run it with the advanced pipeline. Also could we have an option to use the accelerometer for steering and acceleration like other games. And also I think that the speedometer should be kept and used as a boost when held down.

For using gift boxes (fire) we should have a gesture to swipe up with finger.

For looking back a gesture where you have to swipe one finger down to make the camera look back and when you let it go it should go back to the normal camera.Also you should be to fire by swiping another finger up while doing that.

For drifting maybe we should have a button on the lower left of the screen

Also can you share an APK ?
Graphic Designer & Website Developer
User avatar
suiciwd
 
Posts: 52
Joined: 26 Aug 2016, 12:52

Re: supertuxkart porting android

Postby deve » 20 Nov 2016, 22:39

Just FYI, I'm still working on the Android port.

Slightly modified version of multitouch steering is already merged to STK master branch. It still needs some work (i.e. allow to scale interface depending on DPI, make nice nitro button and make images for all buttons in general), but it's playable in current state. I have no plans to support steering with gestures or gyroscope atm. We can add some alternative steering later.

Here is already working audio and internet access:
https://youtu.be/8LQI1f4psYU

And here is already working multiplayer game with external keyboard:
https://youtu.be/qmKAZuDoUhM

One major thing that is really missing now is proper files handling. We should include them in apk, then unpack on the first run (or maybe read directly from apk?), check if this is proper data directory, if nothing is accidentally deleted etc...

And a lot of other things, i.e. on-screen keyboard, so that we will be able to sign in or search add-ons.
deve
 
Posts: 268
Joined: 23 Jan 2014, 13:45

Re: supertuxkart porting android

Postby suiciwd » 01 Dec 2016, 06:57

deve {l Wrote}:Just FYI, I'm still working on the Android port.

Slightly modified version of multitouch steering is already merged to STK master branch. It still needs some work (i.e. allow to scale interface depending on DPI, make nice nitro button and make images for all buttons in general), but it's playable in current state. I have no plans to support steering with gestures or gyroscope atm. We can add some alternative steering later.

Here is already working audio and internet access:
https://youtu.be/8LQI1f4psYU

And here is already working multiplayer game with external keyboard:
https://youtu.be/qmKAZuDoUhM

One major thing that is really missing now is proper files handling. We should include them in apk, then unpack on the first run (or maybe read directly from apk?), check if this is proper data directory, if nothing is accidentally deleted etc...

And a lot of other things, i.e. on-screen keyboard, so that we will be able to sign in or search add-ons.


Can I have an APK to test it on my phone ? Also do you have a GitHub repository for it so I can add accelerometer steering (quite easy, just make it read the accelerometer in the main loop). I don't really know how to use gestures with the NDK but with Android Java you can use https://developer.android.com/training/ ... ector.html
Graphic Designer & Website Developer
User avatar
suiciwd
 
Posts: 52
Joined: 26 Aug 2016, 12:52

Re: supertuxkart porting android

Postby Kitoko » 31 Dec 2016, 20:41

You should have an option to allow steering by tilting the device, that way you can free up the left side so the user doesn't have to settle for either drifting or nitro, because those are both very effective used together, same with being able to look back and use the gift box item.

My thoughts on layout are:
Left side: Drift, Look Back
Right side: Nitro, Gift Box

It's a little too clunky to stuff everything on the right side and make the user have to use an directional pad. I might recommend this game for mobile if things continue to hold promise.
Kitoko
 
Posts: 2
Joined: 19 Mar 2015, 13:13

Who is online

Users browsing this forum: No registered users and 1 guest