Questions for Rado1
Posted: Tue Apr 26, 2016 5:20 pm
Hey Rado1
I've been talking with Ville for a while now, and I've started to try out compiling android APK files from zGame as I would really like to make use of zGame as I've become comfortable with the workflow. I've been learning how to use Android Studio as well and can do some basic game loops and image movement, but nothing too complex by any stretch.
I've had some success following the video included in the help file, the Render Particles example. It works just fine across the board quite well as far as I recall. I was able to test it on the device, as well it worked fine in any ARM based Virtual Device inside Android Studio. It wouldn't work however on any x86 x64 emulators. I kept getting the error message : "INSTALL_FAILED_NO_MATCHING_ABIS" which after looking this up, the information I got was that it was missing an image for x64 x86 based emu. I tried to open the project up within Android studio, but it appeared to only load up partial data, all of the assets and resource folders seem to be excluded from the project. I've attached a screenshot of what I mean within the root of the included zip file.
My second test was to try to create a basic shader, nothing at all fancy, simply contained a material->shader and a useMaterial and renderSprite onRender. This didn't work initally (see ShaderTest) as it was set to compatibility mode. this would return the same result on the Phone itself, which was a white box in the middle of the screen.
So I changed the GLBase to ES2/GL3 and this DID work when testing it inside the virtual device (as shown in the screenshot) however, when I run it on the device, I just get a black screen. (see ShaderTest2)
Now I am guessing this is likely because the syntax is different and there's some simple logistical considerations I need to make ?
Any help you could provide here would be very helpful. Ive also included some "droid info" screenshots in case it would help.
Ville had also mentioned you might have some modules to use for android ? I've been looking to use the camera on the device as a TextureSource in a shader. I would like to take the video and overlay some effects using shaders for use with possible VR applications.
Cheers, and thanks in advance !
I've been talking with Ville for a while now, and I've started to try out compiling android APK files from zGame as I would really like to make use of zGame as I've become comfortable with the workflow. I've been learning how to use Android Studio as well and can do some basic game loops and image movement, but nothing too complex by any stretch.
I've had some success following the video included in the help file, the Render Particles example. It works just fine across the board quite well as far as I recall. I was able to test it on the device, as well it worked fine in any ARM based Virtual Device inside Android Studio. It wouldn't work however on any x86 x64 emulators. I kept getting the error message : "INSTALL_FAILED_NO_MATCHING_ABIS" which after looking this up, the information I got was that it was missing an image for x64 x86 based emu. I tried to open the project up within Android studio, but it appeared to only load up partial data, all of the assets and resource folders seem to be excluded from the project. I've attached a screenshot of what I mean within the root of the included zip file.
My second test was to try to create a basic shader, nothing at all fancy, simply contained a material->shader and a useMaterial and renderSprite onRender. This didn't work initally (see ShaderTest) as it was set to compatibility mode. this would return the same result on the Phone itself, which was a white box in the middle of the screen.
So I changed the GLBase to ES2/GL3 and this DID work when testing it inside the virtual device (as shown in the screenshot) however, when I run it on the device, I just get a black screen. (see ShaderTest2)
Now I am guessing this is likely because the syntax is different and there's some simple logistical considerations I need to make ?
Any help you could provide here would be very helpful. Ive also included some "droid info" screenshots in case it would help.
Ville had also mentioned you might have some modules to use for android ? I've been looking to use the camera on the device as a TextureSource in a shader. I would like to take the video and overlay some effects using shaders for use with possible VR applications.
Cheers, and thanks in advance !