From 76f50d2f5a9796ed8c3c17dba4467e5f7e42c09e Mon Sep 17 00:00:00 2001 From: eater <=@eater.me> Date: Sun, 1 Mar 2020 18:17:15 +0100 Subject: [PATCH] improve export_nif script and process textures, make query hash case-insentisive --- .gitignore | 4 +- README.md | 6 +- public/blob/{textures => texture}/.gitkeep | 0 public/index.html | 3 +- script/export_nif.py | 202 +++++++++++++++++---- src/index.js | 38 ++-- 6 files changed, 200 insertions(+), 53 deletions(-) rename public/blob/{textures => texture}/.gitkeep (100%) diff --git a/.gitignore b/.gitignore index d9910e3..57b9329 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ dist node_modules -public/blob/textures/* -!public/blob/textures/.gitkeep +public/blob/texture/* +!public/blob/texture/.gitkeep public/blob/meshes.json \ No newline at end of file diff --git a/README.md b/README.md index 3a70184..baca7f0 100644 --- a/README.md +++ b/README.md @@ -7,17 +7,15 @@ A project that takes morrowind's player heads and shows it on a webpage - [see i ## Requirements - pyFFI +- PIL / Pillow - 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 +./script/export_nif.py [morrowind]/Data\ Files/Meshes/b [morrowind]/Data\ Files/Textures public/blob # Pack JS yarn yarn webpack diff --git a/public/blob/textures/.gitkeep b/public/blob/texture/.gitkeep similarity index 100% rename from public/blob/textures/.gitkeep rename to public/blob/texture/.gitkeep diff --git a/public/index.html b/public/index.html index f32da9e..5d1cf8e 100644 --- a/public/index.html +++ b/public/index.html @@ -3,6 +3,7 @@ + Morrowind's Heads