Skip to content

Removing old jsartoolkit5 version from AR.js  #68

@kalwalt

Description

@kalwalt

Do you want to request a feature or report a bug?
This a feature request and also an enhancement of AR.js

What is the current behavior?
Actually we have two types of AR.js libs as described in the AR-js-org docs

  1. Image Tracking and Location Based >> (ar-nft.js and aframe-ar-nft.js)
  2. the old style lib for Pattern Marker; Barcode Marker... >> (ar.js and aframe-ar.js)

The first one use the newest jsartoolkit5 lib, the second use the old jsartoolkit5 lib with .min and .api bundled together.

Why this? artoolkit.api.js is required otherwise you will get this issue on Mobile device (portrait mode) see #60 (comment) and also pay attention to all the discussion in the PR #60
We need to remove the old lib because we can not add new features to jsartoolkit5.

If the current behavior is a bug, please provide the steps to reproduce.
remove artoolkit.api.js from the compilation (Makefile) ,

- cat vendor/jsartoolkit5/build/artoolkit.min.js \
- vendor/jsartoolkit5/js/artoolkit.api.js >> build/ar.js

+ cat vendor/jsartoolkit5/build/artoolkit.min.js >> build/ar.js

run the script, test the basic example or any other example on portrait mode (Mobile)

Please mention other relevant information such as the browser version, Operating System and Device Name
The bug i mentioned occurs only in portrait mode (Mobile)
What is the expected behavior?
Eliminating artoolkit.api.js should behave in the same way.
If this is a feature request, what is motivation or use case for changing the behavior?
Upgrading AR.js to the new jsartoolkit5 ( not only for nft).

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions