The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
How to get an image from XAML app to C# DirectX
I have started a project which I did not expect to be this much trouble. I want to display a website in a HoloLens 3D application.
I have come a long way, quickly finding out this is now impossible through Unity and have found DirectX and SharpDX.
I am almost done, I have a webview in a XAML application that I make an image of, and I have a very simple 3D DirectX environment with a cube I would like to view this image on.
This has stumped me for the last days and I am just completely stuck. Programming directly in DirectX is just way over my head but I would really like to get this PoC done and display a website.
All I have to do is display the image, but I have no idea how to go about that. Seems like there used to be toolkits to help with DirectX development, but they have all stopped about 5 years ago (I assume when Unity began doing stuff)
- How do I make a Texture2D from a byte array? Of maybe a SharpDX.WIC.BitmapSource?
- How do I change the texture on the cube without causing some kind of memory error?
I am going crazy, please help. If anyone want I can show the stuff I've tried, but honestly, it's just too much of ramble code right now. Or maybe show how this could be done using Unity, which would be much preferred.