World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 02-13-2008, 10:36 AM   #1
adrianboimvaser
Member
 
adrianboimvaser's Avatar
 
Join Date: Dec 2007
Location: Paraná, Entre Ríos, Argentina
Posts: 68
adrianboimvaser is on a distinguished road
Default PanToIterator Pogo Jumping

I would like applying a FlyToOrbitViewStateIterator whitout to camera going up first if the zoom level is lower and without the camera going down first if the zoomlevel is higher. I want to avoid that "jumping" effect.

We have this method in Class FlyToOrbitViewStateIterator:

public static FlyToOrbitViewStateIterator createPanToIterator(OrbitView orbitView,
Globe globe,
LatLon lookAtLatLon,
Angle heading,
Angle pitch,
double zoom)

Right?

Is there a way to get the zoom value of the current view?

I could use ScheduledOrbitViewStateIterator.createLa tLonIterator if the current value is the same to avoid the camera going up and down.

That would only work if zoom is the same, but is better than nothing at all...
adrianboimvaser is offline   Reply With Quote
Old 02-13-2008, 11:00 AM   #2
adrianboimvaser
Member
 
adrianboimvaser's Avatar
 
Join Date: Dec 2007
Location: Paraná, Entre Ríos, Argentina
Posts: 68
adrianboimvaser is on a distinguished road
Default

I reply myself

(OrbitView)wwd.getView()).getZoom()

Anyway, looks that the jumping behaviour only takes place when the current zoom is the same as the zoom i pass to createPanToIterator.

My idea is:

if zoom is the same
use FlyToOrbitViewStateIterator.createPanToI terator
else
use ScheduledOrbitViewStateIterator.createLa tLonIterator

Thing is, zoom is never the same, it never gets the value specified in last FlyToOrbitViewStateIterator.createPanToI terator. Allways a bit more or less.

Also... is there a way to speed up the iteration?
adrianboimvaser is offline   Reply With Quote
Old 02-13-2008, 11:08 AM   #3
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,623
nlneilson is on a distinguished road
Default

You should be able to set the altitude rather than the zoom.
nlneilson is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jumping Camera mchristyuk Development Help 1 07-25-2007 04:32 PM
Jumping mouse cursor Unregistered Technical Support 7 04-13-2007 07:11 PM
Placename jumping around JunkSiu Bug Reports 1 03-26-2007 10:33 PM


All times are GMT +1. The time now is 07:32 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.