Solved

implimenting zoom and Pan functionality in openGl ES

Posted on 2009-03-29
5
1,332 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

This article was published in 2011 before the proliferation of "free" navigation apps for the iPhone. I have added some edits at the end of this article with some more recent information that applies to newer models of the iPhone. I have used the…
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.
Learn how to download your full Prezi presentation for offline presenting. Prezi doesn’t have to be viewed and shared in a web browser, even with a free account you can download your full presentation to share with others. Be sure to download any vi…

810 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