How to ZoomIn, ZoomOut, rotate 3d model on surface???
-
Friday, May 18, 2012 12:03 PM
Hi Helpers
I am imported a .3ds model in my surface application and i am using wpf 3d tool to rotate zoom but it is not working properly on multy touch screen, So do any one have idea about any tool that gives us proper zoom in and rotational functionality with multy touch.
Mahen
All Replies
-
Friday, May 18, 2012 1:02 PM
I would use manipulation events:
here are the sequence manipulation events occurs:
- The ManipulationStarting event occurs when the user places a finger on the object. Among other things, this event allows you to set the ManipulationContainer property. In the subsequent events, the position of the manipulation will be relative to the ManipulationContainer. In events other than ManipulationStarting, this property is read-only, so the ManipulationStarting event is the only time that you can set this property.
-
The ManipulationStarted event occurs next. This event reports the origin of the manipulation.
-
The ManipulationDelta event occurs multiple times as a user's fingers move on a touchscreen. The DeltaManipulation property of the ManipulationDeltaEventArgs class reports whether the manipulation is interpreted as movement, expansion, or translation. This is where you perform most of the work of manipulating an object.
-
The ManipulationInertiaStarting event occurs when the user's fingers lose contact with the object. This event enables you to specify the deceleration of the manipulations during inertia. This is so your object can emulate different physical spaces or attributes if you choose. For example, suppose your application has two objects that represent items in the physical world, and one is heavier than the other. You can make the heavier object decelerate faster than the lighter object.
-
The ManipulationDelta event occurs multiple times as inertia occurs. Note that this event occurs when the user's fingers move across the touchscreen and when WPF simulates inertia. In other words, ManipulationDelta occurs before and after the ManipulationInertiaStarting event. The ManipulationDeltaEventArgs.IsInertial property reports whether the ManipulationDelta event occurs during inertia, so you can check that property and perform different actions, depending on its value.
-
The ManipulationCompleted event occurs when the manipulation and any inertia ends. That is, after all the ManipulationDelta events occur, the ManipulationCompleted event occurs to signal that the manipulation is complete.
There is also a good article by Luis Cabrera that I would recommend A word on WPF4 manipulations.
hth
Gian Paolo Santopaolo - @gsantopaolo
Founder and CTO Software Lab
softwarelab.it - digitalshopwindow.com - thedarksideof.net
Disclaimer: This post is provided "AS IS" with no warranties, and confer no rights.
- Edited by Gian Paolo Santopaolo - Software LabMVP Friday, May 18, 2012 1:08 PM
-
Thursday, May 24, 2012 12:15 PM
Hi
Is anybody have any idea about getting background reflections on my 3d model in wpf
Mahen

