A-Frame v0.6.0 Release Notes
Release Date: 2017-06-29 // almost 7 years ago-
- ๐ Link traversal for navigating from page to page while staying in VR. Support
- for VR controllers across the board with the addition of Daydream and GearVR
- ๐ controller components as well as laser interactions. Large performance
- ๐ improvements around
.getAttribute
and.setAttribute
.
Major Changes
- โฌ๏ธ Bumped three.js to r84. (#2456)
- โก๏ธ Updated WebVR polyfill to 0.9.35. (#2700, #2818)
- โ Removed auto-enter-vr component previously for Carmel debugging. (#2784)
๐ Deprecations
- ๐ Renamed
AFRAME.utils.coordinates.isCoordinate
toAFRAME.utils.coordinates.isCoordinates
. (af3f89) - โ Removed reset sensor keyboard shortcut due to being removed from WebVR API. (#2531)
โจ Enhancements
- โ Added support for link traversal. (#1575)
- โ Added link component with default portal appearance. (#1575)
- โ Added link-controls component in the examples. (#1575)
- ๐ Daydream controller support with daydream-controls, 3DoF support to tracked-controls with head/arm model. (#2538)
- ๐ GearVR controller support with gearvr-controls. (#2545)
- ๐ฑ laser-controls component for responsive controls across 6DoF and 3DoF. (#2678)
- โ Added support for cursor component to draw a visible ray or project a mesh onto the intersection point. (#2678)
- โ Added
origin
anddirection
properties to configure raycaster component. (#2678) - ๐ Shadow support via shadow component and light properties. (#2350)
- ๐ Implement
thumbstickmoved
andaxismoved
for oculus-touch-controls. (#2513) - โก๏ธ Implement system
.update
handler. (#2548, #2613) - โ Added
controllerconnected
andcontrollerdisconnected
events. (#2505) - ๐ Handle
onvrdisplaypresentchange
events to enter and exit VR. (#2751) - ๐ฆ Exposed
material.alphaTest
andmaterial.depthWrite
properties. (#2516) - ๐ฆ Exposed glTF animations. (#2417)
- ๐ Implemented
Component.tock
handler called after scene render for future post-processing support. (#1564) - โ Added support for A-Frame being required in a Node environment. (#2476, #2477, #2484, #2492, #2498)
- ๐ Implemented
trackpadmoved
event for vive-controls component. (#2415) - โ Added
response-type
attribute to<a-asset-item>
to support array buffer responses. (#2442) - Automatically set glTF response types to array buffer. (63d2f8)
- Apply
camera.userHeight
to controller when no stage parameters (e.g., Daydream). (#2448) - ๐ Allow unsetting of mixin with
.setAttribute('mixin', '')
and.removeAttribute('mixin')
. (a173509) - ๐ Allow default lights to be disabled with
<a-scene light="defaultLightsEnabled: false">
. (#2376) - โ Added panner properties to sound component. (#2374)
- โ Added non-positional audio support to sound component. (#2490)
- ๐จ Refactored and unit test tracked-controls component. (#2396)
- โ Added triangle geometry. (#2573)
- ๐ Cleaned up cursor component when removed. (#2391)
- 0๏ธโฃ Normalized default component values to proper types rather than strings. (#2411)
- โ Removed unnecessary touching of
THREE.Cache
for asset responses. (#2435) - Throw error for developer if HTML is opened with
file://
protocol. (#2540) - Set
System.el
to the scene element. (#2566) - ๐ Use
isControllerPresent
utility rather than checkingnavigator.getGamepads
in order to fake oculus-touch-controls for motion capture. (#2604) - Check WebVR API rather than using a dolly to check for positional tracking capabilities. (#2602)
- 0๏ธโฃ Made default cone geometry look like a cone. (#2506)
- ๐ Show error message when loading Inspector. (#2525)
- โ Added validation warnings for schema default values. (#2511)
- โ Removed timestamps from debug and console messages to reduce noise. (#2550)
- ๐ Use
getElementById
vs.querySelector
for asset property types to be more strict. (#2578) - โ Added developer warnings for primitive mapping names. (#2631)
- 0๏ธโฃ Anti-alias by default on 2D desktop. (#2455)
- โ Added support for iOS 10 HLS video streaming. (#2597)
๐ Performance
- Skipped schema type checking when object is passed through
.setAttribute
more than once to consider it a validated object. (#2679) - ๐ฏ Made
.getAttribute
not clone component data object. Now returns raw reference to component data (#2689) - Disposed of unused texture objects from memory when no longer used by material component. (#2686)
- ๐ Throttled emitting of
componentchanged
event on each update to every 200ms. We recommend polling if more critical updates are needed. (#2683) - Avoided
string.split()
in.setAttribute()
to reduce memory in array instantiations. (#2674) - โ Removed duplicate asset requests by passing down
<img>
from<a-assets>
and by usingcrossorigin
from the start. (#2544) - ๐ Changed selector property types to support
getElementById
. (#2820) - โฌ๏ธ Reduced default
<a-cursor>
segments. (#2821)
๐ Fixes
- ๐ Fixed hand-controls blend-character animations between hand poses. (#2568)
- ๐ Fixed infinite loop when component
.init
handler calls.setAttribute
on itself. (#2454) - ๐ Fixed unreliable
requestAnimationFrame
timestamps by usingTHREE.Clock
in the render loop. (#2471) - ๐ Fixed error when entity detached while trying to load and then trying to initialize. (#2521)
- ๐ Fixed updating of
material.side
component. (#2528) - ๐ Fixed components sharing default array reference. (#2615)
- ๐ Fixed non-recursive raycasters. (#2331)
- ๐ Fixed various issues with sound component. (#2490)
- ๐ Fixed
AFRAME.utils.device.checkHeadsetConnected
to checkVRDisplay.isConnected
(for Windows Mixed Reality Headsets). (#2427) - ๐ Fixed video materials not respecting autoplay and controls attributes, set
playsinline
. (#2610) - ๐ Fixed cursor component
mouseup
event not being emitted if entity no longer intersecting. (#2678) - ๐ Fixed resetting material texture to null. (#2388)
- ๐ Fixed sound not playing when changing sound source. (#2457)
- ๐ Fixed
AFRAME.utils.deepEqual
recursion when comparing object with itself. (#2406) - ๐ Fixed
AFRAME.utils.deepEqual
when comparing non-Object objects like HTML elements (#2502) - ๐ Fixed loading of glTF files that did not include a default scene. (#2462)
- ๐ Fixed camera height when re-entering VR. (#2394)
- ๐ Fixed CSS cursor stuck to grabbing in Firefox. (#2684)
- ๐ Fixed tablets not being considered mobile devices in
AFRAME.utils.isMobile
. (#2309) - ๐ Fixed
AFRAME.utils.coordinates.isCoordinate
with scientific notation. (#2475) - ๐ Fixed pool component initializing twice. (#2407)
- ๐ Fixed error when injecting Inspector. (#2380)
- ๐ Fixed plane geometry segments. (#2499)
- ๐ Fixed grab CSS being applied when look-controls disabled. (#2642)
- ๐ Fixed look-controls enabling and disabling. (#2467)
- ๐ Fixed light targets. (#2715)
- ๐ Fixed
setAttribute
wiping out DOM-defined data on init. (#2727) - ๐ Fixed primitives mapping to non-default components. (#2767)
- ๐ Fixed vive-controls component button colors. (#2772)
- ๐ Fixed error if removing component before initialized. (#2713)
- ๐ Fixed booleans when updating component. (#2796)
- ๐ Fixed cursor component not waiting for canvas to load. (#2813)
- ๐ Fixed text component not updating text while font is loading. (#2814)
- ๐ Fixed WebVR polyfill being applied and user height not applied to GearVR browsers. (#2819)
- ๐ Fixed single-property mixins not working with primitives. (#2810)