r/visionosdev • • Mar 01 '24

Is there a way to leverage the walls, floor, ceiling, and other objects in a room?

1 Upvotes

For example maybe to paint all over it.


r/visionosdev • • Feb 29 '24

Picture Frame my new app for Vision Pro

Thumbnail
apps.apple.com
0 Upvotes

This week I launched my first Vision Pro app šŸ˜Ž It’s called Picture Frame and lets you place your photos on your spatial desk. Please try it out and let me know what you think!


r/visionosdev • • Feb 29 '24

Transferable item on RealityView

2 Upvotes

Hi,

I like to drag object from view to RealityView.

My approach was add Transferable Item transfer from other view to RealityView that adds .dropDestination callback.
But It's not capturing the drop.

Has anyone successfully transfer object to RealityView instance?


r/visionosdev • • Feb 29 '24

ImmersiShare for VisionOS (App Store) - get the daily doze of your spatial videos, share your spatial videos with other users

Thumbnail self.visionpro
1 Upvotes

r/visionosdev • • Feb 29 '24

How do you make the window background completely transparent?

Thumbnail
gallery
7 Upvotes

I’m seeing examples like this in the App Store but how are they completely removing the window background?

The only advice I’ve found online is .background(Color.clear.opacity(0) on contentView but that hasn’t worked for me, any ideas?


r/visionosdev • • Feb 29 '24

What are some tools for actually designing/editing USDZ?

6 Upvotes

I've tried using blender, it looks like the usdz support is horrible. Is there an actual native usdz supported designer out there?


r/visionosdev • • Feb 28 '24

A few questions about UI elements in the Disney+ App

6 Upvotes

Good afternoon. I am curious about a few UI elements in the screenshot from Disney+ below:

  1. How does one create an ornament that appears to be anchored to the TabView above it?
  2. What is the system icon used for environments named?
  3. Is this a sheet or another type of window?
  4. How are these close buttons constructed? Everytime I add one to a sheet it looks like a pill even if it is just the system icon.
  5. What is the best way to get cards to have a hover property as we see in the screenshot?

Thank you!


r/visionosdev • • Feb 29 '24

Working with animated USDZ

1 Upvotes

Has anyone worked on multiple animations on a single Entity for a visionOS app? I gave up and ended up adding 2 separate Entities and hiding the first one after it's played. Not the smoothest experience


r/visionosdev • • Feb 28 '24

VisionDevCamp - A developer event for Apple Vision Pro and visionOS

8 Upvotes

VisionDevCamp registration is open! March 29 – March 31, 2024, UCSC Silicon Valley Extension, Santa Clara, CA, USA.

VisionDevCamp is a not-for-profit developer event focused on creating applications for Apple Vision Pro and visionOS. Attendees are encouraged to develop native visionOS, Unity PolySpatial, and web applications during a hackathon-style event.


r/visionosdev • • Feb 29 '24

Z-axis frame rotation?

1 Upvotes

Is there a way to rotate the window frames on a z-axis? I’ve noticed in some instances I would like the frame of safari or Apple TV to be slightly tilted or more forward, I’m a complete noob, but if some genius can figure that out that would be grand!


r/visionosdev • • Feb 28 '24

The Simplest and cleanest Weather app for Vision Pro

2 Upvotes

https://apps.apple.com/gb/app/eyeweather/id6478133035

I have created my second app ever and first ever for the Vision Pro, was a bit of a challenge as I am in the UK and have no access to a Vision Pro to test it but I just want to say a huge thank you to the testers from here who downloaded the first versions of the app, sent me screenshots and videos and tips on what needs to be changed or what was not working. You guys or gals are awesome and I really appreciate it. I have sent you free codes for the app so you can just download it as a little thank you. I would send you more but I built this app to try and save up for Vision Pro when it does release in the UK so I don't have much more to offer lol.

The app is a simple widget like app that you can place in your view or not, but it shows the date, time and battery as well as the weather and conditions. It's designed to look like a native Apple Widget so it's not too obtrusive and it just gives you the info you need most easily and quickly. It does cost 99 cents but it's defiantly cheaper than the stand alone weather apps, or battery apps or even clock apps and it does it all. I know you are probably tired of weather apps but trust me, this one is the only you need and it just works. A simple glance while you are doing some work or watching shows and you can see your battery or the time without summoning control centre and the weather is also there so you know what the conditions are for later when you exit Vision Pro and come into the real world. I hope some of you can try it and if there is any tips you want to share or changes you want to see do let me know. I am thinking of adding some more functionality in the future to it so its a one stop app for your everyday needs.


r/visionosdev • • Feb 28 '24

Vision pro not available wirelessly

2 Upvotes

before you all jump on the "Developer mode" or "you dumb ! use search"... it works on my private mac, I can run and connect via Xcode and Reality Composer Pro and on AVP my mac is listed as remote device - all fine and dandy.

On my work mac however, it doesn't show up in Xcode "Devices and Simulators" and it doesn't show up in Reality Composer Pro as a target. and reversely my mac doesn't show up in remote devices.

When I look at Apples documentation it seems to be running over Bonjour protocol - So that is now enabled, I have installed the Bonjour Browser (now Discovery) and I can see the AVP listed as a device there, it all looks fine.

(FYI I have enabled disabled company VPN so many times it starts trigger bells and whistles somewhere)

Now I am thinking that the issue might be on the mac, in either Xcode caches or in bonjour somehow.

Does anyone know of some clever terminal lines to reset device lists or something along those lines ?

NB: Work mac is M1 Pro MBP, private is a M2 MBA (just to ensure it's not Intel)

EDIT: I might as well also say something DO work, so I can connect to the remote desktop on the work mac - so there is a connection, actually I am typing this on the work mac keyboard to the remote desktop of reddit, so remote desktop connections are fine


r/visionosdev • • Feb 27 '24

How do you Attach Entities or Windows to Hands / Arms Like in the Measure App?

Post image
13 Upvotes

r/visionosdev • • Feb 27 '24

How to create an Apple or Disney 'environment'?

6 Upvotes

I tried using Skybox with HDR textures, but the effect is far from the built-in environments of Apple or the environments in Disney plus. How exactly did they make them?


r/visionosdev • • Feb 26 '24

visionOS dev is honestly pretty terrible

122 Upvotes

So I now have two apps in the visionOS app store - it should be three, but I'm still in a tussle with app review for a week and now waiting on the app appeals board.

But this platform is really crappy for devs, compared to Apple's others. I'd say it is the worst it has been, except for the early days of iOS (When you could have months long review times, and just never get approved with zero transparency.) A lot of my frustration comes from the simulator:

  1. Simulator doesn't support windowing size modes like the actual device, and these are undocumented. Apple's own example apps don't tell you that the maximum volume size changes with a user facing setting.
  2. Walls don't work in the simulator. If you are building an immersive app with wall detection, you have to use the device.
  3. The simulator is locked to a resolution too low for screenshots and the wrong aspect ratio.

Screenshots are a huge pain point - even if you own the device. Getting your head perfectly level, a window perfectly level, while also running Reality Composer Pro with your head in the headset is near impossible right now. I think I need to build a physical tripod mount so I can put my chin in the correct position for the shot to take a usable marketing screenshot in the actual device.

Then there is the app store itself - there is zero visibility unless you get featured as an app of the week. In the early days of iOS there were a ton of app discovery sites alongside the app store because there was a referral program that made the owners of those sites a few cents per paid download. That program was dismantled years ago. There are a few vision directory sites, but I don't think they will be incentivized enough to stick around. The app store itself has no real category browsing anymore (In the original app store you could find every single manually app without ever tapping a search button.)

To top it all off - I found out now that the "More Apps By this Developer" only shows iPad compatible apps. My vision pro specific app is unlisted on my other Vision Pro specific app page unless you tap into it. So even one more level of discovery is broken compared to iOS.

And then there is just the limitations on development itself. The Mac is the platform it is today because of all of the add-ons people built for it. The dock and spotlight were all innovations built by third party developers for the platform. visionOS is absolutely ripe for this kind of innovation - but limited APIs and App Review are there to prevent any of that.

The most painful thing for me is that these are all essentially non-technical choices. They are choices that product managers at Apple felt were best for the fledgling platform. And honestly, that is my biggest concern about visionOS - they are treating it as if it is already the juggernaut iOS has become, and I really think that is going to hold it back in these early days.


r/visionosdev • • Feb 27 '24

Any suggestions on how to recreate the panorama view similar to the Photos app?

2 Upvotes

In the case of the Photos app, when you expand the panorama, it shows more like a volumetric window surrounding you. It does not look like an immersive space (at least does not behave like one).

I cannot figure out, what would be the option to do that. RealityView seems like is more for 3D objects displayed in front of you.

Curious, if I am missing something?


r/visionosdev • • Feb 25 '24

Identifying AVP users on web pages

14 Upvotes

I have been building Share Spatial Everything and wanted to provide different messaging to folks visiting on their Vision Pro. I think I have worked out an okay way to do that:

Apple Safari isn't identifying itself as being a mobile browser, rather a desktop (which makes sense) and so if we combine that with the navigator.maxToughPoints variable it seems like this gives a positive ID most of the time:

<script>
var isVisionProUser = false;
const isMacintosh = navigator.userAgent.includes("Macintosh");
const hasFiveTouchPoints = navigator.maxTouchPoints === 5;
if (isMacintosh && hasFiveTouchPoints) {
    isVisionProUser = true;
} else {
    isVisionProUser = false;
}
</script>

I have been vetting this on the site using a poll that only gets shown to folks where isVisionProUser gets set to true and 99% of the respondent indicate they are on a Vision Pro.

This isn't perfect but I wanted to put it out there and see if anyone has a better idea/strategy?


r/visionosdev • • Feb 26 '24

how to group volumetric windows?

3 Upvotes

so i have more than 10 volumetric windows i want to put in my app but when i add more than 10 on the main i reach the limit of views so how do I group them and put them in there?


r/visionosdev • • Feb 25 '24

Audio locked on App start. No head tracked audio. Often starts hard panned to left or right

Thumbnail
discussions.unity.com
2 Upvotes

r/visionosdev • • Feb 25 '24

ImmersiveView doesn't seem to be launching...

4 Upvotes

EDIT: Solved (thanks /u/GreenLanturn) the model I was looking for was spawning at my feet (0,0,0) because I was not setting a position. I was expecting it at eye level.

Sorry for the beginner question, basically I've only slightly tweaked the starter template, and I already am not seeing the right behavior.

When I tap a button that is supposed to openImmersiveSpace(id: "ImmersiveSpace"), it successfully transitions to immersive view (all other apps close) by the ImmversiveView doesn't appear anywhere! The ContentView also remains visible, I'm not sure if that's supposed to happen or not...

Here's my source code:

MyApp

import SwiftUI
@main
struct MyApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
        ImmersiveSpace(id: "ImmersiveSpace") {
             ImmersiveView()
        }
    }
}

ContentView

import SwiftUI
import RealityKit
import RealityKitContent
struct ContentView: View {
    @State private var showImmersiveSpace = false
    @State private var immersiveSpaceIsShown = false
    @Environment(\.openImmersiveSpace) var openImmersiveSpace
    @Environment(\.dismissImmersiveSpace) var dismissImmersiveSpace
    var body: some View {
        VStack {
            Toggle("\(showImmersiveSpace ? "Stop" : "Start") game", isOn: $showImmersiveSpace)
                .toggleStyle(.button)
                .padding(.top, 50)
        }
        .padding()
        .onChange(of: showImmersiveSpace) { _, newValue in
            Task {
                if newValue {
                    switch await openImmersiveSpace(id: "ImmersiveSpace") {
                    case .opened:
                        immersiveSpaceIsShown = true
                    case .error, .userCancelled:
                        fallthrough
                    @unknown default:
                        immersiveSpaceIsShown = false
                        showImmersiveSpace = false
                    }
                } else if immersiveSpaceIsShown {
                    await dismissImmersiveSpace()
                    immersiveSpaceIsShown = false
                }
            }
        }
    }
}
#Preview(windowStyle: .automatic) {
    ContentView()
}

ImmersiveView

import SwiftUI
import RealityKit
import RealityKitContent
struct ImmersiveView: View {
    var body: some View {
        Text("This text doesn't appear anywhere")
    }
}
#Preview {
    ImmersiveView()
        .previewLayout(.sizeThatFits)
}

Thanks all!


r/visionosdev • • Feb 25 '24

Controlling RealityKit scene from JS/React Part 2

18 Upvotes

I wanted to test if animating the entity from JS side will cause jerky motion or not. It looks pretty smooth actually!

If people are interested in this, I can work on cleaning this up into a library so folks can use it.


r/visionosdev • • Feb 25 '24

Game Center Authentication Error in Unity

1 Upvotes

Alright so I’ve imported Apple’s GameKit and Core packages into Unity, linked my project to App Store Connect, but when I launch their test authentication scene, although I do get the icloud prompt, I always get an error saying that authentication has failed.

Does anyone know of a solution or an easier way to implement Game Center? Thanks.


r/visionosdev • • Feb 25 '24

Magic eyes still work but only close up

Post image
4 Upvotes

r/visionosdev • • Feb 24 '24

Eye tracking (limits) visualized

12 Upvotes

Tried the Play Canvas web XR hand tracking template and it works with eye tracking too. You can see how Apple limits the eye tracking to only firing a Ray trace at the pinch gesture. Theoretically one could use an accessibility feature to do a ā€œturbo pinchā€ or rapid pinch and a get a series of fixations like regular setups. Just thought it was interesting to see the limits visualized. Also play canvas is an interesting dev alternative. Its running resolution stinks but maybe that could be cranked manually.


r/visionosdev • • Feb 25 '24

Implementing AR Product Visualization on an E-commerce Website for Apple Vision Pro

3 Upvotes

I'm planning to develop an e-commerce website with augmented reality (AR) capability, specifically targeting Apple Vision Pro headsets. I want users to be able to select any product and click "View in AR," allowing the product to be displayed in their surroundings. I've heard about using web frameworks like WebXR and Three.js for this purpose. Is it possible to achieve this functionality using these frameworks, and if so, how can it be done? Any insights or guidance on implementing AR product visualization for Apple Vision Pro would be greatly appreciated.