Control 3D models in WPF Using Game poles

Source: Internet
Author: User
Control 3D models in WPF Using Game poles

 

I am in a good mood today. I don't want to write WF articles. I want to change my topic and write my best content.

 

Download example:

Http://files.cnblogs.com/foundation/wxd00231.rar

 

To reference Microsoft. DirectX. DirectInput

If you do not have one, you can download the DirectX Net development kit from the MS website,

Http://download.microsoft.com/download/a/c/d/acdfb557-266f-4af4-8673-6ab8009b4ddd/dxsdk_apr2005.exe

 

In this example, I re-encapsulate access to the game rod,

Use the event Method for ease of use.

JoyestickEvent event occurs when any key or direction bar of the player is pressed,

 

You can obtain the operation data of the game rod from the parameter of the oyestickEvent event.

 

Game pole Description: any player that can be inserted into a computer can

 

 

This example is an example of moving in 3D space.

 

There are two ways to move in 3D space.

  • Third, the camera does not move, and objects in the space move, such as red police.
  • The first angle of view means that the objects in the space are not moving, and the camera is moving, for example, a need for speed.

 

This example is an example of the first angle of view. The game bar is used to control the camera to move in 3D space,

You can try to traverse several rings in a 3D space to reach the Sphere behind the ring. The following is the control description.

 

 

 

Start

 

 

 

 

 

Arrival destination

 

 

3D models are created in 3D max9, and the conversion is completed in Blend,

If you are interested in this aspect, please refer to my article.

 

[3ds Max modeling, Blend design, VS2008 3D model example for controlling WPF]

Http://www.cnblogs.com/foundation/archive/2008/05/23/1205892.html

 

 

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.