Solved

implimenting zoom and Pan functionality in openGl ES

Posted on 2009-03-29
5
1,331 Views
Last Modified: 2013-12-06
I want to implement Zooming and Panning functionality into my application using openGL ES (as I am working in Pocket PC 2003 in VS 2005).I am using:

gluPerspectivef(FoVy, width/height, zNear, zFar);
gluLookAtf(eyex, eyey, eyez, centerx, centery, centerz, upx, upy,upz);

....to implement Zooming and panning but it is giving Linking error ( unresolved externals).
Can anyone suggest me any other wayout that will work in openGL ES.
0
Comment
Question by:Suchismita_b
  • 3
  • 2
5 Comments
 
LVL 20

Expert Comment

by:ikework
ID: 24016391
can you show the errors?
0
 

Author Comment

by:Suchismita_b
ID: 24017026
the errors are resolved .but whenever I am using glOrtho or glPerspectivef , result is same . the map image is not at all zooming . I tried several times to tune the parameters to render the image but cant able to solve it . Can you plz sugest me some reference that can clearly states the implementation of zooming functionality in openGL ?
0
 
LVL 20

Accepted Solution

by:
ikework earned 500 total points
ID: 24017105
well there are different ways, how you can have a *zooming* effect


for perspective view:

  just move the camera into the scene to zoom in, and to zoom out, move it out of the scene ..

for ortho-view:

its not that simple, you have to modify the first 4 params of glOrtho


references:

http://www.opengl.org/resources/faq/technical/viewing.htm
http://www.gamedev.net/community/forums/topic.asp?topic_id=390115


can you show us the code?

ike
0
 

Author Comment

by:Suchismita_b
ID: 24046645
thank you . the refernces helped m a lot . I am able to implment panning and zooming functionality
0
 
LVL 20

Expert Comment

by:ikework
ID: 24047761
great to hear that.. have fun and good luck :)

ike
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
The problem with the movement of the serpent (snake game) 1 782
How to make dynamic image files 3 82
What is a Pedal Motor? 2 66
How to check Ground Connecton ? 6 41
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
In this second Micro Tutorial in the series,  viewers will learn more basic shortcuts and functions of Illustrator. In this tutorial you will learn about the eyedropper tool, zoom , ellipses and more.
Add visuals to your Prezi to keep your audience engaged. Learn how to embed images, edit them, and more in this video micro tutorial. Select "Insert" from the top menu in your Prezi editor: Select "Image": A toolbar will pop in from the right …

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now