Skip to content

Instantly share code, notes, and snippets.

View elkraneo's full-sized avatar
👾
Spacing

Cristian Díaz elkraneo

👾
Spacing
View GitHub Profile
@elkraneo
elkraneo / 3d-viewport-navigation.md
Last active October 26, 2026 09:41
How 3D apps navigate the viewport on macOS (2026): orbit/pan/zoom/frame across 15 apps, sourced

How 3D apps navigate the viewport (macOS, 2026)

A sourced comparison of orbit, pan, zoom and frame bindings in 15 3D apps, made while designing navigation presets for our own viewports. Every row comes from the vendor's docs, the app's source code, or the installed app's own files. Corrections are welcome.

Mouse

App Orbit Pan Zoom / dolly Frame selection
@elkraneo
elkraneo / FB25173225.md
Last active October 13, 2026 15:00
FB25173225: USDKit: entities generated by USDStageComponent are missing from Scene.performQuery and send no ComponentEvents

USDKit: entities generated by USDStageComponent are missing from Scene.performQuery and send no ComponentEvents

FB25173225

Filed with Apple Feedback Assistant on 2026-10-13 (Developer Technologies & SDKs → RealityKit). Status: open.

On macOS 27.0.1 (26A434), Xcode 27.0 (27A266a), the ModelEntities that USDStageComponent generates render and are reachable through children. But scene.performQuery(EntityQuery(where: .has(ModelComponent.self))) doesn't return any of them, and ComponentEvents.DidAdd doesn't fire for them. A control ModelEntity in the same scene is returned and sends the event. The stage entity itself is returned by .has(USDStageComponent.self).

The attached package reproduces it with Apple frameworks only: swift run USDKitQueryRepro Output (3 of 3 runs):

@elkraneo
elkraneo / FB25173230.md
Last active October 13, 2026 15:00
FB25173230: RealityView: setting renderingEffects.customPostProcessing in the make closure crashes (EXC_BREAKPOINT in ARView.renderCallbacks.setter)

RealityView: setting renderingEffects.customPostProcessing in the make closure crashes (EXC_BREAKPOINT in ARView.renderCallbacks.setter)

FB25173230

Filed with Apple Feedback Assistant on 2026-10-13 (Developer Technologies & SDKs → RealityKit). Status: open.

On macOS 27.0.1 (26A434), Xcode 27.0 (27A266a), MacBook Pro M1, setting content.renderingEffects.customPostProcessing = .effect(…) in a RealityView's make closure traps every time (5/5) inside ARView.renderCallbacks.setter. Setting it in update: traps intermittently (2/5, then 3/5). Setting it after the first SceneEvents.Update works (0/5, effect attached every time).

The attached package reproduces it with a pass-through PostProcessEffect and Apple frameworks only: swift run PostProcessTimingRepro make (or: update, deferred)

Mac virtual display can be seen in video reflections

FB16088956

If the video URL is not properly provided to the player while developing on-device using Mac Virtual Display and implementing a video player that uses video reflections in an immersive space, reflections will use the Mac mirroring feed. This can be reproduced using the Xcode template for immersive spaces and without providing a URL https://youtu.be/kNf2F4tSzJI

Resizing plate reports incorrect limits back

FB16078171

Allowing the window containing a TabletopKit game to be resized makes interaction with equipment incorrect. When moving equipment on default scale equipment around the table, it is possible to the limits of the volume, but once resized, the reported limits are not correct, limiting to a smaller boundary than any of the containers. https://youtu.be/nZPHbDi0kU8

PortalComponent does not honor system font size

FB16078175

When using text-containing attachments, if the generated entity is displayed through a portal, subsequent changes to the font size settings are not honored correctly, keeping the font size fixed.

Optional physics sorting for held equipment

FB16078178

We've seen users hold various pieces of equipment in different hands and try to combine them for real-life applications (e.g., constructing puzzles, a magnifier on top of a map, a flashlight to reveal the contents of a slate), resulting in conflicting physical sorting of the equipment. It will boost the utility if the sorting process could be opted out to allow this type of interaction without getting to the extreme of removing completely the equipment from the physics simulation.

Accessibility of gameplay actions by default

FB16078179

Currently, there is no out-of-the-box accessibility on TabletopKit; it would be helpful if the equipment could include and expose an AccessibilityComponent to generate a smoother API that allows gameplay in an accessible manner, such as custom rotors or voice commands for actions.

Localization issues in the Reality Composer Pro inspector

FB16078184

When entering decimal numbers into the inspector, if a period is used instead of a comma, the value is not recognized and the field is reset. This behavior is inconsistent with the rest of the app, as it behaves the reverse way on the shader graph inspector fields. It appears to be a localization issue; my system is configured with English US as the primary language and Germany as the region.

Rendering issues with visible baseplate and attachments

FB16078186

When trying to create a resizable TabletopKit game that uses SwiftUI attachments in the equipment, some z-fighting happens during the rendering. As soon as you apply the volumeBaseplateVisibility(.hidden), the display behaves as expected, but this limits the ability to resize the window.