Aidend
Tourist
Reged: 08/30/07
Posts: 2
|
|
Hi,
Does anyone know how if it is possible to animate images in google earth? I want to provide an effect to illustrate the last 2 minutes movement of say a car on a street -in a constant loop; I imagine it could be done by re-loading a kml file on a timed loop - but is there a better way?
Thanks in advacne for any advice.
Aiden
|
simon_a
Master Guide
Reged: 08/21/05
Posts: 1773
Loc: London, UK
|
|
Hello,
Yes, you can use timestamps on objects and then play the animation using the timeslider that appears when objects with time data are in view. You will need to create an object (a placemark or image overlay probably) for each location the car was recorded at and then apply time information to it.
This isn't something you can create using the GE application itself. You need to create (or at least edit) the KML code outside of GE (KML is a simple text, XML-like format that Google Earth uses to define how objects look in the viewer).
Objects can have a timespan (a from and to time, during which the object will be visible on the screen) or a timestamp (a single point in time, at which the object will be visible).
It's probably best to show you a couple of examples - one with timestamp and one with timespan: Timespan - http://bbs.keyhole.com/ubb/showthreaded.php/Cat/0/Number/754308 Timestamp - http://bbs.keyhole.com/ubb/showthreaded.php/Cat/0/Number/989603
In order to see the KML code, download the files and open with a text editor (the Tramlink file is KMZ so you won't be able to see that with a text editor - view it in Google Earth then right-click on 'Tramlink timetable (e)' and save that as a KML file to see the code in a text editor).
The London Tramlink example uses a timespan for each location (each object has a start and end time and the start time at one tram stop is the same as the end time at the previous tram stop). The flags on the time slider should be drawn together to a single point when using timespan.
The Cape Town Rubbish truck example uses simpler timestamps for each location (each object has just a single point in time associated). The flags on the time slider need to be seperated a little for this, otherwise the objects will just flash in and out of view too quickly to see. As the flags are seperated (this means you're seeing a rolling range of time in view) you can end up seeing multiple objects with different timestamps simultaniously.
Therefore, if you're showing one object moving, I would suggest using timespan with the end time of a location the same as the start time of the next location. That way, you'll get a nice smooth animation as the car will always be in view at one location or another, and you won't see two instances of the car at any one time.
Let us know if you need more help (and it would be great to see how you're getting on if you don't mind posting your work).
See this page of the GE Guide for more about the timeslider: http://earth.google.com/userguide/v4/ug_gps.html#timeline
The KML refererence is also invaluable when editing or creating the KML code yourself: http://code.google.com/apis/kml/documentation/
Have fun!

Cheers,
Simon.
|
Zeldark
First Post
Reged: 09/11/07
Posts: 1
|
|
Okay. You implied that this wouldn't work, but can I have timestamped folders? Each folder would have many objects inside and I don't want to time stamp each one. Can I time stamp the folder and have all of the objects within the folder be displayed when it's the folder's time? Then have a series of folders for animation?
Or do I have to timestamp each object after all?
Edit: For the record, I have done some file digging and discovered that you can timestamp folders effectively, and not the individual item within.
Also for the record, that is in fact, super awesome.
Edited by Zeldark (09/11/07 06:57 PM)
|
jpwade
Builder
Reged: 03/12/06
Posts: 591
|
|
check out Gerardo's post on Spreadsheets
I posted a vague follow up threre for animation tips within spread sheets also
-------------------- JP Wade - Click for Permissions
www.czmartin.com/jpw - Contact & list of models submitted to GE Forum
Download Latest Version of Google Earth
|
StephP1
First Post
Reged: 07/03/08
Posts: 1
|
|
Hi,
I have a streetcar kml 3d object that I have associated timespans to. I also have a vector kml path for which I'd like the streetcar to go. How do I combine the streetcar object and its path in order to make it go where I want it to in a smooth fashion?
THanks in advance!
Steph
|