I would like to display a 3D model in a WPF application (the model is prepared in an external tool such as blender). What is the best practice? Are there any tools to facilitate this? How about rotation/transform performance?
相关问题
- Is GLFW designed to use without LWJGL (in java)?
- VNC control for WPF application
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
- How can I add a horizontal line (“goal line”) for
You can import and convert OBJ-Files to XAML using "Blend for Visual Studio" please take a look here:
alternative-to-zam-3d-editor
Zam3d
iswas a great tool for converting 3D Models into Xaml, but it looks like Electric Rain has gone defunct, you may be able to find a copy somewhere by Googling for it. I highly recomend Petzold's book 3D Programming for Windows. There are also a ton of tutorials online, I would google for some modern ones.Good question! The result-answer is depending from your goals.
There are relatively many tools for solve this task, but there is no any case universal solution. There are two troubles to do this task:
Moreover it will be very good to change materials in model by the compatible (for further adequate WPF presentation) way.
Be ready experimenting many times for best results... It seems that you are about 2 point - Approach. So, best tool for reading .3ds, .obj file is Helix 3D Toolkit
Recipe is very simple. For example, in VB
Or
Best tool for manipulation .3ds, .obj, ... models including saving in .xaml is Deep Exploration. My sample in WPF 3D scene. Fast full managed object
You can download trial version of 3dsmax and convert you model by Xaml exporter for 3D Studio Max this tool helps me a lot.