You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
563 B
Markdown
30 lines
563 B
Markdown
4 years ago
|
# Morrowind Three.JS
|
||
|
|
||
|
A project that takes morrowind's player heads and shows it on a webpage
|
||
|
|
||
|
![](examples/Z9x9jF6.png)
|
||
|
![](examples/ZmJe6PQ.png)
|
||
|
|
||
|
## Requirements
|
||
|
|
||
|
- pyFFI
|
||
|
- yarn / npm
|
||
|
|
||
|
# Setup
|
||
|
|
||
|
```bash
|
||
|
cd [project]
|
||
|
|
||
|
# Copy textures
|
||
|
cp [morrowind]/Data\ Files/Textures/TX_B_N_* ./public/blob/textures
|
||
|
# Generate JSON meshes
|
||
|
./script/export_nif.py [morrowind]/Data\ Files/Meshes/b > ./public/blob/meshes.json
|
||
|
# Pack JS
|
||
|
yarn
|
||
|
yarn webpack
|
||
|
# Run dev http server via PHP e.g.
|
||
|
cd public;
|
||
|
php -S 0:8888;
|
||
|
```
|
||
|
|
||
|
meshes.json is not included because it's easily around 15MB
|