ara3d 0.2.0 → 0.3.0
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 +10 -1
- package/dist/cli.js +1 -1
- package/dist/embed.js +16579 -0
- package/dist/index.js +118 -47
- package/dist/types/packages/cli/src/embed.d.ts +43 -0
- package/dist/types/packages/cli/src/index.d.ts +22 -2
- package/dist/types/packages/cli/src/library/sequence.d.ts +14 -0
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ara3d
|
|
2
2
|
|
|
3
|
-
Realistic, rigged and animated 3D characters, free and open source: a **three.js library** for your web app or game, and a **command-line tool** that writes GLB, FBX or OBJ files for Unity, Unreal, Godot and Blender. Everything runs on your machine or your visitors' devices.
|
|
3
|
+
Realistic, rigged and animated 3D characters, free and open source: a **three.js library** for your web app or game, an **`<ara-character>` tag** for any web page, and a **command-line tool** that writes GLB, FBX or OBJ files for Unity, Unreal, Godot and Blender. Everything runs on your machine or your visitors' devices.
|
|
4
4
|
|
|
5
5
|
## In the browser
|
|
6
6
|
|
|
@@ -19,6 +19,15 @@ new THREE.AnimationMixer(hero.scene).clipAction(hero.clip('walk')).play();
|
|
|
19
19
|
|
|
20
20
|
Characters are built in a background worker, and the character data loads from a free CDN. TypeScript types are included. Guide: [ara3dgen.com/docs/library](https://ara3dgen.com/docs/library/).
|
|
21
21
|
|
|
22
|
+
## On any web page
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/ara3d@0/dist/embed.js"></script>
|
|
26
|
+
<ara-character preset="The Soldier" animation="walk 2s, wave, cheer" expression="happy"></ara-character>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
One tag, no build tools: it works in plain HTML, site builders and any framework. Guide: [ara3dgen.com/docs/embed](https://ara3dgen.com/docs/embed/).
|
|
30
|
+
|
|
22
31
|
## On the command line
|
|
23
32
|
|
|
24
33
|
```bash
|