jetstyle / Apple-Vision-Pro-UI-Kit

Free UI asset kit you can use to prototype and test interactive interfaces in Apple Vision Pro’s design system. Compatible with any XR headset with pass-through mode, including Meta Quest and Meta Quest Pro.
https://jet.style/news/free-unity-asset-kit-for-early-apple-vision-pro-developers
MIT License
327 stars 29 forks source link

window become gary in AppleVisionPro #5

Closed chaoslife closed 7 months ago

chaoslife commented 7 months ago

Hi, I created a new window and the effect was right in UnityEditor. When packaged into AVP, the window turned gray and had no blur effect, including other UIs that were different from those displayed in the Editor.

Did I forget to set it somewhere?

chaoslife commented 7 months ago

my app mode is MR - volume

ariestav commented 7 months ago

@chaoslife When I go to "File > Run and Build..." everything seems to get built without errors, but all bitmaps (PNG) shaders, and even the environment do not seems to render at all. All I see is a gray background. Did you manage to get the demo to work?

chaoslife commented 7 months ago

@chaoslife When I go to "File > Run and Build..." everything seems to get built without errors, but all bitmaps (PNG) shaders, and even the environment do not seems to render at all. All I see is a gray background. Did you manage to get the demo to work?

I can build successfully and run it in AVP, but the semi-transparent material of the UI is not supported and becomes opaque.

JetNik commented 7 months ago

Hello, this package is for prototyping Vision Pro interfaces on other devices (Quest 2, Quest Pro, Quest 3). Our shaders do not work on Vision Pro device. I recommend you to use Unity's Polyspatial package together with Apple's SwiftUI (the Polyspatal package samples have an example of linking SwiftUI with Unity) to achieve an interface like in Vision Pro system apps. Maybe in the future we can modify our shaders to work on Vision Pro, but for now the Polyspatial package has some shader issues.

chaoslife commented 7 months ago

Hello, this package is for prototyping Vision Pro interfaces on other devices (Quest 2, Quest Pro, Quest 3). Our shaders do not work on Vision Pro device. I recommend you to use Unity's Polyspatial package together with Apple's SwiftUI (the Polyspatal package samples have an example of linking SwiftUI with Unity) to achieve an interface like in Vision Pro system apps. Maybe in the future we can modify our shaders to work on Vision Pro, but for now the Polyspatial package has some shader issues.

thanks reply

ariestav commented 7 months ago

@JetNik I still cannot get the shaders to work within Unity editor or player. I understand that this is about getting a prototype of a Vision Pro in a Quest. It makes sense. However, when I open in Unity, none of the textures nor the environment is showing. I have downloaded the repository for this along with the demo file. You can see from my attached image, that nothing is showing up. Any thoughts?

I do not know how to go about addressing error you see in the screenshot, but don't know if that's the answer to the issue of the textures / bitmaps (PNGs) not showing in the Unity editor or the player. Any tips?

Screenshot 2024-03-18 at 1 06 12 PM
JetNik commented 7 months ago

Let's continue in your issue in the demo scene repository at this link, I gave you an answer in that issue.

What about your error in the console: from a question in another repository, I understand that you are using macOS, and this error says that the Oculus XR Plugin needs DirectX11, which is only available in Windows settings. This means you probably can't build the same demo on macOS.

@JetNik I still cannot get the shaders to work within Unity editor or player. I understand that this is about getting a prototype of a Vision Pro in a Quest. It makes sense. However, when I open in Unity, none of the textures nor the environment is showing. I have downloaded the repository for this along with the demo file. You can see from my attached image, that nothing is showing up. Any thoughts?

I do not know how to go about addressing error you see in the screenshot, but don't know if that's the answer to the issue of the textures / bitmaps (PNGs) not showing in the Unity editor or the player. Any tips?

Screenshot 2024-03-18 at 1 06 12 PM
ariestav commented 7 months ago

@JetNik Ah! So it is thus a macOS issue, I may be able to try and build on a Windows system. I figured that if you are building a prototyping tool for an Apple device (Vision Pro) that it would work on Unity running on macOS. I will try Windows and report back when I find out more. Thank you for your time.