2023-02-01 11:10:08 +00:00
|
|
|
# panellum_generator
|
|
|
|
|
2023-10-06 22:26:50 +00:00
|
|
|
Configuration generator for Panellum Panorama Viewer.
|
2023-02-01 11:13:40 +00:00
|
|
|
https://pannellum.org/
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2023-10-06 22:26:50 +00:00
|
|
|
python panoconfig.py input.txt -o pannellum/index.htm
|
2023-02-01 11:13:40 +00:00
|
|
|
|
2023-02-01 11:16:08 +00:00
|
|
|
put index.htm in panellum folder together with images inside images/ folder.
|
|
|
|
|
|
|
|
## input config file format
|
2023-10-06 22:26:50 +00:00
|
|
|
FromFile,ToFile,Pitch,Yaw,TargetYaw|i
|
2023-02-01 11:16:08 +00:00
|
|
|
|
2023-10-06 22:26:50 +00:00
|
|
|
## overlay Pitch and Yaw
|
|
|
|
run overlaylatLong.sh with .jpg files in same directory.
|
|
|
|
This will create an "overlay" directory with the fotos and a lat long overlay.
|
2023-02-01 11:16:08 +00:00
|
|
|
|
2023-10-06 22:26:50 +00:00
|
|
|
## Workflow
|
|
|
|
Add .jpg equirectengular 360 photos in a directory with overlayLatLong.sh .
|
|
|
|
Run overlayLatLong.sh
|
|
|
|
create a file (for example input.txt)
|
|
|
|
Add clickable hotspots in every line
|
|
|
|
Example: from kitchen.jpg to livingroom.jpg at pitch=0 and yaw=-30 (coordinats in from picture).
|
|
|
|
kitchen,livingroom,0,-30,i
|
|
|
|
(i for autocalculate yaw viewpoint in target photo)
|
|
|
|
|
|
|
|
Every image in the "to" field has to exist at least once as "from".
|
|
|
|
|
|
|
|
Download pannellum and put pannellum folder in directory next to the python file.
|
|
|
|
Run "python panoconfig.py input.txt -o pannellum/index.htm" to create index.htm with config in it.
|
|
|
|
Run python -m http.server in pannellum folder.
|
|
|
|
Navigate to http://localhost:8000
|