I'm new to android and I need to do a project like this : I have 22 images that represent a person which is rotating. When the user touch the right side of an other image the image is changing (the person is rotating to right). The same thing is for left side.
My question is: I must use OpenGL? I made some example with openGL but I don't see if for my project it is necessary. I was thinking that maybe it is enough to change the background image at every touch.
What do you guide me to do?
Thanks in advance
I know this isn't exactly the same thing but this tutorial by the excellent guys at Sony Ericsson show how to make a nice looking 3D list without OpenGL - http://developer.sonyericsson.com/wp/2010/05/20/android-tutorial-making-your-own-3d-list-part-1/
Maybe you could use some of the techniques in this tutorial to achieve what you want?
The OpenGL may be useful to do your project
you can see the Example Code project here code.google.com
And The Blog url that has explained nicely to work with OpenGL has many part of the Tutorial
May be looking at this you can get idea how to go ahead.
Related
I have a particular problem about image recognition on Android.
I am looking for some library able to recognize several objects from a photo. For instance, given a photo snapped by the user how can I count how many red circles and yellow triangles there are? Those shapes are just an example, since I want to recognize images which are pretty simple.
I have seen that there exists a good framework called Vuforia, which is designed for augmented reality. Do you think it is right for me? I am not an expert, so I ask you to help me.
check OpenCV for that, open source and works great on android
or
OpenCv
You see the icons are in a revolving manner. How to achieve this on Android? Is it through OpenGL or can there be some other easier implementation.. This has been bugging me from months together and I just need a pointer or a breakthrough code. A tutorial would be of awesome help...Please help?
There is a project 3D Carousel, you can get it and Since the screenshot seems to be a customized Home Screen, so you have to provide your own customized Home Screen,
Google released a carousel example with source code as part of the "Designing Android UIs for Phones and Tablets" session at Google I/O 2011. You get the source here. It uses Renderscript to create the 3D effect.
I want to do a task which is very similar to "Android Drawing Pattern to Unlock", where in there will be circular images in a GridView and straight lines connecting the images will be drawn dynamically based on user touch. Please suggest me preferably with code snippets.TIA.
Actully, you didn't write your code into the question .so I think you are developing Android Application with COCOS2D first time.
Here is some awesome example links that may Help you to learn this.
1)COCOS2D Basic Game
2)COCOS2D MUltiplatform
If you want help regarding code please post your code here.
I have search a lot for page flip effect in android. I found some links. An example for flip without using OpenGL.
But I want to implement a 3D real page flip effect for android. same as This Or the effect you have seen in IReader for android.
According to my search OpenGL must be use for this. I also search some framework that provide the alternative of OpenGL. But at the end I found nothing.
So I am just want to start OpenGL for this. But I have never ever use OpenGL.
Can any one help me for page flip? some useful link, tutorials, Starting up for OpenGL in android etc...
I am using this code. Its really really perfect for any one to understand and use. Thanks a lot to Harism
GitHub Link for Page Curl Animation in android With OpenGL
here is the one i tried today itself and works fine. code.google.com
I'm trying to figure out the best way to make an image rotate along
with a user's finger dragging it left or right. I want to try and
match the rate a user's finger is moving with the rate the image is
rotating.
I've got the basic setup for my application going, with the menus and
whatnot I want to have, and that's all running great on the emulator,
I'm just not sure how to approach this part.
I can code all the logic I need for my app, I'm just not doing to well
designing the UI, I have a picture in mind, I've actually made a
couple mock images of it, I just can't figure out how to get it going
in Android, and any help would be appreciated.
I'd suggest you to look at first at:
http://developer.android.com/guide/topics/ui/ui-events.html
I am not really sure how to solve the problem with the real-life rotation but it seems OpenGL might help you.
http://developer.android.com/guide/topics/graphics/opengl.html
or maybe a solution through custom animations is possible?
http://developer.android.com/guide/topics/graphics/animation.html ( => http://developer.android.com/guide/topics/graphics/prop-animation.html )
Tell us, how you solved it!