VEModelFormat Enumeration

You are not viewing the latest version of the AJAX control. Bing Maps AJAX V7 is the recommended JavaScript control for Bing Maps. If you need this documentation, it is available in as a CHM or PDF download.

An enumeration of 3D model formats.

VEModelFormat{ OBJ }

Members

Member Description

OBJ

The 3D model data is in Wavefront OBJ format.

Remarks

Bing Maps supports the import of OBJ data files where the following items are true:

  • The file is a valid OBJ ASCII (.obj) file.

  • Any MTL or other texture file names referenced within the OBJ file do not contain spaces.

  • Any references to MTL or other texture files are located in the same base location or working directory or in a subfolder of the base location or working directory as the OBJ file. For example, if the VEModelSourceSpecification.ModelSource Property is "https://www.mysite.com/models/house.obj" and the file "house.obj" references "house.mtl", then Bing Maps expects the file "house.mtl" to be found at "https://www.mysite.com/models/house.mtl" and the file reference "house_textures/roof.jpg" to be found at "https://www.mysite.com/models/house_textures/roof.jpg".

  • The file contains BMP, GIF, JPG, PNG, and TIFF texture formats.

Additionally, the following OBJ keywords are supported:

  • mtllib

  • usemtl

  • vn

  • v

  • vt

  • f

And the following MTL statements are supported:

  • D

  • newmtl

  • map_Ka

  • map_Kd

  • Ka

  • Kd

Note Bing Maps does not support advanced OBJ features, including curved surfaces. Materials support is limited to ambient and diffuse color and texture. More complex materials such as those that use bump-mapping are not supported. Unsupported features found in a 3D model file are ignored.

To ensure that your OBJ model renders properly in Bing Maps 3D, turn on the "Triangulate faces" export option in the 3D authoring application that you use.

See Also

Reference

VEMap.Import3DModel Method