Thursday, September 2, 2010

3D sounds with the Google Earth Plug-in

Paul over at PlanetInAction is at it again. The man that brought us Ships and Helicopters has a new toy for us to play with. This is more of tech demo than a game, but it's quite impressive.
He's simply calling it a 3D sound demo. Here is a brief video of it in action:




You can read the full write-up on his site, but here's the basics of it:
sound3D manages a collection of soundSource objects that have knowledge of the location they are at. A soundSource has a collection of channels. Each channel represents a sound file with associated falloff range. Outside this range the channel can not be heard.

Multiple sound channels per sound source enables you to use different sounding audio files for nearby and far away. The "far" file should sound more muffled and have a longer falloff range. These audio effects can be prepared in a sound editor such as Audacity.

The helicopter on the beach is a great example showing how this works. Move in close and notice how the engine sounds louder but also sharper.
Be sure to check out the PlanetInAction site for more info, or check out Aerilius, which first developed the 3Dsound framework.

The last days of old Kashgar

Kashgar, in China's remote far-west Xinjiang province, lies on a fertile crescent at the convergence of ancient caravan routes linking India, Central Asia and China. For over a millenium, this fabled city was a crucial link in the Silk Route economy, and its culture thrived.
I have long wanted to visit Kashgar. In May 2009, traveling there took on some urgency when it became apparent that the Chinese local government had begun implementing plans to demolish 85% of the remaining old town. The New York Timessounded the alarm; the news raised hackles from preservationists around the world, because Kashgar's old town was until then regarded as “the best-preserved example of a traditional Islamic city to be found anywhere in central Asia.”
I finally managed to visit Kashgar in late July 2010, and stayed for over a week, walking through practically every alley I could find, documenting the the old town's transformation and photographing its people.

Click on Kashgar photos to enlarge
The photos I took are up on Flickr, but a project like this is made to be published on Google Earth, so I georeferenced the photos using GPS. I also mapped the demolished areas as I walked through them. The resulting files — georeferenced photos, GPS tracks and a superimposed map — can be downloaded as a KMZ file for Google Earth. This is a documentary snapshot of Kashgar circa August 1, 2010.
What did I find? I can report that almost half of the remaining old town has been razed, and much of the rest is set to go. Most of the buildings facing the old town's main streets have been preserved, but the areas behind them are being hollowed out. Many alleys now end in wide-open spaces, empty save for the occasional denuded hold-out home whose exterior walls show the interior decorations of vanished neighbors. Here and there, a lone tree marks the spot of a demolished courtyard. Children have colonized these open spaces as a massive romping ground, for now.
In other parts of the old town, where the bulldozers were only just beginning to venture, I found families busily gutting their own homes, dragging out metal staircases, recovering bricks, salvaging what is salvageable for use in their new home. They looked resigned but not despondent, and were always happy to have me around taking photos. (Kashgaris are extraordinarily friendly and engaging, young and old alike.)
I have learned from living in Shanghai and now Beijing that Chinese authorities — and to a certain extent mainstream Chinese culture — do not attach much importance to protecting traditional vernacular architecture. Imperial palaces and grand religious temples are worthy of preservation or even reconstruction, but not on the whole the hutong of Beijing or the lane houses of Shanghai, which are deemed too ordinary, especially when there is money to made building high-rises in their stead.
In Europe, by contrast, entire towns can remain unmolested, from Óbidos to San Gimignano to Visby. The West's record is not unblemished, of course: In New York City, Robert Moses was able to do some damage before he found his match in Jane Jacobs, whose 1961 book The Death and Life of Great American Cities redefined how we view and value lower-income urban communities. In Europe, wars did far more damage than Moses ever could, but even there the destruction set in place a process of valuing what was lost, with towns like Ypres and Dresden choosing to meticulously reconstruct their destroyed cores.
Moses might also have had a go at Kashgar, so we Westerners shouldn't feel too smug; as recently as 1961, when Jane Jacobs's book was educating us, the Chinese had far more pressing concerns, namely avoiding being among the 35 million who perished through famine in Mao's Great Leap Forward.
As anyone who has been to Kashgar can attest, the alleys do not divulge much by way of opulence. The public-facing walls of the old town's homes are bare — made of mud- or baked yellow brick rising 2-3 stories. A wooden door, if open, reveals a curtain preserving the privacy of a shady courtyard inside. The exteriors are not beautiful in an aesthetic sense, though that is not where the effort lies; it's on the inside that these homes reveal their real wealth, through the ornate woodwork on covered verandas and the intricate stucco interiors.
As old Kashgar is dismantled, the remaining homes are losing their shared exterior walls, affording just for a brief moment a view into their covered courtyards. It's a swan song, however; soon enough these homes too will disappear, once compensation is agreed to.
(Or if their owners hold out indefinitely they'll be denied electricity and water until their cause is made irrelevant by "facts on the ground":)
How are these empty spaces being refilled? It is already possible to discern a two-pronged strategy. Encroaching on the perimeter of the old town, contiguous to main roads or previously built modern construction, 4-6 story medium-rise residential buildings are sprouting. Meanwhile, in the interior of the old town, work crews are constructing 2-3 story reinforced concrete frameworks, at roughly the same scale as the structures they replace. In at least a few cases, I saw new owners filling in the walls themselves with bricks recovered from their old homes. The new construction I've seen differs from the old in three ways: It does not in the main conform to the traditional layout of a central covered courtyard; the new alleys are wider, allowing vehicle access; and because they are wider, there is little opportunity to expand homes by building across alleys, as was often done with the old homes.
Work is progressing rapidly. The most recent imagery in Google Earth right now, dated October 26, 2009, shows just the beginning phases of the demolition. When a section has been demolished, crews start prepping the ground for new construction while the next section is cleared. The razing and rebuilding of Kashgar is thus happening concurrently. At this pace, it looks to me like they can get all of it done by mid-2012.
But why does this need to happen at all, let alone so quickly? Some reports (such asthe one in Time Magazine) espouse theories portraying the demolition of old Kashgar as an attempt by the majority Han to better subjugate the Uyghurs. The problem with this theory is that demolition on such a scale is not just foisted on China's ethnic minorities. In Beijing I cycle daily past newly demolished hutong districts. Here too, the process is not transparent, residents are not consulted, and in general are told only at the last possible moment when to vacate homes up for demolition. (Michael Meyer's The Last Days of Old Beijing is a great read if you want to know more.)
One reason given to journalists for the demolition is that the whole region is earthquake-prone, and thus the only way to preëmptively save Kashgari lives is to destroy their unsafe homes. I mooted that explanation to a local Uyghur guide, who scoffed at it, pointing out that these buildings have survived for centuries. More likely, I think, is that Chinese bureaucrats surveying old Kashgar saw only embarrassing poverty, and unilaterally decided to drag it into the 21st century. These officials may never have been inside a meticulously decorated Uyghur courtyard home, or perhaps they visited a few but did not care much for them. The prospect of handing out building contracts could also have helped the decision to demolish.
But even if I were convinced of the need for a Kashgar makeover, why does it need to happen so quickly? Why not gradually renovate over a 10-15 year period, one neighborhood at a time, replacing just the most precarious structures and bringing modern amenities to the rest? To make a forestry analogy, why clearcut when you could fell selectively, removing just the dead wood, preserving the special character of an old-growth forest?
I can think of a few reasons. First, blunt instruments are cheaper. Second, just as in Beijing, speedy implementations of opaquely arrived-at demolition orders thwart opportunities for organized local resistance. Third, 10-15 year-long projects take too long to be compatible with the hoped-for career trajectories of the local Communist Party bosses, eager to take credit for their initiatives now. (Separately, I fear to think what happens to all the archaeological material that must become visible when an entire city strata is churned over. At this pace, there cannot possibly be time for proper excavations.)
Why hasn't tourism been a better incentive for preservation? You do see the occasional westerner exploring the town, but the overwhelming majority of tourists in Kashgar are affluent visitors from within China, and they uniformly travel in bussed tour groups, deposited at various locales where they are led to photogenic spots by guides bearing portable loudspeakers. Among these destinations are the two officially protected parts of the old town, the 15% where bulldozers won't tread. These neighborhoods have been turned into open-air museums, with an entrance fee (RMB 30, USD 4.40) that entitles access to various courtyard homes and souvenir shops. I suspect that the Chinese authorities think these two areas should suffice for the majority of tourists. Depressingly, they may be right.
But tourism alone shouldn't motivate preservation. Traditional urban geography anchors local culture through the unique social interactions it facilitates; Kashgar's alleys, with their many small mosques and nearby teahouses, foster micro-neighborhoods safe enough for bare-bottomed toddlers to play unsupervised. Preserving a token part of the old town for touristic purposes is of no value to the ex-residents who have lost their particular neighborhood.
Will old Kashgar's urban culture survive the wholesale uprooting of its building stock? A number of residents are opting to spend their compensation on apartments in new high-rises at the edge of the city, which promise decent plumbing and insulation — as did one guide I talked to. (I too like my amenities, so I cannot blame them). Perhaps the new 2-3 story buildings at the center of the old town will be similar enough in scale and function that they can simulate the old urban geography. I hope so, though I fear that the character of old Kashgar will soon change irrevocably, not through necessity or war or natural disaster, but through fiat. And that would be a great pity.

Sharing Locations with Google Maps

WhereMark

WhereMark is another start-up trying to break into the Location Based Services market. Using the site's website, or the iPhone application, users can share and find find local points of interest. Essentially the site enables you to save and share your favourite locations with Google Maps.

To save a WhereMark you need to double click on the map. When you do so an information window opens that allows you to share information about the location. The information window for each saved location includes tabs to view a Street View and get driving directions. From the map sidebar you can choose to view all 'public' WhereMarks or only those submitted by you.

The site includes the option to connect with Facebook and share your WhereMarks with your Facebook friends.

Over the Rainbow with Google Maps

OMG Rainbows!



♪♫ Google Map's the only thing / To take you over the rainbow to the land where cartography is King. ♪♫

I love discovering new uses for Google Maps and I'm pretty sure that this is the very first rainbow predicator to feature on Google Maps Mania. 

The map uses the regularly updated National Weather Service radar mosaic to find where rain is falling and combines that with current solar elevation and azimuth to show areas that have a high potential for rainbows. The areas that have a potential for rainbows are shown in red on the map. 

You can quickly zoom into an area marked in red or you can use the search engine to look for rainbows near your current location. And who doesn't want to search for rainbows?

Street View et Arcade Fire

Certains d'entre nous vivent désormais loin de l’adresse notre enfance. Je me suis souvent intéressé à la nostalgie que peuvent ressentir les gens lorsqu’ils regardent des photos de la rue ou la maison dans laquelle ils vivaient auparavant. Nous avons essayé de nous appuyer sur ce sentiment pour développer une expérience musicale interactive entièrement pensée pour le Web.

Cette expérience musicale, appelée "The Wilderness Downtown" a été créée par le réalisateur Chris Milk avec le groupe Arcade Fire et plusieurs d'entre nous chez Google. En nous appuyant sur Street View, l'API Google Maps, ainsi que des fonctionnalités rendues possibles par le HTML5, nous avons créé ce que nous espérons être un unique voyage dans les rues de votre enfance. Tout cela est accompagné par la nouvelle chanson d'Arcade Fire "We Used to Wait", premier single de leur nouvel album “The Suburbs”.


“The Wilderness Downtown” a pu voir le jour grâce aux développements récents des technologies web et de la nouvelle génération de navigateurs internet. Il a été optimisé pour Google Chrome. Aussi, il fonctionnera au mieux dans Chrome ou un tout autre navigateur internet HTML5 conforme.

Vous pouvez retrouver ce projet et en savoir plus sur notre site Chrome Experiments. Bon voyage dans le passé !

Spanish Google Maps Mashups Round-up

Guifi.net

Guifi.net is a free telecommunications network in Spain. The network is composed of peer-to-peer connections. Guifi.net have used Google Maps to show the extent of the network.The map shows all the nodes on the network and the connections between the nodes.

Yata!


Yata! is a mobile based social network for sharing upcoming sporting events, shops with promotions, upcoming concerts or anything else you want to share. The application, for Vodafone, uses Google Maps to show the user submitted places around your current location.

A system of positive and negative votes is used to crowdsource the best user submitted locations. The home page of Yata! even includes a Google Map so you can explore the social network from your desktop.

Mapa Furgoperfecto

Furgovw is a website catering to the needs of Volkswagen camper van owners looking for places that they can park overnight. The site is a collection of user submitted suggestions for great spots where you can pull up and sleep when your are out touring in your van.

The site uses Google Maps to show the locations of parking locations. The map is not restricted to Spain and covers most of Europe and even parts of north Africa. 


Previously Featured Spanish Google Maps

Missing Persons on Google Maps

Live Police Appeals Map

UK website the Missing List has created a Google Map to display information about missing people in the UK. The data for the map comes from appeals made by the police for information about missing people.

If you click on a map marker you can view photos and a brief description. You can click through to read further details. You can also refine the results shown on the map by month and year.

The Missing List has also created a Police Appeals Google Map. The map displays appeals made by the police concerning recent criminal offences in the UK. Again you can refine the map by month and year. You can also refine the results by type of crime.