Using WPF as a simple solar system

Source: Internet
Author: User

The main purpose of this tutorial is to learn its 3D animation method. It only uses XAML and does not writeCode.

First, I checked the planetary data on the Internet and made eight big planets and one moon in it. However, I found that it would be too difficult to watch if I had drawn a chart based on actual proportions, for example, if the sun radius is 109 times that of the earth, and the distance is greater than or equal to 25000 times, all others except the sun will be as small as the pixel, so we have to take the distance by 10 MKM as a unit, the radius of the planet is set to 6378km of the earth's radius as a unit, and then the preceding figure is displayed only when the sun is ignored and set to 1 unit radius.

There are many more places to go:

1. planetary surface textures

2. Saturn's halo

3. I only set the earth, but if there is a problem, it seems that the rotate3dtransform cannot be used to rotate the planet, so the intersection will change. It is estimated that the geometry path animation will be used, in addition, the actual trajectory of the planet is not circular. This step seems to need to be improved a lot.

4. Initial Data

...

 

 

 

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.