kml file, such as images, textures, and models. This archive includes all the local files that are referenced in the. kmz ArchiveĪ KMZ archive is collection of files used to create a single KML presentation. When such files are written out by Google Earth 4.2 clients and later, the information in the textures.txt file is translated into the and elements, which are children of. Google Earth 4.2 accepts KML and KMZ files that refer to a textures.txt file and processes them correctly. Note: In releases prior to Google Earth Release 4.2, this mapping function was performed by the textures.txt file (an external file included in the KMZ archive). The ResourceMap element maps the texture files from the location specified in the original Collada file () to a location in the KML or KMZ file () that contains the Model. Rotations are specified in degrees, with positive rotations as shown in the following diagram. The y axis points North and is parallel to longitude lines, and the x axis points East and is parallel to latitude lines. The Orientation element specifies rotations of the model around the x ( tilt), y ( roll) and z ( heading) axes. This example uses default values for the Orientation and Scale elements, which are included here for completeness. The model is positioned geographically with the Location element's latitude, longitude, and altitude specifications. files/CU-Macky-4sideturretnoCulling.jpg University of Colorado, Boulder model created by Noël Nemcik. To view this model, load the file MackyBldg.kmz, which is an archive that contains all the necessary texture and overlay files as well as this doc.kml file containing the Model: The reference to the model can be an an absolute or relative file specification, or a URL. Here is a simple example of a KML file that imports a textured model. Models already loaded into Google Earth can be repositioned and resized using the element.Ī model is used in Google Earth just as any other geometry object (point, linestring, or polygon). When a 3D model is imported into Google Earth, it is translated, rotated, and scaled to fit into the Earth coordinate system. Models are defined independently of Google Earth in their own coordinate space, using applications such as SketchUp, 3D Studio Max, Softimage XSI, or Maya. In KML, you can import 3D models-such as buildings, bridges, monuments, and statues-in the COLLADA interchange file format.
0 Comments
Leave a Reply. |