World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Applications

Applications Discussion of applications that use WWJ

Reply
 
Thread Tools Display Modes
Old 12-09-2007, 02:40 AM   #1
Sharky
Junior Member
 
Sharky's Avatar
 
Join Date: Oct 2007
Posts: 25
Default MS Virtual Earth

Greetings,

Please find attached an eclipse project of an implemenation of MS Virtual Earth Quad Key tile server for WWJ.

Bonus! Google Earth too - however I don't think google will be too happy about this

You can run the test class test.DemoBasic to look at VE/GE. The min zoom at which tiles are rendered is 6.

Projection mismatch?

MSVE uses a mercator projection which doesn't match wwj's. To overcome this problem, the quadkey tile for the eye point is calculated, then the lat/lon
box (sector) for the mecator tile is computed and finally the tile is rendered using wwj tile renderer.

In this manner WWJ will warp the mercator tile to fit the wwj ellipsoidal sector. This seems to work at high zoom levels (You can verify this by zooming and then comparing the images with the wwj urban area ortho, they match perfectly! - So do Google earth's).

Any comments are welcome.

So... What is missing? Meshes! A layer to access Google 3D warehouse and render COLLADA models.

I already have mesh classes & OBJ/3DS loaders but I can't make the model fit into WWJ geometry (Don't know how). Perhaps the WWJ gurus could assist. Please help!

Regards
Attached Files
File Type: zip VirtualEarth.zip (46.5 KB, 991 views)
Sharky is offline   Reply With Quote
Old 12-09-2007, 07:22 AM   #2
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Default

Mercator tiles can fit a sector and thus can go through WWJ surface tile renderer! Well done Vladimir.
I havent run it yet but i can tell you did quite a job by the source
You would just need to add a tile extent - which is a cylinder, and you would then be able to test for view frustum intersection, which is the key to handle larger sets of tiles when the view is pitched.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 12-09-2007, 05:32 PM   #3
amnesic
Junior Member
 
Join Date: Aug 2006
Posts: 6
Default

Quote:
Originally Posted by Sharky View Post
Greetings,
Bonus! Google Earth too - however I don't think google will be too happy about this
I don't know exactly how they detect it, but after too much request you will have a "Download failed: 403 Forbidden url" and message like this :
"We're sorry...... but your query looks similar to automated requests from a computer virus or spyware application. To protect our users, we can't process your request right now."
instead of the image tile

Quote:
Originally Posted by Sharky View Post
Any comments are welcome.
Congrats, well done ! I'm very impress by your code.

I detected some trouble with WWJ 0.4.1 + you patch sometimes :
http://myskitch.com/amnesic/skitched-20071209-172027/

But I will investigate more. (some tiles seems to not be downloaded well)

p.s. :
Mac OX 10.5.1
Java run-time version: 1.5.0_13
NASA World Wind Java Alpha 4.1 0.4.1
amnesic is offline   Reply With Quote
Old 12-09-2007, 08:02 PM   #4
bull
Cosmic Overlord
 
bull's Avatar
 
Join Date: Oct 2004
Location: United Kingdom
Posts: 2,362
Default

Nice, now we need someone to port it to .NET, the current plugin is pretty unstable.
__________________
Bull_[UK]

bull is offline   Reply With Quote
Old 12-09-2007, 09:26 PM   #5
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,464
Default

Quote:
Originally Posted by amnesic View Post
I don't know exactly how they detect it, but after too much request you will have a "Download failed: 403 Forbidden url" and message like this :
"We're sorry...... but your query looks similar to automated requests from a computer virus or spyware application. To protect our users, we can't process your request right now."
instead of the image tile
Apparently you can get your entire company's network banned from google also. Not that any WW devs would do such a thing of course.
withak is offline   Reply With Quote
Old 12-09-2007, 09:46 PM   #6
Sharky
Junior Member
 
Sharky's Avatar
 
Join Date: Oct 2007
Posts: 25
Default Ge tiles

Quote:
Originally Posted by withak View Post
Apparently you can get your entire company's network banned from google also. Not that any WW devs would do such a thing of course.
Looks like google checks the # of client accesses to their servers, too many and they'll block you, however after a while you get access back.

I don't think google will accept a wwj layer to ge. I did it for the hell of it.

We could build an abstract quad key layer to any tile server: Ask, Yahoo, Google, MSVE.

Regards,
Sharky is offline   Reply With Quote
Old 12-09-2007, 09:51 PM   #7
Sharky
Junior Member
 
Sharky's Avatar
 
Join Date: Oct 2007
Posts: 25
Default

Quote:
Originally Posted by patmurris View Post
Mercator tiles can fit a sector and thus can go through WWJ surface tile renderer! Well done Vladimir.
I havent run it yet but i can tell you did quite a job by the source
You would just need to add a tile extent - which is a cylinder, and you would then be able to test for view frustum intersection, which is the key to handle larger sets of tiles when the view is pitched.
Thanks,

I was wonderig why the tiles wouldn't render when tilting the globe. Any pointers/code on how to add this extent/frustum? I have no idea how to do that.

Cheers
Sharky is offline   Reply With Quote
Old 12-09-2007, 10:34 PM   #8
m_k
Bored Explorer
 
m_k's Avatar
 
Join Date: Nov 2004
Location: Warsaw, Poland
Posts: 1,737
Default

Quote:
Originally Posted by withak View Post
Apparently you can get your entire company's network banned from google also. Not that any WW devs would do such a thing of course.
Chickens :P
__________________
Hot stuff: FAQ, forum search, DirectX, .NET, Video Card Compatibility list
m_k is online now   Reply With Quote
Old 12-09-2007, 10:36 PM   #9
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Default

Quote:
Originally Posted by Sharky View Post
Any pointers/code on how to add this extent/frustum?
Start with TiledImageLayer - i think it has all the logic.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 12-10-2007, 12:10 AM   #10
Chade
Senior Member
 
Join Date: Apr 2006
Posts: 404
Default

Quote:
Originally Posted by withak View Post
Apparently you can get your entire company's network banned from google also. Not that any WW devs would do such a thing of course.
I don't know what you're talking about.

The issue is that GE want you to use their api to access the tiles, not access them directly...
__________________
Machine. Unexpectedly, I’d invented a time
- Alan Moore
Chade 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
Google Maps + MSN Virtual Earth = Flash Earth m_k Community Chat 6 02-19-2008 08:51 PM
Job posting - Mid-Level Programmer: 3D Geospatial Virtual Earth Technologies jrobb Community Chat 0 03-08-2007 05:16 PM
Virtual Earth Imagery in WW 1.4 nkrause WorldWind General 5 01-20-2007 11:23 PM
Virtual Earth 3D m_k Community Chat 9 11-14-2006 01:41 AM
Virtual Earth uninspiredname WorldWind General 1 06-23-2005 12:29 AM


All times are GMT +1. The time now is 04:43 PM.


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