Using a plugin to add a billboard to Virtual Earth 3D

To add objects to the VE3D world we need to create our own actor that knows how to render itself. Actors descend from Microsoft.MapPoint.Rendering3D.Steps.Actors.Actor and must override the Render method. When it comes time to render a frame, all actors have their Render method called to queue up renderable objects. To show a billboard we’ll…

0

BillboardPlugin.cs

using System; using System.Collections.Generic; using System.Drawing; using System.Text;   using Microsoft.MapPoint.PlugIns; using Microsoft.MapPoint.Rendering3D; using Microsoft.MapPoint.Rendering3D.Cameras;   namespace VirtualEarth3DSamplePlugins.Billboard {     public class BillboardPlugin : PlugIn     {         #region Constructor         public BillboardPlugin(Host host)             : base(host)         {           }         #endregion         #region Overrides…

0

BillboardActor.cs

using System; using System.Collections.Generic; using System.Drawing; using System.Text;   using Microsoft.MapPoint.Rendering3D; using Microsoft.MapPoint.Rendering3D.GraphicsProxy; using Microsoft.MapPoint.Rendering3D.Steps.Actors; using Microsoft.MapPoint.Geometry.VectorMath;   namespace VirtualEarth3DSamplePlugins.Billboard {     class BillboardActor : Microsoft.MapPoint.Rendering3D.Steps.Actors.Actor     {         private SpriteGraphicsObject billboard;         private Texture texture;           #region Constructor         public BillboardActor(LatLonAlt position)         {             this.texture…

0

Disclaimer

Content is provided “AS IS” with no warranties and confer no rights.

0

Creating a Hello World plugin for Virtual Earth 3D

With latest release of the Virtual Earth 3D release we now support loading plugins to perform additional functionality not implemented in the main product. Two new features of the release are even implemented as plugins (bird’s eye photos and user created models). To get you started with creating your own plugin for VE3D here’s a short…

0