Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
There is an app named Funny Face Effects on play store.
I am trying to achieve the effect in which when a user moves the finger on image, pixels under the finger in certain radius shifts in that direction. It feels like moving a cloth with a finger or moving some thick paste with the finger. I could not find a proper name but I think it is called smudge.
After searching and trying I found that I can achieve this with GPUImage library.This library uses OpenGL fragment shader to apply some effect on image. I tried this but to get the continuous effect I have to save each finger position(each point on line) and apply filter for each point which is not feasible and it stuck after drawing more lines.
How to achieve this effect with OpenGL-ES?
It will be good if code is provided but just the idea of implementation will also work. Thank you.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am working on a project, in which i need to detect the facial features of someone,in real time, using the camera and be able to interact with those. For example, with a tap on the screen, the eye's area should become black.
I have done a lot of searching but nothing seems to fit.
I am either not searching in the right places either i don't understand fully the potential of what i find by searching.
I would really appreciate it if someone could point me in the right direction.
You need to use Google Mobile Vision Library. It is part of Google Play Services. It can detect:
left and right eye
left and right ear
left and right ear tip
base of the nose
left and right cheek
left and right corner of the mouth
base of the mouth
For further information, check out these links:
developers.google.com
JournalDev
Note:-
JournalDev site states:
Add the following dependency inside the build.gradle file of your application.
compile 'com.google.android.gms:play-services-vision:11.0.4'
Instead of compile you need to use implementation keyword here:
implementation 'com.google.android.gms:play-services-vision:11.0.4'
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
In the game i need to the user to draw a figure, for example a rectangle, and the game has to recognize the figure. How can i do this?
Thanks!
This sounds like you would want to use a Neural Network. If you don't know what that is: It is basically an Artificial Brain which can do simple tasks like classifying (recognizing) shapes. It's really easy to do with tensorflow, since it's easily integratable into Android: https://www.tensorflow.org/mobile/android_build
Then, you would train your classifier to differenciate between Circle, Rectangle, Triangle and more. For this, you should draw some rectangles and triangles in your app, save them as images and label them yourself with what is in them. Then you can use those images with TensorFlow to train your AI to recognize images the user draws.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Any Clash of Clans players here?
Please excuse me if I am over the board here
Can you tell me which android layout [Is it frameLayout?] is used in Clash of Clans game. We can scroll the screen horizontal as well as vertical. We can pinch magnify the screen as well.
Any nudge to the right article or relevant must reads is appreciated as well.
![clash of clans home village][1]
This is actually a layout being rendered by an engine, as answered by #RobCo in the comments. What you might want to do is using a game engine, and there are pretty good ones out there:
https://unity3d.com/
Standard XML layouts in Android are mostly for textViews, images and buttons. Not rendering 3D. You can also try to implement some OpenGL in your app.
https://developer.android.com/guide/topics/graphics/opengl.html
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am new at Android game development. I want to know how can i create and Animate the game characters i have in mind. Is there a tool out there that can help me get started with the drawing or i have to draw frame-by-frame.
I am targeting simple 2D games.
What you'll need is a sprite sheet. A series of images on the same bitmap laid out in a grid. For example you would have 8 different sprites of the same character, 1 standing still., 1 left foot forward, 1 right foot forward and jumping and again facing the opposite direction.
When you draw the sprite set the coordinates to be drawn and on button presses change the variables controlling the coordinates.
A good tutorial is here http://warriormill.com/2009/10/adroid-game-development-part-1-gameloop-sprites/
and a sprite sheet maker can be found here http://www.codeandweb.com/sprite-sheet-maker
Hope this helps!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to make rolling cube like dice that reacts on accelerometer. So accelerometer gives parameters for cube moving. I think that small physic should be used here. My question is what formulas, techniques should I use to accomplish this without any physics engine.
You will need probably to use OpenGL for that. There a good physics tutorial for OGL here
Specifically for dice, take a look at this nokia demo. It's written in cpp (source here)
On the physics side, you can take a look at this site.
Anyhow, I do not think you need real physics for the app, but just an approximation:
I would start getting a velocity that depends on the accelerometer (plus or minus, let's say, 20%) and random angular speeds for the dice.
Then, find the trajectory for each and when touching a border.
Bounce them to one direction or another depending on the rotation at that particular moment.
Change the sign of the angular speed if the dice bounce back.
Reduce the speed about 50% each bounce, until a threshold.
Below that threshold, leave them in the floor and stop movement.