Skip to content

INTO-CPS-Association/ThreeD-glb-viewer

Repository files navigation

Threejs render

Getting Started

This project is a monorepo with the package threed-glb-viewer and a test environment in pkg-example.

How to use this package?

npm install @into-cps-association/threed-glb-viewer
bun add @into-cps-association/threed-glb-viewer
pnpm add @into-cps-association/threed-glb-viewer
yarn add @into-cps-association/threed-glb-viewer
# Add a canvas component
<canvas id="threed-glb-viewer-canvas"></canvas>

# Specify a path to a gltf file
renderThreejs("../static/models/2CylinderEngine/glTF/2CylinderEngine.gltf")

Development

Build package

cd packages/threed-glb-viewer

bun install

bun run build

Main package

Start test server

cd packages/pkg-example

bun install

bun run dev

Test server

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages