Repository navigation
v1.1.0
v1.1.0
Needs the virocore web build of 3.1.0 and tinyvio's setFusedUp; both ship in this package.
Fixed
-
Web AR content stays in the room on iPhone (
arSession.ts). It swung around when the phone turned and stuck to the screen when tracking dropped. Four causes, each measured on device:- WebKit fills
rotationRate's alpha, beta and gamma with the sensor's X, Y and Z rates, not in the spec's order; read the spec's way, pitch and yaw landed on each other's axes. - tinyvio was told the camera and the IMU share axes. For a rear camera in portrait they differ on two, and the gyro prediction pushed features the wrong way.
- iOS reports
accelerationIncludingGravitywith the opposite sign to the spec. The old single-axis flip was a reflection, not a rotation. - With tracking lost the renderer held the last pose, so the content rode along with the screen.
- WebKit fills
-
Vertex colours show. The engine's web shaders now multiply the vertex colour, as the native ones do (virocore 3.1.0's web build).
-
Skinned GLBs draw. The vertex shader took bone indices as signed integers while glTF's 8- and 16-bit joints are bound unsigned, and WebGL refused every draw of a skinned mesh (virocore 3.1.0's web build).
-
More of glTF loads and draws (virocore 3.1.0's web build).
KHR_texture_transform,KHR_node_visibilityandKHR_animation_pointer, textures onTEXCOORD_1and later sets, emissive textures and 8-bit index buffers. Opaque materials were see-through where their texture's alpha was low, characters whose rig animates a node above each joint stood in their bind pose, a file with animation pointers failed to load at all, and emission never showed on physically based materials.
Added
hideContentWhenLost(default true). After a quarter second without a pose the scene's content is hidden, and it comes back with the first fresh pose; the camera feed keeps drawing.falsekeeps the old behaviour.- The fused up vector from
deviceorientationgoes to tinyvio throughsetFusedUpwhen the engine has it, which keeps the floor level while tracking is down to rotation only. requestDeviceMotionPermissionalso asks for orientation permission, in the same tap.