How to reset DOM state to the initial state (when page was firstly received?)
Date : March 29 2020, 07:55 AM
it helps some times Because how JavaScript works (objects are not copied but passed by reference) initial_state var has just stored the reference to the DOM document. When the DOM document is updated your initial_state var will reflect those changes because it's just a reference which is just pointing at the DOM document, and not an object "on its own". To obtain a copy of an object which is a "real" object and not just a reference to the first object, you need to clone. // for simple cloning
var initDoc = $.extend({}, document);
// for deep cloning
var initDocument = $.extend(true, {}, document);
|
Using Geo-coordintes Instead of Cartesian to Draw in Argon and A-Frame
Date : March 29 2020, 07:55 AM
wish help you to fix your issue To understand the answer, you need to first understand the various frames of reference used by Argon. First, Argon makes use of cesiumjs.org's geospatial math libraries and Entity's so that all "locations" in Argon must either be expressed geospatially OR be relative to a geospatial entity. These are rooted at the center of the earth, in what Cesium calls FIXED coordinates, but are also know as ECEF or ECF coordinates. In that system, coordinates are in meters, with up/down going through the poles, east/west going through the meridian (I believe). Any point on the surface of the earth is represented with pretty large numbers. <ar-scene>
<ar-geopose id="GT" lla=" -84.398881 33.778463" userotation="false">
<a-entity meshline="lineWidth: 20; path: userPath; color: #E20049"></a-entity>
</ar-geopose>
</ar-scene>
|
Argon.js/A-Frame: local coordinates from getEntityPose() are not relative to refereceFrame
Date : March 29 2020, 07:55 AM
hop of those help? As I understand it, the issue is that while a desktop browser will give a location, since it will not provide an orientation, a full 3D pose cannot be obtained. Therefore, the user entity is defined against an arbitrary reference frame. A future release will assume an orientation when one is not available. EDIT: mischaracterized nature of issue.
|
node imap attempting to update flags: Error: Command received in Invalid state.
Date : March 29 2020, 07:55 AM
|
How do I attach an image to the reference frame in argon so that it moves with the camera wherever the user moves the ph
Tag : image , By : Tony Siu
Date : March 29 2020, 07:55 AM
|