microsoft / MixedReality-SpectatorView

Mixed reality spectator experiences
MIT License
193 stars 114 forks source link

Hololens gen 1 & Charts #265

Open AtixD opened 4 years ago

AtixD commented 4 years ago

Hello, I using Graph And Charts (https://assetstore.unity.com/packages/tools/gui/graph-and-chart-78488). Works on hololens wery well, but if use spectator view with ios, not showes on device. SpectatorView v.1.0.3. Unity - v 2018.4.12

AtixD commented 4 years ago

I understand that this asset uses dynamic materials for rendering, how can I get around this?

chrisfromwork commented 4 years ago

Does this project use dynamic textures as well (meaning it creates textures on the fly)? Or do materials get created from known shaders/properties?

AtixD commented 4 years ago

@chrisfromwork Yes, materials get created from known shaders and properties.

chrisfromwork commented 4 years ago

@AtixD if you look at the Material Property Assets defined in your MaterialPropertyAssetCache, do any elements reference the shader you care about/the properties you intend to dynamically manipulate/create with Graph and Charts? If not, you may be able to unblock yourself by:

1) Create and declare a material that uses the desired Graph and Charts shader(s) in one of your Unity scenes. 2) Rerun asset cache generation.

If everything goes well, you will have new elements defined in your MaterialPropertyAssetCache that pertain to the shader(s) you care about. This will allow both devices to assess and send material properties to one another related to your Graph and Charts content.

That going said, there are a variety of reasons that your content may not be appearing on the iOS device. I believe that our synchronization stack defaults to a fallback shader if the specific shader you care about can't be found. If you try the following, do you see objects created in your editor?

1) Open the SpectatorViewPerformance scene 2) Open the Spectator View performance window (Spectator View -> Performance) 3) Run the UWP Unity player in the editor 4) Use the performance window to attach to the HoloLens running your application

You should see content created in the editor that matches the content you see on the headset. If things appear correctly here, there may be some issues with the shader definitions you are using on iOS. If nothing appears here, you may not be synchronizing your content correctly.

If you see any errors/warnings in the editor or in your visual studio console log when running these steps, let us know and we may be able to better troubleshoot.