Profile

Cover photo
252 followers|94,784 views
AboutPostsPhotosVideos

Stream

 
Inching forward with ships 2. I might again spend too much time "testing" The new land water system works perfectly. Here I am touring the canals of Amsterdam in the Netherlands in a canal cruise boat. This ship physics for this vessel are totally different from a river barge or cruise ship. This boat doesn't have a bow thruster but it is fairly lightweight so it responds to the controls much quicker.

It needs to be cause you will steer the boat through the intricate network of canals in Amsterdam. The detailed intricate land water data ensures that land / water detection is immaculate.

I am so keen to release this ship simulator. It will blow your mind but it needs to be polished and perfect.
1
1
Paul van Dinther's profile photo
Add a comment...

Planetinaction.com

Shared publicly  - 
 
A complete rewrite of the landwater system was required as Cloudmade decided to ditch their small users. I relied on their land/water image tiles for land collision in Ships.
Weeks of hard work wasted but one learns from that. Check out my post about cloud based software.

(https://plus.google.com/113818152636943780303/posts/QZGzfyx3MfE)

I was already thinking that text representation of area's might as well be vector based but it takes a lot of CPU power to test to see if a point is inside a complex polygon. If only it were possible to produce map tiles that had selfcontained polygons. Well, Michal Migurski was onto it well before me and already produced an online data source hosted on openstreetmap providing exactly the data in GEOJSON format.

The new vector based system is faster, just as accurate and uses less bandwidth. It is also comforting that the entire server solution is opensource so if needed I can build my own server.

In order to make the data flow as fast as possible I wrote a localStorage manager. This javascript based library makes use of memory, HTML5 local storage and an intermediate server to cache tile data. This means that one user will only request a specific data tile once for each browser/computer.

My planetinaction.com server will serve the tiles from it's own MySQL database if possible and only if it is not there will it request the time from the openstreetmap server. The image shows how things go down. This solution should be super scalable while over time the data frequently used data will be cached in my server in MySQL

localStorage has a storage limit so my storage manager maintains a timestamp everytime a piece of data is requested. If the localstorage is full (There is only 5MB to play with) the oldest data will be deleted to make room for new data.

With this out of the way I press on to get Ships2 finished. My graphics designer is already giving it all a once over.
5
TANG HUANG's profile photo
 
Great
Add a comment...

Planetinaction.com

Shared publicly  - 
 
Calling for experienced ship crews.

Experienced skippers rank of captain down to third officer familiar with Azipod driven ships the size of a river barge and up.

The new Ship2 simulator is nearing completion and I am keen for experienced crews to provide feedback on the new ship physics.

Currently I have a large single azipod river barge with bow thruster to try out and the massive "Oasis of the seas" cruise ship with three azipods and bow thrusters.

Apply here in the comments below: listing your rank and experience and I will get back to you.
1
1
Paul van Dinther's profile photo
Add a comment...

Planetinaction.com

Shared publicly  - 
 
A look into the water/land detection kitchen. For the new Ships2. A highspeed land water detection is required for the entire world and online services are simply not fast enough so I rolled my own.

At the top left you see a map tile showing water in blue and land in red. This dataset is generated by cloudmade and cached on my server (As per TOS ) Unfortunately, soon this service is no longer available for free.

Anyway, with 65536 tiles in cache at zoom level 8 the low resolution tile is quickly picked up and it takes ages to sail out of it. A 3 x 3 pixel area around the ship location is sampled. You can see the ship position by the single green rectangle. If a hint of red is detected we proceed to pull the high resolution image tiles at zoom level 12.

At the bottom left you can see the ship with all it's defined collision points displayed. This enables a land/water accuracy close to 0.5 meters for any location in the world (Depending on data quality of course)

Since tiles are cached on the server, it is possible to improve individual tiles where desired. At some point I may build in an editor so you can paint your own tiles simply by outlining water on the Google Map using your mouse.

Obviously, when you play the game the red/blue images are invisible.
3
1
Planetinaction.com's profile photo
Add a comment...

Planetinaction.com

Shared publicly  - 
 
Cool! Now there are even postcards available at Ajtte museum promoting the A-tour exhibit called "Virtual 3D Laponia"
4
Add a comment...

Planetinaction.com

Shared publicly  - 
 
It was always the plan to put some artwork on the outside of the A-Tour exhibit but I was pleasantly surprised when Ajtte Museum in Jokkmokk, Sweden showed what they done with it. It looks fantastic!

http://youtu.be/AJowd7PTEBs
6
Jason Holt's profile photoPlanetinaction.com's profile photo
3 comments
 
Planetarium shows use video for the same reasons. It has a lot of advantages.
Add a comment...
In their circles
1 person
Have them in circles
252 people
 
I happen to have a massive collection of historic ship location data and I could not help myself and quickly plotted each point in 10% opacity on the NASA Blue marble image.

Kinda pretty don't you think? Cool to see where ships travel as they cross the Tasman Sea between New Zealand and Australia.

OK, I better get back to work now.
2
1
S. Ricklefs's profile photo
Add a comment...
 
High speed Land Water detection service for GIS users.

As a spin off for the Ships2 program I end up with some exciting new technology. I have a need to test a latitude and longitude quickly to see if it is in water or land. In fact, I want to do this test at least 30 times per second for 7 points. That is 210 tests per second to see if a point is in water or land.

Existing water/land services could not even hope to provide this data at such speed so I had to invent my own and it works really well.

So now I am turning this land water service into a web based service and maybe someone else will want to tap into this.

As a service, the data needs to cross between domains. It also needs to be transmitted fast. So I designed an encoding algorithm that can represented the land water data in text using a highly compressible method. We are talking already compressed map tiles in PNG format 8337 Bytes in size that go over the wire as text with a size of no more then 1921 Bytes. But these bytes can be compressed further in the HTTP protocol. Data size depends on tile content but high zoom level tiles 16 and up compress even further. The compression software figures out how the tile is best compressed and stores the compression method in the tile data.

Since the tile data is now text it can passed between domains via ajax calls without a problem and without the typical Cross Domain security errors.

The image below shows a base 87 encoded representation of the data after my algorithm had a go at describing the image content. However, encoding methods vary depending on tile content.

This technology could easily be expanded to provide extremely fast elevation or depth data for any point on the globe.

Just geeking out here but this is cool stuff.
1
Christian Southworth's profile photo
 
You're alive!!!!!
Add a comment...

Planetinaction.com

Shared publicly  - 
 
Anyone keen to stay up to date with the Geo based applications I write. Make your way to https://plus.google.com/u/0/+Planetinaction

To get the latest new first hand.
 
A look into the water/land detection kitchen. For the new Ships2. A highspeed land water detection is required for the entire world and online services are simply not fast enough so I rolled my own.

At the top left you see a map tile showing water in blue and land in red. This dataset is generated by cloudmade and cached on my server (As per TOS ) Unfortunately, soon this service is no longer available for free.

Anyway, with 65536 tiles in cache at zoom level 8 the low resolution tile is quickly picked up and it takes ages to sail out of it. A 3 x 3 pixel area around the ship location is sampled. You can see the ship position by the single green rectangle. If a hint of red is detected we proceed to pull the high resolution image tiles at zoom level 12.

At the bottom left you can see the ship with all it's defined collision points displayed. This enables a land/water accuracy close to 0.5 meters for any location in the world (Depending on data quality of course)

Since tiles are cached on the server, it is possible to improve individual tiles where desired. At some point I may build in an editor so you can paint your own tiles simply by outlining water on the Google Map using your mouse.

Obviously, when you play the game the red/blue images are invisible.
1
John Nolan's profile photo
 
Your link above returns one to this page.
Add a comment...

Planetinaction.com

Shared publicly  - 
 
For a project I am working on I need to process millions of points. However, it is too slow to get all these points to the browser and that is why I need a path optimizing algorithm.

The idea is to remove less important points and be left with an approximation of the path closely resembling the original but with a minimum of points.

While testing the existing methods I found none that I was satisfied with so I sat down and thought it all through and came up with a solution that I am rather happy with.

I looked at the problem slightly differently. Rather then looking at this as a geometry problem, I looked the at the path as the result of a physics equation. By applying physics behavior of the objects that produced the path, intelligent predictions can be made that help to place the points where they are most important.

The result is my "DPD Path Optimizer" algorithm that needs three times less points then a Douglas Peucker algorithm while it follows the original path more closely.

This was a great day in the office  :-)
1
1
Paul van Dinther's profile photoPlanetinaction.com's profile photoAndrew Leahy's profile photo
2 comments
 
Ha ha, Dinther Product Design. It is the name of my registered company.
Add a comment...
People
In their circles
1 person
Have them in circles
252 people
Contact Information
Contact info
Phone
64 9 8375251
Story
Tagline
Google earth related applications and games. The planet is your playground.
Introduction
Welcome to our PlanetInAction.com news page where the world is your playground. Google Earth is a highly detailed 3D representation of our entire planet. Rather than just looking at it, why not play on it!

PlanetInAction.com brings you top quality ideas, applications and concepts that will let you experience your planet in a whole new way.

And the best thing. Everything is free!