Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Google Map on a Papervision Primitive (in 6 lines of code)

Loading...

Sign in or sign up now!
7,483
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 16, 2008

Intro

Putting a Google map on a Papervision Primitive is extremely easy. All you need to do is to turn the map into a Movie (using the MovieMaterial class) and then place it on a primitive. It's really that easy! You can do it in only six lines of code given below;

1. Turn Google Maps into a Movie

movie.graphics.beginFill(0xFFFFFF);
movie.graphics.drawRect(0,0,800,600)
movie.addChild(Application.application.map);
movie.graphics.endFill();
mat = new MovieMaterial(movie, false, true,true,new Rectangle(0,0,800,600));

2. Place that movie onto a primitive

sphere = new Sphere(mat, 600, 32, 32);

Download (Air Application)

http://flex3cookbook2.googlecode.com/files/googlemaps.zip

This tutorial was created by Mike Lively of NKU.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (5)

Sign In or Sign Up now to post a comment!
  • only 6 lines? where's the fun in that?

  • couldnt u just download google earth?

  • I am real happy for this tutorial,

    God bless you

  • thanks for posting this. nice work!

  • cool stuff

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more