Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-create-a-3-d-scene.md
T
Pooja PoojariandAndy De George 6d665a13bd US-1889327: Updated H2 headings. (#1323)
* Updated H2 headings for US-1889327.

* Review edits.

* Apply suggestions from code review

Co-authored-by: Andy (Steve) De George <[email protected]>
2022-03-04 18:48:05 +00:00

2.1 KiB

title, description, ms.date, ms.custom, dev_langs, helpviewer_keywords, ms.assetid
title description ms.date ms.custom dev_langs helpviewer_keywords ms.assetid
How to: Create a 3D Scene Learn how to create a 3D scene. 03/30/2017 devdivchpfy22
csharp
vb
scenes [WPF], 3D
3D scenes
adb4a598-71a2-4dd5-b677-ea3fc11b78b2

How to: Create a 3D Scene

This example shows how to create a 3D object that looks like a flat sheet of paper which has been rotated. A xref:System.Windows.Controls.Viewport3D along with the following components are used to create this simple 3D scene:

Create a 3D scene in XAML

The code below shows how to create a 3D scene in XAML.

[!code-xaml3DGallery_snip#Basic3DShapeExampleWholePage]

Create a 3D scene in procedural code

The code below shows how to create the same 3D scene in procedural code.

[!code-csharp3DGallery_procedural_snip#Basic3DShapeCodeExampleWholePage] [!code-vb3DGallery_procedural_snip#Basic3DShapeCodeExampleWholePage]

See also