google-ar / WebARonARCore

An experimental Chromium modification in the form of an app for Android that lets developers build Augmented Reality (AR) experiences using web technologies on top of Google's ARCore.
https://developers.google.com/ar/develop/web/getting-started
Apache License 2.0
756 stars 115 forks source link

Improved anchor handling. #38

Closed judax closed 6 years ago

judax commented 6 years ago

Verified that the anchor calculations are correct. Found that the main reason why some error were arising is because it is wrong to assume that an anchor can be created with a model matrix that includes scaling that is not (1, 1, 1). Added some new functionalities and more comments but the anchor handling stays the same. The JS side will have to make sure that the anchors are correctly created.

Change-Id: I98de8dadb2c7f0965633eed3c4b3603cf76748c9