@react-three/viverse 0.1.4 → 0.1.6
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 +6 -2
- package/dist/character.js +5 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<h1 align="center">@react-three/viverse</h1>
|
|
2
|
-
<h3 align="center">Toolkit for building and
|
|
2
|
+
<h3 align="center">Toolkit for building Three.js and React Three Fiber Apps for Viverse and beyond.</h3>
|
|
3
3
|
<br/>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
@@ -26,7 +26,7 @@ npm install three @react-three/fiber @react-three/viverse
|
|
|
26
26
|
| A prototype map with the `<SimpleCharacter/>` component and its default model. |  |
|
|
27
27
|
| --------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
|
28
28
|
|
|
29
|
-
```
|
|
29
|
+
```tsx
|
|
30
30
|
import { createRoot } from 'react-dom/client'
|
|
31
31
|
import { Sky } from '@react-three/drei'
|
|
32
32
|
import { Canvas } from '@react-three/fiber'
|
|
@@ -68,3 +68,7 @@ Get started with **[building a simple game](https://pmndrs.github.io/viverse/tut
|
|
|
68
68
|
> No Problem
|
|
69
69
|
|
|
70
70
|
Check out how to build games using @pmndrs/viverse and only [vanilla three.js](https://pmndrs.github.io/viverse/without-react).
|
|
71
|
+
|
|
72
|
+
## Acknowledgments
|
|
73
|
+
|
|
74
|
+
This project would not be possible without the default model and default animations made by [Quaternius](https://quaternius.com/), the prototype texture from (kenney.nl)[https://www.kenney.nl/], and the [three-vrm project](https://github.com/pixiv/three-vrm) from the [pixiv team](https://github.com/pixiv)!
|
package/dist/character.js
CHANGED
|
@@ -31,7 +31,11 @@ export const SimpleCharacter = forwardRef(({ children, input, useViverseAvatar =
|
|
|
31
31
|
const newOptions = {
|
|
32
32
|
...options,
|
|
33
33
|
model: options.model != false && avatar != null && useViverseAvatar
|
|
34
|
-
? {
|
|
34
|
+
? {
|
|
35
|
+
type: avatar.vrmUrl != null ? 'vrm' : undefined,
|
|
36
|
+
url: avatar?.vrmUrl,
|
|
37
|
+
...(options.model === true ? undefined : options.model),
|
|
38
|
+
}
|
|
35
39
|
: options.model,
|
|
36
40
|
};
|
|
37
41
|
const preloadSimpleCharacterAssetsKeys = [
|
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare function useViversePublicAvatarList(): Awaited<ReturnType<AvatarC
|
|
|
69
69
|
export declare function useViversePublicAvatarByID(id: string): Awaited<ReturnType<AvatarClient['getPublicAvatarByID']>> | undefined;
|
|
70
70
|
export * from './character.js';
|
|
71
71
|
export * from './material.js';
|
|
72
|
-
export { FirstPersonCharacterCameraBehavior, LocomotionKeyboardInput, PointerCaptureInput, PointerLockInput, VRMHumanBoneName, } from '@pmndrs/viverse';
|
|
72
|
+
export { FirstPersonCharacterCameraBehavior, SimpleCharacter as SimpleCharacterImpl, LocomotionKeyboardInput, PointerCaptureInput, PointerLockInput, VRMHumanBoneName, } from '@pmndrs/viverse';
|
|
73
73
|
export * from '@viverse/sdk';
|
|
74
74
|
export * from '@viverse/sdk/avatar-client';
|
|
75
75
|
export * from './gamepad.js';
|
package/dist/index.js
CHANGED
|
@@ -150,7 +150,7 @@ export function useViversePublicAvatarByID(id) {
|
|
|
150
150
|
}
|
|
151
151
|
export * from './character.js';
|
|
152
152
|
export * from './material.js';
|
|
153
|
-
export { FirstPersonCharacterCameraBehavior, LocomotionKeyboardInput, PointerCaptureInput, PointerLockInput, VRMHumanBoneName, } from '@pmndrs/viverse';
|
|
153
|
+
export { FirstPersonCharacterCameraBehavior, SimpleCharacter as SimpleCharacterImpl, LocomotionKeyboardInput, PointerCaptureInput, PointerLockInput, VRMHumanBoneName, } from '@pmndrs/viverse';
|
|
154
154
|
export * from '@viverse/sdk';
|
|
155
155
|
export * from '@viverse/sdk/avatar-client';
|
|
156
156
|
export * from './gamepad.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-three/viverse",
|
|
3
|
-
"description": "Toolkit for building
|
|
3
|
+
"description": "Toolkit for building React Three Fiber Apps for Viverse and beyond.",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Bela Bohlender",
|
|
@@ -25,20 +25,21 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@viverse/sdk": "^1.2.10-alpha.0",
|
|
27
27
|
"suspend-react": "^0.1.3",
|
|
28
|
-
"@react-three/xr": "^6.6.20",
|
|
29
28
|
"@pixiv/three-vrm": "^3.4.2",
|
|
30
29
|
"zustand": "^5.0.6",
|
|
31
|
-
"@pmndrs/viverse": "^0.1.
|
|
30
|
+
"@pmndrs/viverse": "^0.1.6"
|
|
32
31
|
},
|
|
33
32
|
"peerDependencies": {
|
|
33
|
+
"@react-three/xr": "*",
|
|
34
34
|
"@react-three/fiber": "*"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
+
"@react-three/xr": "^6.6.20",
|
|
37
38
|
"@react-three/fiber": "^9.2.0",
|
|
38
39
|
"@types/react": "^19.1.8",
|
|
39
40
|
"react": "^19.1.0"
|
|
40
41
|
},
|
|
41
|
-
"version": "0.1.
|
|
42
|
+
"version": "0.1.6",
|
|
42
43
|
"scripts": {
|
|
43
44
|
"build": "tsc",
|
|
44
45
|
"check:prettier": "prettier --check src",
|