Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

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.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. And always feel free to hit us up on Twitter @MxdRealityDev.

How to get an image from XAML app to C# DirectX

edited January 25 in Questions And Answers


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)

  1. How do I make a Texture2D from a byte array? Of maybe a SharpDX.WIC.BitmapSource?
  2. 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.

Sign In or Register to comment.