Page 1 of 1

supertuxkart porting android

PostPosted: 22 Aug 2016, 10:06
by 344717871
:) :)
i try to porting supertuxkart on android ,and i did it.
source upload on github https://github.com/344717871/STK_android

Re: supertuxkart porting android

PostPosted: 22 Aug 2016, 18:25
by deve
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).

Re: supertuxkart porting android

PostPosted: 30 Aug 2016, 02:40
by suiciwd
344717871 {l Wrote}::) :)
source upload on github https://github.com/344717871/STK_android


How do I compile this ?

Re: supertuxkart porting android

PostPosted: 01 Sep 2016, 21:54
by TheGuyWhoLovesChill
Any chance you could get it into the chromestore, now ?

Re: supertuxkart porting android

PostPosted: 01 Sep 2016, 22:09
by Arthur
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.

Re: supertuxkart porting android

PostPosted: 01 Sep 2016, 22:48
by QwertyChouskie
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.

Re: supertuxkart porting android

PostPosted: 02 Sep 2016, 23:53
by deve
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.

Re: supertuxkart porting android

PostPosted: 12 Sep 2016, 21:10
by deve
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 :)

Re: supertuxkart porting android

PostPosted: 12 Sep 2016, 22:47
by WillemS
Wow, this is awesome! It would be very nice to be able to play STK on Android devices...

Re: supertuxkart porting android

PostPosted: 25 Oct 2016, 00:31
by deve
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.

Re: supertuxkart porting android

PostPosted: 26 Oct 2016, 01:29
by Auria
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!! :)

Re: supertuxkart porting android

PostPosted: 27 Oct 2016, 05:27
by hiker
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

Re: supertuxkart porting android

PostPosted: 30 Oct 2016, 05:10
by suiciwd
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 ?

Re: supertuxkart porting android

PostPosted: 20 Nov 2016, 22:39
by deve
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.

Re: supertuxkart porting android

PostPosted: 01 Dec 2016, 06:57
by suiciwd
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

Re: supertuxkart porting android

PostPosted: 31 Dec 2016, 20:41
by Kitoko
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.