@verseengine/verse-three
v1.0.7
Published
Web-based Metaverse Engine on P2P overlay network for three.js.
Downloads
10
Readme
verse-three ·
VerseEngine implementation for three.js.
VerseEngine is a web-based metaverse engine on a P2P overlay network.
Usage
Reference
About
This is a library to easily implement a web metaverse by combining the following libraries.
| | | |---|---| | verse-core | Web-based Metaverse Engine on P2P overlay network. | | three-move-controller | Movement and rotation by keyboard and mouse. | | three-touch-controller | Joystick for touch operation. | | three-xr-controller | VR controller. | | three-avatar | Avatar system for three.js. | | verse-three-ui | Minimum GUI for Metaverse. |
Example
HTTP
npm run example
http://localhost:8080/demo/
HTTPS
brew install mkcert
mkcert -install
mkdir cert
cd cert
mkcert localhost 127.0.0.1 192.168.10.2
cd ..
npm run example-ssl
https://localhost:8080/demo/
Installation
npm
npm install @verseengine/verse-three
CDN (ES Mobules)
<script
async
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/es-module-shims.min.js"
></script>
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js",
"three/examples/jsm/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/",
"@pixiv/three-vrm": "https://cdn.jsdelivr.net/npm/@pixiv/[email protected]/lib/three-vrm.module.min.js",
"verse-three": "https://cdn.jsdelivr.net/npm/@verseengine/[email protected]/dist/esm/index.min.js"
}
}
</script>
<script>
const VERSE_WASM_URL =
"https://cdn.jsdelivr.net/npm/@verseengine/[email protected]/dist/verse_core_bg.wasm";
...
</script>