Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interactive 3D object in Surface

How to create a interactive 3D object in WPF? For example it can be a 3D Cube which can be rotated and with "tap" gesture for each side triggering different action.

like image 641
Sel Avatar asked Feb 06 '26 14:02

Sel


1 Answers

Take a look at the ViewPort3D class - it has a camera that you can rotate in 3d. Just hook up a MouseDown event handler and modify the camera position.

http://www.kindohm.com/technical/wpf3dtutorial.htm

like image 138
James Cadd Avatar answered Feb 09 '26 00:02

James Cadd