microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

MRTK Spatial Awareness Mesh.Color is NULL #9925

Closed Gunther2689 closed 9 months ago

Gunther2689 commented 3 years ago

When I get the Meshes from SpatialAwarenessMeshObserver, I found the Mesh.Colors is NULL.

Gunther2689 commented 3 years ago

Can I get the color of real world through MTRK?

keveleigh commented 3 years ago

Can I get the color of real world through MTRK?

Do you mean have the meshes auto-colored with the real world? Or just make the real world visible through the meshes? The default wireframe visualization should allow the real world to be visible, or you can change the spatial mesh settings to occlusion for colliders without any visibility.

Gunther2689 commented 3 years ago

Can I get the color of real world through MTRK?

Do you mean have the meshes auto-colored with the real world? Or just make the real world visible through the meshes? The default wireframe visualization should allow the real world to be visible, or you can change the spatial mesh settings to occlusion for colliders without any visibility.

I mean the meshes auto-colored with the real world. We used hololensForCV before, and we got point cloud data with color. Can we get any data from mrtk with color information like that? Thanks a lot!

CDiaz-MS commented 3 years ago

@followertryingtobeprogrammer it looks like the HoloLensForCV project leverages the HoloLens research mode: https://docs.microsoft.com/en-us/windows/mixed-reality/develop/platform-capabilities-and-apis/research-mode

Do you mean that you want the spatial mesh's surface material to reflect the colors of the objects mapped in the real world?

stale[bot] commented 2 years ago

This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.

chenritiana commented 2 years ago

Hello!Have you solved this promlem?I also want to get the real world's color.

Gunther2689 commented 2 years ago

Hello!Have you solved this promlem?I also want to get the real world's color.

You can get the raw depth images and color images by HoloLens2forCV

IssueSyncBot commented 9 months ago

We appreciate your feedback and thank you for reporting this issue.

Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.

Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.

Please note that MRTK3 was released in August 2023. It features an all new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visithttps://www.mixedrealitytoolkit.org.

Thank you for your continued support of the Mixed Reality Toolkit!