Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-animate-camera-position-and-direction-in-a-3d-scene.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.7 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
How to: Animate Camera Position and Direction in a 3D Scene 03/30/2017
animation [WPF], camera position in 3D scenes
camera direction [WPF], animating in 3D scenes
3D scenes [WPF], animating camera position
3D scenes [WPF], animating camera direction
camera position [WPF], animating in 3D scenes
animation [WPF], camera direction in 3D scenes
480224b7-a5e5-4165-ba7f-ef760ddff94a

How to: Animate Camera Position and Direction in a 3D Scene

The following example shows how to animate the position of a camera and animate the direction it is pointing in a 3D scene. This is done by using xref:System.Windows.Media.Animation.Point3DAnimation and xref:System.Windows.Media.Animation.Vector3DAnimation to animate the xref:System.Windows.Media.Media3D.ProjectionCamera.Position%2A and xref:System.Windows.Media.Media3D.ProjectionCamera.LookDirection%2A properties respectively of the xref:System.Windows.Media.Media3D.PerspectiveCamera. You might use an animation like this to change the onlooker's view of a scene in response to an event.

Example

[!code-xamlAnimation3DGallery_snip#PointVector3DAnimationExampleWholePage]

See also