Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When will Apple Vision OS be supported? #664

Open
Cardano-DoubleMe-Me opened this issue Dec 27, 2023 · 2 comments
Open

When will Apple Vision OS be supported? #664

Cardano-DoubleMe-Me opened this issue Dec 27, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Cardano-DoubleMe-Me
Copy link

I tried running the existing code in the vision os simulator. However, the following error occurred.

InvalidOperationException: Trying to access unloaded resource! [4804dc94-e572-4308-9fa4-523fea46bc56 (has 1 polyspatial refs, is not unity referenced): resource alive: False iid=-583802 name=Shader Graphs/MaskingShader type=Material
Unity.PolySpatial.Internals.AssetRepresentation.get_Resource () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/AssetManagement/AssetRepresentation.cs:39)
Unity.PolySpatial.Internals.LocalAssetManager.GetRegisteredResource (Unity.PolySpatial.Internals.PolySpatialAssetID assetID) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/AssetManagement/LocalAssetManager.cs:522)
Unity.PolySpatial.Internals.LocalAssetManager.GetRegisteredResource[T] (Unity.PolySpatial.Internals.PolySpatialAssetID assetID) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/AssetManagement/LocalAssetManager.cs:532)
Unity.PolySpatial.Internals.SpriteRendererTracker.CreateUpdateSpriteRendererMaterialIfNeeded (Unity.PolySpatial.Internals.PolySpatialSpriteRendererTrackingData* destination) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/SpriteRendererTracker.cs:107)
Unity.PolySpatial.Internals.SpriteRendererTracker.TransferObjectData (UnityEngine.SpriteRenderer source, Unity.PolySpatial.Internals.TrackingData1[Unity.PolySpatial.Internals.PolySpatialSpriteRendererTrackingData]* trackingData, Unity.PolySpatial.Internals.IChangeListWritable1[TEngineData] engineData) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/SpriteRendererTracker.cs:310)
Unity.PolySpatial.Internals.UnityObjectTracker`3[TObject,TEngineData,TTrackingData].TransferObjectData (TObject source, TTrackingData* trackingData) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/UnityObjectTracker.cs:174)
Unity.PolySpatial.Internals.UnityObjectTracker`3[TObject,TEngineData,TTrackingData].TransferObjectAndUpdateTrackingData (UnityEngine.Object o, TTrackingData* data) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/UnityObjectTracker.cs:474)
Unity.PolySpatial.Internals.SpriteRendererTracker.TrackNewAndModifiedObjects (UnityEngine.Object[] changedObjects) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/SpriteRendererTracker.cs:590)
Unity.PolySpatial.Internals.UnityObjectTracker`3[TObject,TEngineData,TTrackingData].FetchTypeCallback (Unity.PolySpatial.Internals.ObjectDispatcherProxy+TypeDispatchData data) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/UnityObjectTracker.cs:269)
Unity.PolySpatial.Internals.ObjectDispatcherProxy.<.ctor>b__12_0 (UnityEngine.TypeDispatchData real) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/InternalBridge/BridgeUtils.cs:118)
UnityEngine.ObjectDispatcher+<>c.<.cctor>b__54_0 (UnityEngine.Object[] changed, System.IntPtr changedID, System.IntPtr destroyedID, System.Int32 changedCount, System.Int32 destroyedCount, System.Action`1[T] callback) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Misc/ObjectDispatcher.bindings.cs:162)
UnityEngine.ObjectDispatcher:DispatchTypeChangesAndClear(Type, Action`1, Boolean, Boolean)
Unity.PolySpatial.Internals.ObjectDispatcherProxy:DispatchTypeChangesAndClear(Type, Action`1) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/InternalBridge/BridgeUtils.cs:180)
Unity.PolySpatial.Internals.UnityObjectTrackerBase:FetchDirtyOneTypeIntoLists(Type) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/UnityObjectTracker.cs:30)
Unity.PolySpatial.Internals.UnityObjectTracker`3:TrackObjectChanges(LayerMask) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/UnityObjectTracker.cs:249)
Unity.PolySpatial.Internals.PolySpatialUnityTracker:TrackObjectChanges(LayerMask) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/PolySpatialUnityTracker.cs:189)
Unity.PolySpatial.Internals.PolySpatialUnitySimulation:Update() (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/PolySpatialUnitySimulation.cs:148)
Unity.PolySpatial.Internals.PolySpatialCore:PolySpatialAfterLateUpdate() (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/PolySpatialCore.cs:638)

When will Vision OS be supported? Or is it currently being supported?

@Cardano-DoubleMe-Me Cardano-DoubleMe-Me added the enhancement New feature or request label Dec 27, 2023
@Cardano-DoubleMe-Me Cardano-DoubleMe-Me changed the title When will vision OS be supported? When will Apple Vision OS be supported? Dec 27, 2023
@atteneder
Copy link
Owner

Hi @Cardano-DoubleMe-Me ,

I tried glTFast on vision OS Simulator first time today. My discoveries so far:

  • Loading via default DownloadProvider (i.e. UnityWebRequest) fails
  • Textured models cause an exception
  • Lighting/shaders don't look correct (too dark)

But I managed to load a binary glTF successfully (via manual script and TextAsset.bytes).

How exactly do you load your glTF? Via TextAsset? From a Resources folder?

@atteneder
Copy link
Owner

I created a generic Vision OS issue in #666.

Keeping this one open until we've solved your resource loading issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants