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 04-13-2012, 10:45 PM   #1
hannah
Junior Member
 
Join Date: Apr 2012
Posts: 2
hannah is on a distinguished road
Default RasterControlPointList point ordering

Hello,

I am trying to create a warped rectangle similar to the RubberSheetImage example, using ImageUtil.warpImageWithControlPoints. I have four control points (the geographic location of the corners of my raster), and I am currently adding them to the RasterControlPointList in the order (lower left, lower right, upper right, upper left). I noticed that some of my SurfaceImages look rotated the wrong way (and/or flipped, I can't really tell yet). If I change the order I add control points, they are rotated differently (some correct, some not). It seems odd that it should matter since when a ControlPoint is created, you are giving it the raster (x,y) at the same time as the world (x,y), so why would it put the raster (x,y) at the wrong world (x,y)? Is it using a different raster coordinate system than the upper left being (0,0)? And is there a particular order that control points need to be added to the list?

Thanks for the help,

Hannah
hannah 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
SphereAirspace center point nigel25840 Development Help 3 03-29-2010 08:22 PM
Placing a single MeasureTool-style control point? QA_2 Development Help 6 12-18-2009 02:17 PM
[Solved] AirspaceBuilder assistance agreen53 Development Help 10 06-10-2009 03:06 PM
Ez ?: If I call UserFacingIcon.setPosition should my screen update? wherisat Development Help 17 12-01-2008 08:57 PM
TextureTile cache initialisation pjt33 Development Help 3 11-18-2008 10:38 PM


All times are GMT +1. The time now is 02:01 PM.


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