WorldWind series nine: Blue Marble plugin Learning

Source: Internet
Author: User

There are two or three days did not update the blog, I feel lazy again! In fact, the Friday is mainly to see the research worldwind Virtual Earth plug-in function, I am prepared to develop with VirtualEarth very similar, it must be attacked. At that time the Virtual Earth study did not have much progress, the problems encountered are: 1. How does the picture stack up to the sphere? (including projection transformation, positioning, scaling, etc.) 2. Direct 3D Development. Since the virtual Earth was developed on the basis of the Blue Marble plug-in, I mainly saw the basic knowledge of Direct X and the study of Blue Marble in Saturday. Now analyze the bluemarble with you.

The Blue marble plug-in implementation is primarily a BMNG.cs file, which includes two classes BMNG classes and Bmngloader classes.

BMNG Complex implementation of the Bluemarble function of the control form, bmng means blue Marble Next Generation.

The Bmngloader class inherits from the plugin class and is responsible for implementing plug-in functionality. It overloads the Plugin.cs load () and unload () methods, and implements the menu item click Processing Function menuitemclicked (). This is the same as the general process of implementing plug-in functionality.

Let's look at the implementation of the key code, respectively.

Bmng class: Mainly in the Bmng constructor, which is the key to the realization of the image superimposed on the ball processing, but also the focus of analytical learning.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.