324 reputation
137
bio website fantasyvengeance.com
location Italy
age 26
visits member for 1 year, 11 months
seen 13 hours ago

Java and Android developer with interests in 3D stuff and game development.

Linux user since 2003, self taught in electronic, former musician.

Graduated in "Computer Science" at the University of Verona (Italy) with a thesis involving ARM boards, real time OSs and custom graphic libraries.

Three time winner at the National Turing Machine Contest of the University of Pisa (Italy) back in high school.


Sep
23
awarded  Yearling
Jun
24
awarded  Autobiographer
Jun
19
awarded  Caucus
Jun
19
awarded  Constituent
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;