Repository navigation
Scene Mode
Pre-release
Pre-release
This release introduces the new Scene Mode, important resource management improvements, and enhances core AR functionalities.
π New Features
- Scene Mode (
mode="scene"):- Define 3D scenes directly in HTML using primitive elements like
<kitcore-webar-box>,<kitcore-webar-sphere>,<kitcore-webar-cylinder>, and<kitcore-webar-plane>. - Initially displays the scene in an interactive 3D viewer with orbit controls.
- Includes an AR button (auto-generated or custom
kitcore-webar-button) to seamlessly transition the entire defined scene into an immersive WebXR AR experience, anchored to your starting position.
- Define 3D scenes directly in HTML using primitive elements like
β¨ Enhancements
- Improved AR Stability: Refinements to the AR session lifecycle and rendering loop for smoother experiences across all AR modes (Floor, Wall, GPS, Anchors, and Scene).
- GPS/Anchor Object Handling: Better management and updates for objects in GPS and Anchors modes, including reliable
lookatuserbehavior. - Placement Feedback: More robust hit-testing feedback during object placement in Floor and Wall modes.
π Fixes
- Geolocation Cleanup: Implemented proper cleanup for
navigator.geolocation.watchPositioninstances. Active location watchers started when usingenableGPSorenableAnchorsare now correctly removed when the<kitcore-webar>component is disconnected from the DOM, preventing potential resource leaks and background activity.