You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add eastNorthToWorldCoords() method to LocAR to convert eastings and northings to WebGL world coordinates, accounting for the original origin and the negation of z.
A new App class easing the setup of a LocAR application. App will manage the initialisation of the three.js scene, camera and renderer as well as initialising the webcam feed. The tutorial and examples have been rewritten to use App. You can, if you wish, continue to manually set up the scene as you would have done in 0.1.x, though note the breaking change above.
Webcam feed stretching issue in landscape mode fixed by adding a video element with CSS object-fit set to cover, rather than streaming the feed into a three.js texture.
New addGeoLine() method of LocAR (formerly LocationBased), allowing the addition of polylines directly to the scene.
Any generic Projection can be used for the projection, rather than enforced SphMercProjection.
Smoothing factor now 0.2 by default; in tests this gives the best results.
Note that LocAR 0.2.0 is coming soon with a new App API allowing easier startup of your application with less boilerplate code. A pre-release version is already in the dev branch. Watch here for updates!
Adds option orientationChangeThreshold to LocAR.DeviceOrientationControls to define a minimal orientation change needed to trigger an update on the object. This helps to reduce jittering due to frequent and tiny updates of the device sensors.
Introduce the ability to specify multiple event handlers for a given event with EventEmitter.on().
Also add corresponding EventEmitter.off() method to allow a specific event handler to be removed.