
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
@ar-js-org/ar.js-threejs
Advanced tools
AR.js (THREEx, ARjs) modular package - Typescript version
Testing repository for the AR.js core module. I'm converting AR.js code to the Typescript language but providing the same classes and structures as much as possible. The module export two namespaces as in the old implementation: THREEx and ARjs. The project is under development, so things could not works as expected. If you find a bug file an issue at our issues
For now, you can find some vanilla JS examples in the examples folder and anothers in Typescript in the example-ts folder. More examples will be added in a near future. Update 20/10/2024: Now also NFT examples. Update 13/01/2025: Vite example, see example-vite folder.
This project uses Three.js version 0.164.0. The examples and code are updated to use the new syntax with importmap
for module imports. Previous versions of Three.js are not supported, but the old AR.js is still available.
First, you need to add the ar.js-threejs
package to your project:
npm install @ar-js-org/ar.js-threejs
then in your typescript code you can import the THREEx
and ARjs
namespaces:
import { THREEx, ARjs } from "@ar-js-org/ar.js-threejs"
var arToolkitSource = new THREEx.ArToolkitSource({
// to read from the webcam
sourceType: 'webcam',
sourceWidth: window.innerWidth > window.innerHeight ? 640 : 480,
sourceHeight: window.innerWidth > window.innerHeight ? 480 : 640,
})
// other Ar.js code...
After, you need a bundler (webpack, rollup..) to build the final app. look at example-ts for this purpose.
FAQs
AR.js (THREEx, ARjs) modular package - Typescript version
The npm package @ar-js-org/ar.js-threejs receives a total of 26 weekly downloads. As such, @ar-js-org/ar.js-threejs popularity was classified as not popular.
We found that @ar-js-org/ar.js-threejs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 0 open source maintainers 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
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.