Import 3D Model to WPF from any 3D Editor
Many 3D editors can export 3D scenes as OBJ files, these files can be easily imported into WPF project and being used to build complex 3D scenes.
See how easy to import 3D scene from 3D editors (for example Blender or 3ds Max):
After the export we get two files “scene_objects.obj” (contains definition of scene objects) and “scene_objects.mtl” (contains definition of objects’ materials).
Now we can add these files to WPF project:
Open/cerate WPF project and add OBJ and MTL files into objects’ tree.
Open target window, drag and drop added OBJ file into it.
The Blend generates Viewport3D with all required objects automatically.
Now we can “play” with 3D scene: change objects’ parameters, materials, transformations, lights, animations and etc.
The example project with code can be downloaded from here .
I’m not responsible for any damage that may be caused by using this post or its content. Any materials in this post were provided AS IS without any changes and other meanings.