Skip to content

Releases: AR-js-org/locar.js

0.2.3

Choose a tag to compare

@nickw1 nickw1 released this 24 Jun 18:53

Add eastNorthToWorldCoords() method to LocAR to convert eastings and northings to WebGL world coordinates, accounting for the original origin and the negation of z.

0.2.2

Choose a tag to compare

@nickw1 nickw1 released this 18 Jun 11:03

Return the THREE.Mesh created by LocAR.addGeoLine(), so that it can, for example, be added to a list of cached objects.

0.2.1

Choose a tag to compare

@nickw1 nickw1 released this 14 May 08:23

Small fix: ensure that the projection matrix of the camera is synced with the fov and aspect ratio under all circumstances.

0.2.0

Choose a tag to compare

@nickw1 nickw1 released this 13 May 08:23

A significant new release with many new features.

BREAKING CHANGES:

  • LocationBased class renamed LocAR.

Many other new features, including:

  • 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.

0.1.9

Choose a tag to compare

@nickw1 nickw1 released this 25 Apr 06:05

No new features; dependency updates only.

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!

0.1.8

Choose a tag to compare

@nickw1 nickw1 released this 16 Dec 15:30

Improved smoothing to reduce shaking/jittering effects of AR objects, thanks to @fabian247.

0.1.7

Choose a tag to compare

@nickw1 nickw1 released this 04 Dec 13:17

LocAR.js converted to TypeScript, many thanks to @fabian247.

0.1.6

Choose a tag to compare

@nickw1 nickw1 released this 30 Nov 11:05

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.

0.1.5

Choose a tag to compare

@nickw1 nickw1 released this 27 Nov 13:50

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.

0.1.4

Choose a tag to compare

@nickw1 nickw1 released this 16 Nov 12:28

Adds getLastKnownLocation() method of LocAR which returns the last known location as an object of type LonLat.

Useful if we want to obtain the location after we have already received a gpsupdate event.