@rterizz23/peyek-3d-controller
v2.1.1
Published
Powerful 3D Object Viewer and Controller for the Peyek Web Builder. Integrated with Three.js.
Maintainers
Readme
Peyek 3D Controller
Bring your web builds to life with the native WebGL 3D Controller for the Peyek Platform, powered by Three.js.
Features
- Instant 3D Rendering: Drop a 3D canvas anywhere in your app.
- Hardware Accelerated: Built on WebGL via Three.js.
- Responsive: Automatically resizes with its parent container.
- AI Phoenix Ready: Easily hook up to
ai-phoenix-coreto render generated 3D objects.
Installation
npm install peyek-3d-controllerUsage
<div id="canvas-3d" style="width: 100%; height: 400px;"></div>import { Peyek3DController } from 'peyek-3d-controller';
// Initialize a 3D scene in the container
const scene3D = new Peyek3DController('#canvas-3d', {
color: 0x00f0ff // Optional brand color
});