I am new to wpf. I have created a 3D animation in Maya Auto Desk. SO can i Embed it in WPF . is it possible ? Please help ?
There is an older open source project to create a DirectX control for use in WPF at http://sharpdxwpf.codeplex.com/ However you'd need to convert the maya file to .x format for directX -- there used to be an exporter in the DirectX SDK but I don't know if it's been maintained.
This project offers a 3D component for wpf and also includes links to other 3d-wpf format: http://helixtoolkit.codeplex.com/ A quick look suggests it might not support animation right now (OBJ, for example, is not an animated format) but maybe the links will help.
Related
I want to develop a portable C# API for 3D rendering to use with XAML control. ( 3D host between UWP control)
To which 3D engine should I use ?
I already learn OpenGL but i don't know if more High Level API are available.
The idea of the program is to have a 3D Scene builder with some object to add with drag and drop.
Using xaml for the interface is a constraint.
Do you have any recommendations or advice?
Thank's a lot !
Recently I have been working on a small WPF project involving the visualization and manipulation of 3d objects. For 2d ojects, this can be easily achieved with a Canvas warpped in a ViewBox or some nice 3rd party controls. But I can't find any free, ready-to-use solution for 3d objects. There is a likely one in WpfToolKit from XceedSoftware(https://github.com/xceedsoftware/wpftoolkit), but no information is given.
I know WPF has some 3D support, like ViewPort3D and other classes in Media3D namespace, and I did find a book, '3D Programming for Windows'(http://www.charlespetzold.com/3D/index.html), by Charles Petzold introducing the concept and basic knowledge. However, many tricky tasks like adjusting camera according to mouse and keyboard input is not presented. So before I start building my own control, I want to at least confirm that I'm not wasting my time doing something already perfectly done. And how to properly config the mouse and keyboard events to make the control behaves as if using some professional CAD softwares?
In short:
1.Any free 3d control for WPF
2.How to build my own ones
Can anyone help me?
I have a task:
'Second component must be written in C++ and must be a UWP assembly/component that will be used by the First part of the task. It must be a DirectX component that draws to SwapChain with transparent background. The content must be a 2D animation that must be bound to current mouse position. The content must be controllable via set of public methods.
DirectX component must be placed on top of your C# GUI so it will act as overlay.
Make it event-transparent overlay, it must not capture any GUI events and otherwise interfere with C# app.
Use C# host to send mouse events and content change to DX layer.'
But I have no idea how to combine UWP and DirectX.
I already have functioning UWP C# app part and what's next?
I'll be grateful for any responces and ideas.
You need to include a SwapChainPanel or SwapChainBackgroundPanel control into your XAML file. This surface will be used to draw your DirectX content. You have a default uwp sample in Visual C++ Template named DirectX 11 and XAML App. It can help you to understand the plumbing but there is only C++ code on this solution.
MonoGame!
It's a game framework, based on XNA4 that works on UWP, among a myriad of other platforms. You can pick apart the samples to learn what you need.
http://www.monogame.net/
Assume that I have STFT (short time fourier transform) data, how would these can be displayed on the picture box as spectrogram of frequency vs time, what function in C# can I use ?
The WPF Sound Visualization Library isn't bad for this type of thing, although it doesn't have a spectrograph control.
WPF Sound Visualization Library
Codeplex project with source
While not a .NET implementation Audacity is open source. So you may be able to poke around in there and see how they created their Spectrograph control
Audacity Source
There is also some Matlab code here that should allow you to get to where you need
Matlab code Stanford.edu
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.