mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.22k stars 718 forks source link

Generating Multiresolution Panorama for newbies :) #902

Open TypicalDave opened 4 years ago

TypicalDave commented 4 years ago

Hey, Matthew im not a programmer or something, but i would like to learn how to use the multiresolution panorama. i use windows 10 x64, installed Python 3.8, and downloaded Hugin, and Pillow 7.2.0-cp38, but i dont know what i need to do next. ive tried to open the Generate.py, theres a window showed up and immediately close itself, can you please help guide me to generate my multiresolution panorama?, thankyou

luishcq commented 4 years ago

Hi Dave,

I don't have Windows anymore, but I think the steps are: 1 - open a DOS window ("terminal" or "console", maybe), as generate.py runs in a command line environment and not with a graphical interface, 2 - be sure you have rights to create files and folders in the folder where the DOS appears, or change to a folder where you have full rigths, 3 - invoke the python to execute generate.py, as in python generate.py 4 - you will see if it runs, when you will also know about missing parameters you need to add to your command above, for example the equirectangular file to generate the tiles from (mandatory) and optionally an output folder for the results, like python generate.py MyBigPanoEquirect.tif -o BPanoMultiRes

  try python generate.py -h   for help and options, or open generate.py

in a text (notepad) editor and see how it works

 You can later build a webpage and run a server locally with python -m

http.server. I think Matthew explains this in some place

regards,

Luís Henrique

Em sex., 7 de ago. de 2020 às 04:46, TypicalDave notifications@github.com escreveu:

Hey, Matthew im not a programmer or something, but i would like to learn how to use the multiresolution panorama. i use windows 10 x64, installed Python 3.8, and downloaded Hugin, and Pillow 7.2.0-cp38, but i dont know what i need to do next. ive tried to open the Generate.py, theres a window showed up and immediately close itself, can you please help guide me to generate my multiresolution panorama?, thankyou

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mpetroff/pannellum/issues/902, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPYPLJMFE2HN2EE7RUWRFTR7OWNHANCNFSM4PXLSSMQ .

-- -- Luis Henrique Camargo Quiroz http://luishcq.br.tripod.com - http://www.christusrex.org/www2/cantgreg http://panoramaslh.net/

mpetroff commented 4 years ago

What Luís said is correct, with the caveat that you either need to make sure the location of nona.exe is included in your %PATH% environment variable or need to specify its location with the -n flag while invoking generate.py.

luishcq commented 3 years ago

Hi!

Can you try a simply named output folder (no spaces, no special characters, no accents) just where you run generate.py, and later move and rename it as desired? It's just a hint, I don't know if this will work.

I never saw this long text - kind of usage help - when I run generate.py, but I am on linux ;)

regards,

Luís Henrique

Em sex., 13 de nov. de 2020 às 21:05, krisztianbkertesz < notifications@github.com> escreveu:

Hi!

I'm actually trying to generate my first multires panorama at the moment. I installed Python (3.9), and the following command:

python generate.py alma.jpg -n "c:_portable\hugin 2012.0.0\bin\nona.exe"

runs (seemingly without errors), but the output folder is empty. Well, technically the config.json file gets created, but there are no tiles whatsoever. This is the full output of in the console. Any ideas what's going wrong here? :)

`Processing input image information... Assuming --haov 360.0 Assuming --vaov 180.0 Generating cube faces... c:_portable\hugin 2012.0.0\bin\nona.exe: stitch a panorama image

nona version 2012.0.0.a6e4184ad538 built by Matthew Petroff

It uses the transform function from PanoTools, the stitching itself is quite simple, no seam feathering is done. only the non-antialiasing interpolators of panotools are supported

The following output formats (n option of panotools p script line) are supported:

JPG, TIFF, PNG : Single image formats without feathered blending: TIFF_m : multiple tiff files TIFF_multilayer : Multilayer tiff files, readable by The Gimp 2.0

Usage: c:_portable\hugin 2012.0.0\bin\nona.exe [options] -o output project_file (image files) Options: -c create coordinate images (only TIFF_m output) -v quiet, do not output progress indicators -t num number of threads to be used (default: nr of available cores) -g perform image remapping on the GPU

The following options can be used to override settings in the project file: -i num remap only image with number num (can be specified multiple times) -m str set output file format (TIFF, TIFF_m, TIFF_multilayer, EXR, EXR_m) -r ldr/hdr set output mode. ldr keep original bit depth and response hdr merge to hdr -e exposure set exposure for ldr mode -p TYPE pixel type of the output. Can be one of: UINT8 8 bit unsigned integer UINT16 16 bit unsigned integer INT16 16 bit signed integer UINT32 32 bit unsigned integer INT32 32 bit signed integer FLOAT 32 bit floating point -z set compression type. Possible options for tiff output: NONE no compression PACKBITS packbits compression LZW lzw compression DEFLATE deflate compression

Generating tiles... Generating fallback tiles...`

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mpetroff/pannellum/issues/902#issuecomment-727093282, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPYPLKOEGW5JE6EWNZRG6LSPXCULANCNFSM4PXLSSMQ .

-- -- Luis Henrique Camargo Quiroz http://luishcq.br.tripod.com - http://www.christusrex.org/www2/cantgreg http://panoramaslh.net/

juchijaw commented 3 years ago

I have made a program in php that allows me to make multiresolution virtual tours in a few steps, with a standardized style that can later be modified. You need a local server, the generate.py file, and nona.exe installed. The images of the tour and the hotspots are created visually and the final result is saved in a folder ready to copy and paste on the web server. You can see the result at: https://vallepunilla.com.ar/elbrigadier/tour/index.php I am not a good programmer, but what I have done makes the task much easier even in spite of having to load certain data manually. However, if someone can collaborate to perfect it, we could have an environment to carry out virtual tours based on pannellum, I think it can be a good contribution to the community.