<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: visionOS 3D-Tiles in Swift Maps SDK Questions</title>
    <link>https://community.esri.com/t5/swift-maps-sdk-questions/visionos-3d-tiles/m-p/1566932#M480</link>
    <description>&lt;P&gt;Thank you that makes sense. I'll keep note of it.&lt;/P&gt;
&lt;P&gt;In the meantime, I know this doesn't fit your exact use case but it may be worth noting. You can create your own tabletop map for visionOS by attaching one of our views to a `RealityView` via &lt;A href="https://developer.apple.com/documentation/realitykit/realityview/init(make:update:placeholder:attachments:)" target="_self"&gt;this&lt;/A&gt; constructor. That won't provide the true 3D experience you are wanting with the layers but may be something worth checking out in the meantime.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2024 19:44:19 GMT</pubDate>
    <dc:creator>ZacharyKline</dc:creator>
    <dc:date>2024-12-10T19:44:19Z</dc:date>
    <item>
      <title>visionOS 3D-Tiles</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/visionos-3d-tiles/m-p/1565617#M476</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;Really exciting that you're supporting visionOS now, thank you for your great work!&lt;BR /&gt;My understanding is that there's currently no support for 3D-Tiles on visionOS at the moment.&amp;nbsp;&lt;BR /&gt;I am currently trying to build an application that leverages 3D tiles and i would really like to evaluate your framework for this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So my question is:&amp;nbsp;&lt;BR /&gt;Is it possible to utilise 3D-tiles on visionOS at the moment and if not, is this planned for a future release?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;David&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 15:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/visionos-3d-tiles/m-p/1565617#M476</guid>
      <dc:creator>DavidCredo</dc:creator>
      <dc:date>2024-12-06T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: visionOS 3D-Tiles</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/visionos-3d-tiles/m-p/1566429#M477</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thank you for sharing your excitement for visionOS support. We are excited too!&lt;/P&gt;
&lt;P&gt;Can you clarify what type of experience you are expecting for your app? Currently, we do support 3D tiles in visionOS in a 2D window using the &lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/ogc3dtileslayer" target="_self"&gt;OGC3DTilesLayer. &lt;/A&gt;We have an example of that layer being used &lt;A href="https://developers.arcgis.com/swift/sample-code/add-3d-tiles-layer/" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; I can't say much about what to expect in the future other than we are looking into and hoping to expand our support beyond the 2D window.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 20:26:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/visionos-3d-tiles/m-p/1566429#M477</guid>
      <dc:creator>ZacharyKline</dc:creator>
      <dc:date>2024-12-09T20:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: visionOS 3D-Tiles</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/visionos-3d-tiles/m-p/1566604#M478</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for the quick response!&amp;nbsp;&lt;BR /&gt;2D Window support is great, however, my use-case requires visionOS Volumes.&lt;BR /&gt;The &lt;A href="https://developers.arcgis.com/swift/scenes-3d/display-scenes-in-augmented-reality/" target="_self"&gt;Table-Top View&lt;/A&gt; most closely resembles what i am going for.&amp;nbsp;&lt;BR /&gt;If there's any way i can help migrate existing code for visionOS, I'd be happy to help.&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 06:38:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/visionos-3d-tiles/m-p/1566604#M478</guid>
      <dc:creator>DavidCredo</dc:creator>
      <dc:date>2024-12-10T06:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: visionOS 3D-Tiles</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/visionos-3d-tiles/m-p/1566932#M480</link>
      <description>&lt;P&gt;Thank you that makes sense. I'll keep note of it.&lt;/P&gt;
&lt;P&gt;In the meantime, I know this doesn't fit your exact use case but it may be worth noting. You can create your own tabletop map for visionOS by attaching one of our views to a `RealityView` via &lt;A href="https://developer.apple.com/documentation/realitykit/realityview/init(make:update:placeholder:attachments:)" target="_self"&gt;this&lt;/A&gt; constructor. That won't provide the true 3D experience you are wanting with the layers but may be something worth checking out in the meantime.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 19:44:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/visionos-3d-tiles/m-p/1566932#M480</guid>
      <dc:creator>ZacharyKline</dc:creator>
      <dc:date>2024-12-10T19:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: visionOS 3D-Tiles</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/visionos-3d-tiles/m-p/1676039#M651</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/413766"&gt;@ZacharyKline&lt;/a&gt;&amp;nbsp;that was a great starting point. If anyone, like me, comes across this years later here's some starting code to get this going with attachments. You'll see I have a little drag handler component to move my map around in the RealityView like its a normal window. The advantage of using this instead of normal window is now I can manipulate it like an Entity and set up collision with other custom Entities. There's more to it but this is a cleaned up section because so much of my code is in prototyping at the moment.&lt;/P&gt;&lt;P&gt;Also found this code pretty helpful as a great starting point for simple attachments:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/satoshi0212/visionOS_30Days/blob/main/Day28/Day28/View/ImmersiveView.swift" target="_blank"&gt;https://github.com/satoshi0212/visionOS_30Days/blob/main/Day28/Day28/View/ImmersiveView.swift&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;@State private var dragStartPos: SIMD3&amp;lt;Float&amp;gt;?
@State private var mapDragStartPos: SIMD3&amp;lt;Float&amp;gt;?
    
var body: some View {
    RealityView { content, attachments in
            if let mapView = attachments.entity(for: "map_viewer"),
               let handleView = attachments.entity(for: "drag_handle"){
                // Position in front of user at eye level
                mapView.position = SIMD3(x: 0, y: 1.5, z: -1.5)
                
                // Position handle below the map (in local coordinates of map)
                handleView.position = SIMD3(x: 0, y: -0.31, z: 0.01)
                handleView.components.set(InputTargetComponent())
                // try using collision component with filter to track activation gesture (pinch)
                var collision = CollisionComponent(shapes: [.generateBox(width: 0.2, height: 0.08, depth: 0.05)])

                collision.filter = CollisionFilter(group: DragHandle.collisionGroup, mask: .all)

                handleView.components.set(collision)
                            
                mapView.addChild(handleView)
                content.add(mapView)
            }
        }
        attachments: {
            Attachment(id: "map_viewer") {
                MapViewer()
                    .frame(width: 1200, height: 800)
                    .glassBackgroundEffect()
            }
            
            Attachment(id: "drag_handle") {
                DragHandleView()
            }
        }
        .gesture(
            DragGesture()
                .targetedToAnyEntity()
                // prevent direct touch
                .handActivationBehavior(.pinch)
                .onChanged { value in
                    guard value.entity.components[CollisionComponent.self]?.filter.group == DragHandle.collisionGroup,
                          let parent = value.entity.parent,
                          let grandparent = parent.parent else { return }
                    
                    let currentPos = value.convert(value.location3D, from: .local, to: grandparent)
                    
                    // First frame: capture starting positions
                    if dragStartPos == nil {
                        dragStartPos = currentPos
                        mapDragStartPos = parent.position
                    }
                    
                    // Calculate delta from drag start and apply to original entity position
                    if let dragStart = dragStartPos, let mapDragStart = mapDragStartPos {
                        let delta = currentPos - dragStart
                        parent.position = mapDragStart + delta
                    }
                }
                .onEnded { _ in
                    // Reset for next drag
                    dragStartPos = nil
                    mapDragStartPos = nil
                }
        )
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 06:41:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/visionos-3d-tiles/m-p/1676039#M651</guid>
      <dc:creator>youknowww</dc:creator>
      <dc:date>2026-01-06T06:41:41Z</dc:date>
    </item>
  </channel>
</rss>

