I'd like to develop a simple game for children to let them learn their country in detail by playing a 2D game on the map of the country. Imagining to determine a start point somewhere on the map for example said "New York". The player will be asked some questions about this city, if the answers are correct, the small car staying in the boundaries of New York will move forward to Pennsylvania and so on. When the car moves to each city, that one should be coloured differently. I looked for "svg" files, some game development tools, Imagemap etc but nothing really came to me suitable for my purpose. My question may be unprofessional and im really sorry for that but hoping not to get minus points to be able to improve myself in programming by your help and really hoping for an advice.
Thank you very much.
At the moment, to make controlled (ie triggered by you) animations of SVGs on Android, you would probably need to use a WebView. The WebView would be displaying an SVG that you could control via javascript.
You should have no trouble finding tutorials on how to use a WebView.
As for the animation part, questions like the following would be a good starting point.
Create custom symbol on polyline using SVG path
animate image on SVG Path
Your Android app can invoke Javascript functions on your page using
webView.evaluateJavascript("runAnimation(1)");
Or you could have separate SVGs for each animation. Then load the appropriate one for the journey you want to animate.
An alternative to SVG animations if you have Adobe After Effects available, is to create animations with that. Then use AirBnB's Lottie library to play them.
Related
I am working on a indoor navigation project with Googles Project Tango tablet (Android). I can scan a building with it an created a internal graph representation of the floorplan (map). I want to convert my graph either to the IndoorOSM or the Indoor GML format. This will be a bit complicated.
But to check if the conversion is successfull, I am looking for a viewer for one of this formats, but didn't found anything working. Can anyone help me or recommend me another format? I am a beginner in XML, GIS, etc. I posted this question also on help.openstreetmap.org.
I'm developing a viewer for IndoorGML format and It is based on WebGL.
This tool is just simple version now, but I think you may use it well on your purpose.
In this time we are focusing on viewing indoor map with 3D Space which has solid geometry, so importing indoor map with 2D Space which has polygon geometry is not supported yet.
But we are supposed to add it very soon.
Following is the URL.
https://github.com/STEMLab/IndoorGML-Viewer
If you have any question, please don't hesitate.
Regards,
Hyung-Gyu Ryoo.
This may be a duplicate question, but none of the questions I found were exactly what I had in mind.
A friend and I want to create an App that lets the user play around with 3D objects on the screen. My friend is creating the objects and the animations in Blender or Maya. Therefore, the possible animations will be preset (not being programmatically animated). I have no experience in 3D programming and I naively suggested that he render the animations in Blender and send me all the frames. I would then play the appropriate animation by quickly running through all the frames. Each animation would leave the object in its original position so that it would be ready for the next animation.
Now that I've been thinking about it, that's a lot of images that I have to store in order to make this work. For every object, I would need to have all its frames for all of its animations, which maybe overkill.
Is there another way to play animations in an Android app? I considered just saving the animations as videos and playing them, but that would look horrible for our purpose.
I'd suggest min3D
Take a look at the animated troll example they have.
There are a lot of 3D libraries for Android. I would recommend AndEngine. Alternatively, you can just use the native OpenGL compatibility. Instead, ask him to send you the actual 3D files. Then you can use a library to render them.
EDIT: I just found this link. It'll probably help you. In my opinion, you should go through it and learn the whole package instead of just glancing a bit for this one little project; it'll help in the future.
Yes, there is a way you can manupulate the models you created in Blender. here is an example which uses Open GL in android to animate a 3D model created in Blender Check This Video Out. However it animates the object programatically, frame animation is indeed not worth if you wanna create animations that are long as you will run out of memory quick.
I'm trying to create an app that will tell a person what zone of a building they are in. I'm using bluetooth dongles to get an approximate location, as oppose to exact location, and show the user on a map whereabouts they are. I would like it just to highlight the zone they are in, instead of a specific location.
I can get my hands on a floor plan of the building I am using so I'm just wondering if there is an easy way to incorporate this into some kind of map with an existing API? I found a question here which states that they just use an overlay on the image to show a marker of where the person is. Would this be a bit easier?
This is for my final year project so I would like to have some sort of flashy map if possible but I'm not sure where to start looking or if it's possible.
I also found this question which gives a great variety of apps that implement and indoor map, but I don't think I can just take this small piece of functionality that I need out of them as they seem to be complete apps.
Any information would be a great help. Anyone with experience in this sort of thing please share your knowledge :)
It doesn't sound like it'd be too complicated to just write your own custom view for this. Draw the map image to the canvas. Then for the zone the user is in, draw another 'highlight' graphic on top of the map that you just drew.
If you're not sure how to do this, there's a rather basic guide on how to create your own drawable widgets which should point you in the right direction. There are plenty of examples on drawing images to the canvas, eg this one.
I'm looking for a 'basic' AR SDK that allows me to draw images and 3D shapes around the user (no matter where he is). It would be even better if the SDK includes a simple way to detect interaction with the shapes (something like onClick).
I made a project from scratch on Android but there's still a lot of work to do and I'll need to do the same on iOS after... So that's why I'm looking for an SDK or a similar project (no matter what platform).
I tested Metaio but it's quite expensive and maybe overkill for my purpose because it uses LLA coordinates.
I tested DroidAR on Android but it's only for Android and it looks heavy too (don't need the GPS).
How about Qualcomm's Vuforia? I was able to quickly get a sample project running on it.
EDIT Looks like I was wrong about what it could do. According to this (which is slightly dated, so who knows) Metaio might be your only choice.
i really don't sure what you really want to do ..but if you simply show images or 3d models on camera without any detection you can achieve this very easily i am explaining for Android and you can extend it to ios on same logic.
first approach:
you have to use custom camera of Android in your app,then use any game engine as per your need..i will suggest Jpct-ae or Rajawali
they are very simple to integrate and can be used for 2d images and 3d models.
this tutorial will explains a lot
keep the gl-surafce transparent and you can have model floating in space ...
second approach :
to add some more effect to your AR app you can use sensor values to move model in 3d space as per movement of device..it gives a cool effect.
use first approach and additionally collect sensor values and apply that matrix to gl camera of your game engine..for sensor values follow here
good tutorial here..
i hope this may help you..i done these a long time ago but try to help if you want..
I am developing an android app where I have two images named earth and sun. I want to rotate the earth around the sun depending upon the user's touch event. That means the user should rotate the earth image. How would I do this?
Find some resources (books, online tutorials, etc.) that will teach you about graphics programming on Android.
Take your first stab at writing the code for this project yourself.
If you get stuck, post a question that displays the code you have written, and describe the issue you are having with that code.