In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: Test load Googlestreet view pano tile

You need to use loader, not content.
Get Adobe Flash player
by makc3d 04 Oct 2011

    Talk

    Glidias at 04 Oct 2011 15:29
    hmm..but to create a TextureMaterial out of the loaded content hmm....
    makc3d at 04 Oct 2011 15:31
    right, no 3d engines with google, native flash 3d only
    makc3d at 04 Oct 2011 15:31
    and maybe pixel bender filters
    Glidias at 05 Oct 2011 11:08
    You can put output=xml instead, and dm=1 to enable depth map output for the pano street view's xml info, you get some encoded string for the 3d depth map. eg. http://cbk1.google.com/cbk?output=xml&dm=1&pm=1&ph=1&v=4&panoid=07gbqMWIg_HId5m7W94qHg .. But does anyone know how to read this depth map?. it doesn't look like Base64 to me and probably their own cipher? There are streams of AAAA around, probably flat /blank areas?
    makc3d at 05 Oct 2011 14:03
    Glidias, I think this is relevant code http://pastie.org/2642736
    makc3d at 05 Oct 2011 14:09
    corresponding swf at http://maps.gstatic.com/intl/en_ALL/mapfiles/cb/googlepano.156.swf
    Glidias at 06 Oct 2011 11:20
    It's indeed Base64. Compressed byte array. Up to 255 plane indices lookup per pano, each pixel is therefore a single byte index, from which a (low-res) depth/normal map can be created if one so wishes. This is mentioned in a pdf article as well on streetview. http://static.googleusercontent.com/external_content/untrusted_dlcp/research.google.com/en//pubs/archive/36899.pdf
    Embed
/**
 * Copyright makc3d ( http://wonderfl.net/user/makc3d )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/zQk6
 */

// forked from Glidias's Test load Googlestreet view pano tile
package {
    import flash.system.LoaderContext;
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.display.Sprite;
    import flash.events.Event;
   
    // You need to use loader, not content.
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var loader:Loader = new Loader();
            var context:LoaderContext = new LoaderContext(true, null, null);
            loader.load(new URLRequest("http://cbk0.google.com/cbk?output=tile&w=416&h=208&panoid=t_mnKSugTLrQTEnJplXQ3A&zoom=2&x=1&y=0"), context);
            addChild (loader);
            
        }

    }
}