android - AR Mobile Games using live camera -
i wanna start working on developing games :
- mosquito ar games : http://www.makayama.com/mosquitoes.html
- driodshooting : http://www.youtube.com/watch?v=ku9qsujwzgi
the app use camera , radar spotting object , hit using touch best sdk or platform or programming model execute similar game targeting android , ios
your , advice highly appreciated
thanks in advance
i agree ivan question broad handled here. anyway, here few things consider android platform:
if want make use of 3d graphics (opengl) might run bottleneck, because time being cannot have live camera preview , opengl surface view simultaneously on same screen. problem called surfaceview (which used opengl rendering , camera live preview) not designed layered on top of each other. can unexpected results when comes display order (3d graphics rendered behind video preview).
there 2 solutions problem though:
you don't use 3d graphics , resort rendering 2d objects on top of camera preview
you use 3d graphics have capture camera preview, convert yuv encoded data rgb (which problematic on devices because of non-standard compliant customizations of encoding) , load data opengl texture displayed on rectangular primitive. problem approach is: lack of speed because of additional processing overhead , need scale down camera preview texture because of limitations related opengl.
furthermore need make familiar capturing motion sensor data calculating device rotation matrix can used transforming overlay graphics / virtual objects.
if ar app supposed "interact" captured live video stream run next bottleneck problem. depends on trying achieve. want recognize human faces, shapes, barcodes etc... whatever requirement is, java implementation may slow , need resort writing c code using ndk (out of experience different handsets gain way more speed when comes image processing). , that's next topic need cover. need make familiar image processing. first of all: create specification. need know need ar app.
some modern ar apps resort live streaming captured video data server has more processing power available shape / image recognition.
you can read this master's thesis topic more information.
so bottom line ar apps can become ambitious projects involve huge range of different technologies , disciplines.
Comments
Post a Comment