My game for Android

Started by Thomas., August 27, 2012, 09:20:03 PM

Previous topic - Next topic

Thomas.

#45
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.

EgonOlsen

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?  ;)

Thomas.

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 ;)

Thomas.

#48
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...


EgonOlsen

Quote from: Thomas. on May 24, 2013, 06:01:10 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... ;)

Thomas.

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

Wolf17

  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!


Thomas.

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?

Wolf17

Sure!

[attachment deleted by admin]

Thomas.

#54
Quote from: Wolf17 on November 11, 2013, 05:58:37 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...

Quote from: Wolf17 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?

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

edit: fixed ;)

EgonOlsen

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)...  :(

Thomas.

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.

EgonOlsen

I was able to delete it on the phone and it re-downloaded the data. At least the room level works fine now.

Wolf17

 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.)

Thomas.

This behavior I never met. Which device do you has? I can only recommend delete and copy data again...