procedural-3d-engine/android
2016-04-03 13:51:47 +02:00
..
bloom Update android application labels (#97) 2016-03-25 15:40:55 +01:00
computeparticles Update android application labels (#97) 2016-03-25 15:40:55 +01:00
computeshader Update android application labels (#97) 2016-03-25 15:40:55 +01:00
deferred Update android application labels (#97) 2016-03-25 15:40:55 +01:00
displacement Added android support for deferred, displacement and spherical environment mapping examples (#97) 2016-03-25 14:12:17 +01:00
distancefieldfonts Added android support for distance field fonts example (#97) Fixes (#109) 2016-03-25 21:53:09 +01:00
gears Added android support for gears, geometryshader, instancing and occlusion query examples (#97) 2016-03-25 19:43:01 +01:00
geometryshader Added android support for gears, geometryshader, instancing and occlusion query examples (#97) 2016-03-25 19:43:01 +01:00
images Removed old android images, small change to build.bat (#97) 2016-03-25 21:14:00 +01:00
instancing Added android support for gears, geometryshader, instancing and occlusion query examples (#97) 2016-03-25 19:43:01 +01:00
mesh Update android application labels (#97) 2016-03-25 15:40:55 +01:00
multisampling Added multisampling example to cmake and android build 2016-03-29 21:41:56 +02:00
multithreading Added frustum culling, use low-poly mesh to move limitation towards cpu 2016-04-03 13:51:47 +02:00
occlusionquery Added android support for gears, geometryshader, instancing and occlusion query examples (#97) 2016-03-25 19:43:01 +01:00
offscreen Update android application labels (#97) 2016-03-25 15:40:55 +01:00
parallaxmapping Added android support for parallax mapping, pipelines, push constants, radial blur, skeletal animation and tessellation examples (#97) 2016-03-25 21:08:59 +01:00
particlefire Update android application labels (#97) 2016-03-25 15:40:55 +01:00
pipelines Added android support for parallax mapping, pipelines, push constants, radial blur, skeletal animation and tessellation examples (#97) 2016-03-25 21:08:59 +01:00
pushconstants Added android support for parallax mapping, pipelines, push constants, radial blur, skeletal animation and tessellation examples (#97) 2016-03-25 21:08:59 +01:00
radialblur Added android support for parallax mapping, pipelines, push constants, radial blur, skeletal animation and tessellation examples (#97) 2016-03-25 21:08:59 +01:00
raytracing Initial commit for compute shader ray tracing example (work in progress) 2016-03-27 21:49:14 +02:00
shadowmapping Added android support for shadow mapping (projected and omni) and texture (array and cubemap ) example (#97) 2016-03-25 15:29:38 +01:00
shadowmappingomni Added android support for shadow mapping (projected and omni) and texture (array and cubemap ) example (#97) 2016-03-25 15:29:38 +01:00
skeletalanimation Added android support for parallax mapping, pipelines, push constants, radial blur, skeletal animation and tessellation examples (#97) 2016-03-25 21:08:59 +01:00
sphericalenvmapping Added android support for deferred, displacement and spherical environment mapping examples (#97) 2016-03-25 14:12:17 +01:00
tessellation Added android support for parallax mapping, pipelines, push constants, radial blur, skeletal animation and tessellation examples (#97) 2016-03-25 21:08:59 +01:00
texture Update android application labels (#97) 2016-03-25 15:40:55 +01:00
texturearray Added android support for shadow mapping (projected and omni) and texture (array and cubemap ) example (#97) 2016-03-25 15:29:38 +01:00
texturecubemap Added android support for shadow mapping (projected and omni) and texture (array and cubemap ) example (#97) 2016-03-25 15:29:38 +01:00
triangle Update android application labels (#97) 2016-03-25 15:40:55 +01:00
vulkanscene Android builds (#97) 2016-03-25 16:41:44 +01:00
_build.bat Added multi threading example to cmake and android build 2016-04-02 12:08:19 +02:00
_setup.bat Removed deprecated separate triangle and texture demos, replaced with android build files (wip) (#97) 2016-03-21 23:33:33 +01:00
build-all.bat Added multi threading example to cmake and android build 2016-04-02 12:08:19 +02:00
build.bat Added android support for gears, geometryshader, instancing and occlusion query examples (#97) 2016-03-25 19:43:01 +01:00
install-all.bat Streamlined Android build process and install/uninstall batch files (#97) 2016-03-26 11:49:37 +01:00
README.md Streamlined Android build process and install/uninstall batch files (#97) 2016-03-26 11:49:37 +01:00
uninstall-all.bat Added multi threading example to cmake and android build 2016-04-02 12:08:19 +02:00

Vulkan examples on Android

Vulkan on Android

Since Vulkan is not yet part of the Android OS (like OpenGL ES) the library and function pointers need to be dynamically loaded before using any of the Vulkan functions. See the vulkanandroid.h and vulkanandroid.cpp files in the base folder of the repositoy root for how this is done.

Device support

  • To run these examples you need a device with an Android image that suports Vulkan
  • Builds currently only support arm-v7, x86 may follow at a later point
  • Android TV leanback launcher is supported, so the examples will show up on the launcher
  • Basic gamepad support is available too (zoom and rotate)

Imporant note

The Android part of the Vulkan example base is not yet finished, and while the examples run fine they might encounter some problems as most of the resources are not yet correctly released when closing the app.

Building

Requirements

  • Android NDK r11b - Somewhere in your sarch path
  • Batch files for building are provided for windows only, with linux to be added at some point

Building the Examples

Complete set

Please note that building (and deploying) all examples may take a while

Build only

build-all

This will build all apks and puts them into the bin folder.

Build and deploy

install-all

This will build all apks and deploys them to the currently attached android device.

Single examples

These are for building and/or deploying a single example.

Build only

Call build(.bat) with the name of the example to build, e.g. :

build triangle

This will build the apk for the triangle example and puts it into the bin folder.

Build and deploy

build triangle -deploy

This will build the apk for the triangle example and deploys it to the currently attached android device.

Removing

A batch file for removing all installed examples is provided in case you installed all of them and don't want to remove them by hand (which is especially tedious on Android TV).

uninstall-all

This will remove any installed Android example from this repository from the attached device.