A Rotation Transformation Method of 3D Object in WPF by Modifying Camera Attributes

Full Text (PDF, 430KB), PP.44-50

Views: 0 Downloads: 0

Author(s)

YU Ren 1,* Mao Wei 1 LU Gubin 1 Lu Feng 2

1. Navy Engineering University Wuhan, China

2. XINXIANG Technology Co. Lited. Wuhan, China

* Corresponding author.

DOI: https://doi.org/10.5815/ijigsp.2011.05.07

Received: 25 Mar. 2011 / Revised: 1 May 2011 / Accepted: 7 Jun. 2011 / Published: 8 Aug. 2011

Index Terms

WPF, Three Dimention Rotation, GUI Engine, .NET Framework

Abstract

Based on the .NET Framework 2.0, the new generation of the windows software development framework .NET Framework 3.0 has four new components, in which the most attractive one is WPF(Windows Presentation Foundation). WPF is a new GUI engine that can provide uniform descriptions and methods for user interface, 2D/3D graphic, document and media. In WPF, the commonly used rotation transformation method for 3D object is RotateTransform3D. This method needs to calculate the state of the camera carefully, otherwise, the 3D object may move anomaly on the screen. To solve this kind of problem, another method is brought forward in the paper, which realizes the rotation transformation by calaulating and changing the attributes (Position, LookDirection, UpDirection) of the camera directly. The method can exhibite the rotation of 3D object distortion-freely, without the anomal movement on the screen. The calculation and the program of the method is simple.

Cite This Paper

YU Ren,Mao Wei,LU Gubin,Lu Feng,"A Rotation Transformation Method of 3D Object in WPF by Modifying Camera Attributes", IJIGSP, vol.3, no.5, pp.44-50, 2011. DOI: 10.5815/ijigsp.2011.05.07

Reference

[1]Clayton Walnum, “Direct3D Programming Kick Start”, SAMS, ISBN 978-0672324987,2003

[2]Dave Shreiner, Mason Woo , Jackie Neider, Tom Davis ,”OpenGL(R) Programming Guide: The Official Guide to Learning OpenGL(R)”, Addison-Wesley Professional, 6th Edition, ISBN 978-0321481009, 2007

[3]Microsoft Developer Network for Visual Studio 2008

[4]Matthew MacDonald. “Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5”, Second Edition. Apress, ISBN 978-1590599556, 2008

[5]http://viewport3d.com/trackball.htm