I want to make a small map like the one in the picture with buttons to go to a different screen. How to do something similar but in 2D?
I'd recommend using some kind 3D viewers, with your custom 3D file, taking advantage of android openGL. This post may be helpful
Related
So im currently using a map API to make a spacial rendering of squares representing an asset. Im wondering if i dont have a more efficient sollution because all the features on the map consumes performance. I need to render a lot of "squares" and it gets sometimes slow, what is the best aproach here ?
Can i use a game library to create like models and give them some information ? This way i only need to render some space in a "map" or space in my app.
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.
I'm trying to make a gifs scene. I have scene about a girl moving (Walking, driving a car , running and sleeping). it is a fitness app and need to add this scene!. i already have the GIFs pictures but how to combined them together?
I want to create something familiar like this:
and this one
Actually You should not use Heavy GIF in App, it increase the size of App. You have to use Multiple Images and Use this Library to save your Code.
https://github.com/Q42/AndroidScrollingImageView
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 have a couple of images on available to my program. They are parts of jigsaw puzzle (with rectangular pieces though). I wanted the look and feel similar to that of google maps in android.
One way I could implement was to create a set of ImageViews and keep recycling them, as the user pans the image in any direction. However, to me that appears like a brute force method. Is there any alternative approach to implement such kind of application?
Or rather how is google maps implemented? A set of Imageviews ?
I think for your case the OpenGL route might be the best choice. You can get started with the GLSurfaceView.
Using set of images and recycling them is a valid method. But you can enhance it by adding some redundant ones to keep close to view area images preloaded.