[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

implimenting zoom and Pan functionality in openGl ES

Posted on 2009-03-29
5
Medium Priority
?
1,350 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 1500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this Micro Tutorial viewers will learn the basic shortcuts and functions in InDesign.
In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.
Suggested Courses

873 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