Zooming and swiping with OpenGL ES

Started by
16 comments, last by Jekahy 10 years, 7 months ago
No, i want to translate the image to some point, zoom it and then translate back :)
Advertisement
like this ?

glTranslatef(target.x*scale, target.y*scale * aspectRatio, 0);
glScalef(scale, scale * aspectRatio, 0);
glTranslatef(-target.x, -target.y, 0);
I`ll check this now.

P.S. Sorry for late response, I was on vacation
Nope, this does not work properly either :(
ah ok i guess it's like this.
You move scale - it works
you move a second time and the image jumps correct ?
could you write down a sequence of actions you want to do ?

for example moveto (1,0) scaleto (1.5,1.5) moveto(-1,0) scaleto(1,1)
btw if you have icq message me and i'll add you
You move scale - it works
you move a second time and the image jumps correct ?[/quote]
I don`t move scale - it works :)
I move scale - it jumps back before zoom

could you write down a sequence of actions you want to do ?[/quote]
swipe, pinch zoom :)
this corresponds to: moveby(1, 0), scaleby(delta, delta)

btw if you have icq message me and i'll add you[/quote]
I can create a new ICQ account if you have no jabber or skype :)
I have skype at home so PN me your skype name.
Maybe we could chat later the day.

Hi! I'm having almost the same issue with zooming and scrolling! Can you post your solution?

This topic is closed to new replies.

Advertisement