314 reputation
115
bio website
location Italy
age 25
visits member for 8 months
seen May 20 at 12:21
stats profile views 10

Feb
19
awarded  Fanatic
Dec
24
comment To stop Spite animation scrolling along the background in openGL ES
Then I don't know where the problem is, sorry :(
Dec
23
comment To stop Spite animation scrolling along the background in openGL ES
ok, but adding those 3 lines change somethings or the problem is still there?
Dec
22
answered To stop Spite animation scrolling along the background in openGL ES
Nov
16
revised sprite animation in openGL
edited body
Nov
2
comment Passing elapsed time to the update function from the game loop
@Marton thank you, I didn't know that. I've deleted my comment.
Oct
31
awarded  Critic
Oct
22
awarded  Enthusiast
Oct
15
answered Sprite Animation in Android with OpenGL ES
Oct
15
comment Sprite Animation in Android with OpenGL ES
You can find the answer here: gamedev.stackexchange.com/questions/37510/…
Oct
3
revised Rotate triangle so that its tip points in the direction of the point on the screen that we last touched
added 12 characters in body
Oct
3
comment Rotate triangle so that its tip points in the direction of the point on the screen that we last touched
it is the same result as before or a different one?
Oct
3
comment Rotate triangle so that its tip points in the direction of the point on the screen that we last touched
Your problem is normal because you are still using touchPos.x = (2*event.getX())/getWidth() -1.0f; but as I've said before you should write touchPos.x = (2*event.getX())/getWidth() -1.0f -mx; and -my in touchPos.y
Oct
2
comment Rotate triangle so that its tip points in the direction of the point on the screen that we last touched
Can you update the SurfaceView code?
Oct
2
comment Rotate triangle so that its tip points in the direction of the point on the screen that we last touched
well, think about it. event.getX() goes from 0 to the value of getWidth() so event.getX()/getWidth() goes from 0 to 1. These is a 2* so the range is from 0 to 2 but your coordinates goes from -1 to 1 so subtract 1 and that's all. By the way, I was assuming that the center of the screen is (0,0)
Oct
1
comment Rotate triangle so that its tip points in the direction of the point on the screen that we last touched
No, scale as in touchPos.x = (2*event.getX())/getWidth() -1.f;
Oct
1
comment Rotate triangle so that its tip points in the direction of the point on the screen that we last touched
Yes it is the same use mx,my instead of rx,ry. I've supposed that your opengl screen coordinates goes from the top-left corner (-1,1) to the bottom-right corner (1,-1) If you are using different screen coordinates just scale event.getX() and event.getY() in according to them.
Oct
1
comment Is it possible to emulate a MovieTexture with dynamically loaded images?
How long is the video? Framerate?
Oct
1
comment Rotate triangle so that its tip points in the direction of the point on the screen that we last touched
ok, assuming that (rx,ry) is the center of rotation you need to do touchPos.x-=rx; touchPos.y-=ry;
Sep
29
comment Sprite animation in openGL - Some frames are being skipped
I don't mind, I've asked you just to know if it work or not. I'm curious ;)