adds equirectangular background to glft models
This commit is contained in:
parent
825dc4bf45
commit
8c45cfbeab
12
README.md
12
README.md
|
@ -1,6 +1,6 @@
|
||||||
# 3D tester
|
# 3D tester
|
||||||
|
|
||||||
An utility to test 3D models
|
A utility to test 3D models.
|
||||||
|
|
||||||
# Install on your PC
|
# Install on your PC
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ First make sure you have python3 installed
|
||||||
Then..
|
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
|
cd 3D-tester
|
||||||
python3 -m venv ./venv
|
python3 -m venv ./venv
|
||||||
source ./venv/bin/activate
|
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
|
git clone https://git.hangar.org/arcHIVE-tech/3D-tester.git /opt/3Dtester
|
||||||
cd 3D-tester
|
cd /opt/3Dtester
|
||||||
python3 -m venv ./venv
|
python3 -m venv ./venv
|
||||||
source ./venv/bin/activate
|
source ./venv/bin/activate
|
||||||
pip install bottle
|
pip install bottle
|
||||||
|
@ -89,8 +89,10 @@ Now you can do things like
|
||||||
supervisorctl status 3Dtester
|
supervisorctl status 3Dtester
|
||||||
supervisorctl stop 3Dtester
|
supervisorctl stop 3Dtester
|
||||||
supervisorctl start 3Dtester
|
supervisorctl start 3Dtester
|
||||||
|
supervisorctl restart 3Dtester
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Check that we are listening on the port 8080
|
||||||
```
|
```
|
||||||
netstat -tunpla | grep 8080
|
netstat -tunpla | grep 8080
|
||||||
```
|
```
|
||||||
|
@ -105,8 +107,6 @@ netstat -tunpla | grep 8080
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Updating
|
# 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.
|
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
|
mkdir /opt/3Dtester/objects/cloud
|
||||||
|
|
1
app.py
1
app.py
|
@ -89,6 +89,7 @@ def render(file_path):
|
||||||
name=file_name,
|
name=file_name,
|
||||||
object=object,
|
object=object,
|
||||||
)
|
)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
run(host='localhost', port=8080, debug=True)
|
run(host='localhost', port=8080, debug=True)
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 914 KiB |
|
@ -26,7 +26,9 @@ model-viewer {
|
||||||
alt="A 3D model of a robot"
|
alt="A 3D model of a robot"
|
||||||
auto-rotate=""
|
auto-rotate=""
|
||||||
camera-controls=""
|
camera-controls=""
|
||||||
background-color="#455A64">
|
background-color="#455A64"
|
||||||
|
skybox-image="/static/assets/equirectangular.png"
|
||||||
|
>
|
||||||
</model-viewer>
|
</model-viewer>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue