How to import 3D models dynamically in a WPF Application - c#

I have been searching this for quite sometime but could not find an appropriate method. How to import 3D models in a WPF application at runtime when user selects a model. It can be built in any one of the popular 3D modelling software, 3DS max, Maya, Blender etc, not all. Any one of the formats .3DS, .MAX, .FBX, .obj etc is required to be imported.
If there are free libraries available for this, please mention them, and if i have to write the code myself, please guide how and where to start.

Try: http://helixtoolkit.codeplex.com/

You may try to convert 3D objects in to XAML and use then in WPF. Most of the 3D modelling softwares has 3D Model to XAML plugins.
Try this as well.. (Commercial but good tool)
http://www.erain.com/products/zam3d/DefaultPDC.asp
and i also highly recommend helixtoolkit
Good Luck.

Related

HelixToolkit and 3d plotting

I searched for decent library, that allow plotting surfaces of revolution.
So I found HelixToolkit, that has not only convenient wpf controls, but also big lack of documentation.
I want to create two-sheeted hyperboloid that descibed by formula
but can't figure out what to use in mish-mash of functions and objects, that Helix delivers.
If you know another libraries/documentation or even solution to my problem, please, guide me.
https://github.com/helix-toolkit/helix-toolkit/tree/develop/Source/Examples/WPF/SurfaceDemo
Helixtoolkit has the dynamic surface 3d, maybe this is what you want.

3D image in c# using different images

I've different angle 2D images(images of one particular object), I want to merge all that three images and create one 3D Image.
How can I do that in Unity 3D?
The process you're looking for is called Photogrammetry. To get good quality models, you'll want more than 3 images. This process is very CPU intensive and takes a long time, you won't want this built into your Unity3D Game/App. You'll want to generate the models with external tools, then import them.
If you actually are looking for a C# way to do this, I only know of one opensource library working on this. Epicycle.Photogrammetry-cs.
If you want to manage the whole process of the conversion, check out this tutorial using only open source software.
This YouTube tutorial is easy to follow (I've done it myself), and also uses only free software.
If you're looking for a more polished, less technical solution, try ReMake by Autodesk
If you're looking for a completely hands off process, try 123D Catch by Autodesk

2D WPF Game, what are my options?

what would be my options if i would like to create a 2D action game in WPF(for the ease of building UI Layout) without having noticeable performance loss? The game should'nt have heavy physics calculations.
I did create XNA game in the past, and i know about the MonoGame project, but i am still unsure how to use WPF as a host for MonoGame and i didnt find a downloadable example of MonoGame in WPF.
Beside MonoGame, what will be the other options, if any?
Thanks in advance!
Have a look at SlimDX, both 3D and 2D are supported.
The tutorials have examples on integrating with WPF.
You could take a look at Nick Gravelyn's article which renders XNA inside of a WPF application. I believe MonoGame's API is very similar, if not identical, to XNA, so it shouldn't be a huge problem fixing any porting issues.
http://blogs.msdn.com/b/nicgrave/archive/2010/07/25/rendering-with-xna-framework-4-0-inside-of-a-wpf-application.aspx
or
http://www.jfmajor.com/post/38447851593/monogame-in-wpf
I do remember reading somewhere that a team attempting to render WPF controls over XNA/MonoGame (I forget which) did encounter some perf issues.
I think the approach taken by many (from what I've seen) is not to use WPF for rendering a UI and instead build the UI as part of the game/engine. WPF/WinForms can be used to build an editor, but again I believe the rendering of the game/world is embedded within a WPF/WinForms application using a UserControl similar to the articles mentioned above.

3D Model with Monodroid

I'm interested in adding a 3d model into my Android app which is being developed in Mono with c#. The model will be developed with a tool like Blender. An example of the interaction with the model would be clicking a "smile" button and initiating the models smile sequence. Is there a clever "container" for this type of media? I only need to show the user pre-determined routines - they won't be creating new ones.
Thanks for any help.
You may need to make use of OpenTK library, which is C# wrapper over OpenGL.
You may want to have also some importers for the file format you're going to operate on.
This is just an exaple of a simple Cube, from xamarin site itself:
Hello GLCube

3D Graphing Package For C# Winforms?

I'm using ZedGraph for my 2D graphing needs, but for a project, I need something that does 3d graphing. What is the best package I can use for this? I'd like the Graph Panes to be as easy to manipulate as with ZedGraph.
Edit: By 3D, I mean I want to be able to specify an x,y,z to get a surface. Thanks!
Using the source code that can be found in the link posted just below as well as WPF you can create a pretty good 3d graph, it's nothing groundbreaking but it might suit your needs:
3D Bar Chart
In principle you can create a bitmap using MathGL and display it. MathGL is cross-platform GPL (LGPL for core) plotting library which can plot 2- and 3-ranged data. However, I'm not sure what you can use C++ classes from C#. But C-interface should work.

Categories

Resources