diff --git a/README.md b/README.md index bbf6e6b..3dd9b87 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 3D tester -An utility to test 3D models +A utility to test 3D models. # Install on your PC @@ -9,7 +9,7 @@ First make sure you have python3 installed Then.. ``` -git clone git@git.hangar.org:21036/arcHIVE-tech/3D-tester.git +git clone https://git.hangar.org/arcHIVE-tech/3D-tester.git 3Dtester cd 3D-tester python3 -m venv ./venv source ./venv/bin/activate @@ -34,7 +34,7 @@ Add your 3D models to the `./objects` folder. Create subdirectories as needed. ``` git clone https://git.hangar.org/arcHIVE-tech/3D-tester.git /opt/3Dtester -cd 3D-tester +cd /opt/3Dtester python3 -m venv ./venv source ./venv/bin/activate pip install bottle @@ -89,8 +89,10 @@ Now you can do things like supervisorctl status 3Dtester supervisorctl stop 3Dtester supervisorctl start 3Dtester +supervisorctl restart 3Dtester ``` +Check that we are listening on the port 8080 ``` netstat -tunpla | grep 8080 ``` @@ -105,8 +107,6 @@ netstat -tunpla | grep 8080 ``` - - # Updating ``` @@ -118,7 +118,7 @@ git pull origin main We upload the 3D models to our nextcloud server. That server is on the same machine as 3Dtester. -To make the uploaded files available we bind the directory with a mount point +To make the uploaded files available we bind the nextcloud directory with a mount point ``` mkdir /opt/3Dtester/objects/cloud diff --git a/app.py b/app.py index 5b09488..260bc93 100644 --- a/app.py +++ b/app.py @@ -89,6 +89,7 @@ def render(file_path): name=file_name, object=object, ) + if __name__ == "__main__": run(host='localhost', port=8080, debug=True) diff --git a/static/assets/equirectangular.png b/static/assets/equirectangular.png new file mode 100644 index 0000000..3e44cfb Binary files /dev/null and b/static/assets/equirectangular.png differ diff --git a/views/google.tpl b/views/google.tpl index dadbefd..472654b 100644 --- a/views/google.tpl +++ b/views/google.tpl @@ -26,7 +26,9 @@ model-viewer { alt="A 3D model of a robot" auto-rotate="" camera-controls="" - background-color="#455A64"> + background-color="#455A64" + skybox-image="/static/assets/equirectangular.png" + >