![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
jsartoolkit-nft
Advanced tools
Emscripten port of ARToolKit5 to JavaScript. It is a lighter version of Jsartoolkit5 with only NFT markerless support
Emscripten port of ARToolKit to JavaScript. Modified and lighter version of JSARToolKit5.
Try the example !! kalwalt.github.io/jsartoolkitNFT/examples/arNFT_example.html
JSARToolKitNFT support only this types of markers:
NOTE:
When writing JavaScript and making changes be aware that the emscripten uglifier does not support the ES6 syntax.
build/
(compiled debug and minified versions of JSARToolKitNFT)doc/
(documentation, coming...)emscripten/
(source code for ARToolKit)examples/
(demos and examples using JSARToolKitNFT)js/
(compiled versions of ARToolKit.js with Three.js helper api)tools/
(build scripts for building JSARToolKitNFT)JSARToolKitNFT supports WebAssembly. The libary builds two WebAssembly artifacts during the build process. These are build/artoolkitNFT_wasm.js
and build/artoolkitNFT_wasm.wasm
. To use those, include the artoolkit_wasm.js into your html page and define var artoolkitNFT_wasm_url = '<<PATH TO>>/artoolkitNFT_wasm.wasm';
before loading the artoolkit_wasm.js file, like this:
<script type='text/javascript'>
var artoolkitNFT_wasm_url = '../build/artoolkitNFT_wasm.wasm';
</script>
<script src="../build/artoolkitNFT_wasm.js"></script>
As loading the WebAssembly artifact is done asynchronously, there is a callback that is called when everything is ready.
window.addEventListener('artoolkitNFT-loaded', () => {
//do artoolkit stuff here
});
See examples/simple_image_wasm.html for details.
git submodule update --init
. If you already cloned ARToolKit5 to a different directory you can:jsartoolkitNFT/emscripten/
directory that points to ARToolKit5 (jsartoolkitNFT/emscripten/artoolkit5
) (Linux and macOS only)ARTOOLKIT5_ROOT
environment variable to point to your ARToolKit5 clonetools/makem.js
file to point to your artoolkit5 clone (line 20)git submodule update --init
npm install
docker run -dit --name emscripten -v $(pwd):/src trzeci/emscripten-slim:latest bash
to download and start the container, in preparation for the builddocker exec emscripten npm run build-local
to build JS version of artoolkit5docker exec emscripten npm run build-local-no-libar
to build JS version of artoolkit5 without rebuilding libar.bcdocker stop emscripten
to stop the container after the build, if neededdocker rm emscripten
to remove the containerdocker rmi trzeci/emscripten-slim:latest
to remove the Docker image, if you don't need it anymore/build
. There's a build with debug symbols in artoolkitNFT.debug.js
file and the optimized build with bundled JS API in artoolkitNFT.min.js
; also, a WebAssembly build artoolkitNFT_wasm.js and artoolkitNFT_wasm.wasmTo prevent issues with Emscripten setup and to not have to maintain several build environments (macOS, Windows, Linux) we only maintain the Build using Docker. Following are the instructions of the last know build on Linux which we verified are working. Use at own risk. Not working on macOS!
Install build tools
Install node.js (https://nodejs.org/en/)
Install python2 (https://www.python.org/downloads/)
Install emscripten (https://emscripten.org/docs/getting_started/downloads.html#download-and-install) We used emscripten version 1.39.5-fastcomp 1.38.44-fastcomp
JSARToolKitNFT aim is to create a Javascript version of artoolkit5. First, you need the artoolkit5 repository on your machine:
git submodule update --init
. If you already cloned ARToolKit5 to a different directory you can:jsartoolkitNFT/emscripten/
directory that points to ARToolKit5 (jsartoolkitNFT/emscripten/artoolkit5
)ARTOOLKIT5_ROOT
environment variable to point to your ARToolKit5 clonetools/makem.js
file to point to your artoolkit5 clone (line 20)Building
Make sure EMSCRIPTEN
env variable is set (e.g. EMSCRIPTEN=/usr/lib/emsdk_portable/emscripten/master/ node tools/makem.js
Run npm install
Run npm run build-local
During development, you can run npm run watch
, it will rebuild the library everytime you change ./js/
directory. You can also run the script with the option npm run build-local-no-libar
if you have already build libar.bc and you don't want to rebuild.
/build
. There's a build with debug symbols in artoolkitNFT.debug.js
and the optimized build with bundled JS API in artoolkitNFT.min.js
.FAQs
Emscripten port of ARToolKit5 to JavaScript. It is a lighter version of Jsartoolkit5 with only NFT markerless support
We found that jsartoolkit-nft demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.