Hello everyone.

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.
Options

Mapping 2d sprite to surface object.

Hello.. My project is to have a 2D image (RGB4444 format) that needs to be overlaid over spatial mapping mesh. Currently, I have a flat sprite which just loads the Texture2D. It does not reflect the shape of a surface mesh. The sprite image is about 7 inches by 7 inches. A bumpy mesh should project a bumpy image overlaid on the mesh. My plan on approaching this problem:
1. Retrieve the meshes from the spatialMappingManager object,
2. Map the sprite coordinates to the mesh coordinates (I assume both are on the same coordinate system),
3. Update the color property of the mesh for the vertices that align to the vertices of the sprite.

I am currently stuck with part 1. Seems like the function SpatialMappingManager.Instance.GetMeshes() returns collection of meshes which I don't know how to work with. Why so many meshes when I have only one environment? I only want to update the color of vertices that align with the sprite (not the entire environment that spatial map captures). I would appreciate some support on how to proceed! Also, I am not sure if my plan is good.. any direction would be much appreciated!

Sign In or Register to comment.