Author Topic: My game for Android  (Read 31121 times)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: My game for Android
« Reply #45 on: March 17, 2013, 09:43:34 pm »
Two news. Shadows are already working. And if you go at the home screen and back, game is immediately up. Nothing more, I did not have time.


edit: Shadow map in the screenshot has 1024*1024.
« Last Edit: May 24, 2013, 06:03:46 pm by Thomas. »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: My game for Android
« Reply #46 on: March 19, 2013, 10:40:29 pm »
Looks nice!! Can you provide some stripped down version of the shadows to be integrated into the engine's core, if you find the time?  ;)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: My game for Android
« Reply #47 on: March 20, 2013, 08:24:52 am »
I have no solved one thing. Send into fragment shader whether device supports high precision or not. At this moment are all calculations in medium precision. But it should not be a problem. As soon as I get back from school, I will send you the code ;)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: My game for Android
« Reply #48 on: May 24, 2013, 06:01:10 pm »
I updated shader for lighting. Now are supported specular color, normal and parallax mapping in tangent space (first screenshot contains test wall with parallax mapping). Number of lights is limited with normal mapping, because Mali400 supports only 16 vec4 varying variables. I also edited light attenuation function for discard calculating of lights in large distance, however lights look almost same as before. I tried scene where all objects use parallax mapping, but the game crash on gl out of memory error. Settings menu is reorganized and better in my opinion. Camera rotation and player move are filtered and looks very smooth. Motion blur is much better, now. I added light glow support, but first I have to create some good looking texture. I tried the game on Samsung Galaxy S4. Fps is somewhere between 55 and 60 and with depth of field it is about 33. I think, it is very good when is taken into account that SGS4 has more than 2 times more pixels than SGS3. But. I am losing motivation. I hope that the game will ever finish. There is still too much work...

« Last Edit: May 24, 2013, 06:23:06 pm by Thomas. »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: My game for Android
« Reply #49 on: May 26, 2013, 09:58:03 pm »
But. I am losing motivation. I hope that the game will ever finish. There is still too much work...
A little hint: Shift from focussing on shaders and effects towards actual game play to get this done... ;)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: My game for Android
« Reply #50 on: November 11, 2013, 02:54:19 pm »
Because I probably never continue in this project, I decided public what I have at the moment. App has many bugs and you can load only map named room01. Data will be downloaded after first start (FTP server not among the best) ~15MB. If you have any problem with downloading data, unzip this zip to Android/data/. I enabled developer mode by default, so we have access to everything ;)

APK file

Variables saved in Android/data/mygame/config.cfg
Code: [Select]
dev
engineDebug
showFps
antiAliasing
padAutoHide
padVisibility
firePadVisible
maxFPS
fpsLimit
xPositionOfPad
yPositionOfPad
cameraSensitivity
xPositionOfFireButton
yPositionOfFireButton
xPositionOfEquip
yPositionOfEquip
comperssTexture
centerCamera
checkForUpdates
textureQuality
menuTrans
traslationMenuEffect
saveLogs
invertCameraY
gameGUITransparency
lightGlowEffect
cameraFilter
shadingMode

Offline Wolf17

  • int
  • **
  • Posts: 77
    • View Profile
Re: My game for Android
« Reply #51 on: November 11, 2013, 05:58:37 pm »
  Hi Thomas!

I got some errors .....
error : couldn't read file from InputStream
         ......couldn't load text files
          ......Drawing thread terminated
         java.lang.StringIndex.........

Its very lengthy..... did I installld it wrong?

Are you discontinuing this project?  :(
You can even make a mystery/escape game with some great sci-fi story ! It looks great from the screenshots!


Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: My game for Android
« Reply #52 on: November 11, 2013, 06:09:41 pm »
It is strange, you can delete files in Android/data/mygame and download it again. Could you provide me log.txt file from "mygame" directory?

Offline Wolf17

  • int
  • **
  • Posts: 77
    • View Profile
Re: My game for Android
« Reply #53 on: November 11, 2013, 06:14:00 pm »
Sure!

[attachment deleted by admin]

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: My game for Android
« Reply #54 on: November 11, 2013, 06:19:16 pm »
Are you discontinuing this project?  :(
You can even make a mystery/escape game with some great sci-fi story ! It looks great from the screenshots!

Main problem from beginning was that I never found someone who can make maps, objects, textures. For one person it is to much work...

  Hi Thomas!

I got some errors .....
error : couldn't read file from InputStream
         ......couldn't load text files
          ......Drawing thread terminated
         java.lang.StringIndex.........

Its very lengthy..... did I installld it wrong?

It seems on problem with getClass().getResourceAsStream(...)

edit: fixed ;)
« Last Edit: November 11, 2013, 06:55:18 pm by Thomas. »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: My game for Android
« Reply #55 on: November 11, 2013, 09:09:24 pm »
I can't run it...it installed fine, then downloaded the data but obviously failed after downloading maybe 50-60%. Now i can't seem to force it to re-download. I would copy the zip-content into Android/data just as you suggested, but i can't write anything into that folder. At least not via USB connection (i haven't tried it directly on the device). I also can't delete a mygame folder in there, because there is none.
If i start the game, i get a selection menu to choose a level and then...nothing (black screen)...  :(

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: My game for Android
« Reply #56 on: November 11, 2013, 09:17:03 pm »
It is strange, because right after finish download is created file download_complete.dat, without this file you will be asked for download. There is only one solution. Delete the mygame folder. I can recommend X-Plore file manager.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: My game for Android
« Reply #57 on: November 11, 2013, 11:05:42 pm »
I was able to delete it on the phone and it re-downloaded the data. At least the room level works fine now.

Offline Wolf17

  • int
  • **
  • Posts: 77
    • View Profile
Re: My game for Android
« Reply #58 on: November 12, 2013, 01:59:27 pm »
 Re downloading fails everytime when I try to do it. I still could not make it run on my device . I only got a black screen with time at upper right corner. Maybe my old device is not supported?(I am using the filedata u provided in above link.)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: My game for Android
« Reply #59 on: November 14, 2013, 10:58:41 pm »
This behavior I never met. Which device do you has? I can only recommend delete and copy data again...