@particle-academy/fancy-3d 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,22 +61,31 @@ scene.nodes.forEach((node) => {
|
|
|
61
61
|
|
|
62
62
|
## Architecture
|
|
63
63
|
|
|
64
|
-
`@particle-academy/fancy-3d`
|
|
64
|
+
`@particle-academy/fancy-3d` exists to deliver `react-fancy` components into 3D environments — in **all the ways a 3D UI might need them**:
|
|
65
|
+
|
|
66
|
+
| Mode | What | When |
|
|
67
|
+
|------|------|------|
|
|
68
|
+
| **Texture** | Paint a widget into a `DynamicTexture` and apply it to any primitive's surface. | Static panels, billboards, dashboards, signage. Shipped today. |
|
|
69
|
+
| **Mount** | Host a live React tree on a 3D mesh via DOM overlay + `matrix3d` projection — fully interactive, keyboard accessible. | Anywhere you want the actual interactive UI inside a 3D scene. Shipped today via `<Stage>` + `<Screen>`. |
|
|
70
|
+
| **Bump-out / Puffy** | Extruded 3D interpretations of 2D components — buttons that physically protrude, cards with depth, embossed badges. Each interactive subregion is its own pickable mesh. | Spatial / mixed-reality UIs where the interface IS the geometry. Planned. |
|
|
71
|
+
|
|
72
|
+
The data layer underneath is engine-agnostic — same `Scene` JSON renders across DOM, Babylon, and (pluggable) three.js / native canvas. Subpath imports keep the bundle minimal:
|
|
65
73
|
|
|
66
74
|
```
|
|
67
75
|
@particle-academy/fancy-3d Scene types (Scene, WidgetSpec, WidgetAdapter)
|
|
68
76
|
@particle-academy/fancy-3d/dom DOM adapter — renders to react-fancy components
|
|
69
77
|
@particle-academy/fancy-3d/babylon Babylon adapter + 3D shape primitives
|
|
78
|
+
@particle-academy/fancy-3d/react <Stage> + <Screen> for live React on 3D meshes
|
|
70
79
|
```
|
|
71
80
|
|
|
72
|
-
|
|
81
|
+
`react-fancy` is a peer dependency by design: this package exists *to put react-fancy in 3D*, so consumers always install both — the peer relationship just lets you pin the react-fancy version.
|
|
73
82
|
|
|
74
83
|
## Documentation
|
|
75
84
|
|
|
76
85
|
- [Scene types & widget kinds](./docs/scene.md) — the engine-agnostic data model
|
|
77
86
|
- [DOM adapter](./docs/dom-adapter.md) — render Scene as react-fancy components
|
|
78
87
|
- [Babylon adapter](./docs/babylon-adapter.md) — render Scene as Babylon meshes + dynamic textures
|
|
79
|
-
- [Primitives](./docs/primitives.md) — `createPanel`, `createBillboard`, `createBuilding`, `createCylinder`, `createCurvedPanel`, `createWidgetTexture`
|
|
88
|
+
- [Primitives](./docs/primitives.md) — `createPanel`, `createBillboard`, `createBuilding`, `createCylinder`, `createCurvedPanel`, `createWidgetTexture`, `createSign`, `createMonitor`, `createCard3D`, `createSphere`, `createDisc`, `createPillar`, `createDecal`
|
|
80
89
|
- [Screen widget](./docs/screen.md) — 3D-native widget for hardware-display visuals
|
|
81
90
|
|
|
82
91
|
## License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-academy/fancy-3d",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Bring Particle Academy's fancy components into 3D — engine-agnostic scene types, a BabylonJS adapter, and 3D-native components like Screen.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|