Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

react-three-mindts

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-three-mindts

A React Three Fiber component for augmented reality using MindAR.js and TypeScript.

latest
Source
npmnpm
Version
0.0.11
Version published
Maintainers
1
Created
Source

概要  description

mindar の imagetracking を気軽に ts で書くことができるコンポーネントライブラリになります。

使い方 Usage

基本的に react-three-fiber の記法と同じで、ARCanvas の中にオブジェクトの情報を記述することで AR 上にオブジェクトを設置することができます。 また imagetracking を行う画像を設定するには、mind-ar 公式サイトのimage-targets-compilerを使用してください。 そちらで生成された.mind ファイルを public 配下に設定し、パスを ARCanvas の markerUrl 属性に設定することで利用できます。

import { ARCanvas } from "react-three-mindts";
import "./App.css";

function App() {
  return (
    <>
      <main style={{ width: "100vw", height: "100vh" }}>
        <ARCanvas markerUrl="./kyutxr-card.mind">
          <ambientLight />
          <pointLight position={[10, 10, 10]} />
          <mesh>
            <boxGeometry args={[1, 1, 1]} />
            <meshStandardMaterial color="orange" />
          </mesh>
        </ARCanvas>
      </main>
    </>
  );
}

export default App;

Keywords

react

FAQs

Package last updated on 30 Oct 2025

Did you know?

Socket

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.

Install

Related posts