Andras Elso
c8b5cf2fe8
Rewrite Dockerfile
6 months ago
Andras Elso
a2a663075f
Upgrade dockerfile to newer ubuntu LTS
6 months ago
Matthew Petroff
5ad3745c3a
Cleanup.
9 months ago
Matthew Petroff
150dfae33b
Use a list of missing multires tiles to avoid trying load them.
This avoids the 404 errors that would previously result.
A compact encoding is used, with `!` plus the face letter used to specify a
new face, `>` plus a base83-encoded number used to specify a new level, and a
list of base83-encoded numbers used to specify x and y tile coordinates, where
the base83 encoding uses the minimum number of characters to encode the
maximum tile number for the level in question. The base83 encoding is the same
as the one used for SHT hashes.
9 months ago
Matthew Petroff
2d8ab26c36
Bump copyright year.
9 months ago
Ruslan Kabalin
8bc4798a9d
Pin pyshtools to 4.9.1 in multires generator Dockerfile.
Latest version of pyshtools uses Meson for building and does not build
in 20.04.
9 months ago
Matthew Petroff
a56b1c43c1
Fix generate.py script for Python 3.12.
It now no longer works with Python <3.2.
1 year ago
Matthew Petroff
7d42e49d10
Handling deprecation of ANTIALIAS by Pillow ( fixes #1119 ).
2 years ago
Matthew Petroff
33bc23dba9
Bump copyright year.
2 years ago
Matthew Petroff
e94caefa13
Add option to skip creation of multires fallback images.
2 years ago
Matthew Petroff
37453a99b4
Expand directions for installing pyshtools.
3 years ago
Matthew Petroff
6fc7a23007
Resize image before SHT calculation to ensure even dimensions ( fixes #1010 ).
This probably also speeds up the calculation.
3 years ago
Matthew Petroff
f9ccdda5bd
Multires thumbnail must be a power of two.
WebGL 1 doesn't support REPEAT clamp mode for non-power-of-two images, which
is needed to avoid some rendering artifacts for small previews.
3 years ago
Matthew Petroff
9788fc6512
Add support for multires SHT and thumbnail previews.
Spherical harmonic transform (SHT) previews are display instead of a solid
background color before the base multires tiles are loaded. If a thumbnail is
provided, it will be displayed instead of the SHT preview. If the thumbnail is
provided as a Base64-encoded string, the SHT preview may be briefly displayed,
since image loading is asynchronous, while the SHT preview is loaded
synchronously.
3 years ago
Matthew Petroff
02424bdfa3
Make it clear that location hashes are preferred over location query strings.
3 years ago
Matthew Petroff
c0f74cc03c
Bump copyright year.
3 years ago
Jonas Petersen
9ccf60b88e
Fixed typo.
3 years ago
Andras Elso
2d529c5fac
Dockerfile tweak ( #919 )
* Upgrade dockerfile to ubuntu 20.04
* Delete apt list files
4 years ago
Matthew Petroff
28144ad301
Fix issue with `avoidShowingBackground` without `minPitch` / `maxPitch` defined ( fixes #851 ).
4 years ago
Matthew Petroff
6fd8a09710
Fix edge case with multires tiles.
Previously, one could generate a tile set that had the second level resolution
equal to the tile resolution, so it only had one tile per face.
5 years ago
Vanessa Sochat
4bb9df8983
adding missing dockerfile dependency
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
5 years ago
Matthew Petroff
9e506a46bf
Clarify nona error message further.
5 years ago
Matthew Petroff
37329ec247
Simplify dependencies in Dockerfile.
5 years ago
Matthew Petroff
1f06b1e5e3
Rewrite multires readme to not just be about Docker.
5 years ago
Vanessa Sochat
a886ab3518
adding complete example with Dockerfile to use generate.py
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
5 years ago
Matthew Petroff
f9749f9b5e
Make issue with missing `nona` more obvious.
5 years ago
matejsoukup
a99d4eaa1c
Partial panorama default cube size fix
Change computation of cube size - taking haov into account
6 years ago
Matthew Petroff
60c4d5d606
Don't add extra parameters to JSON config file ( fixes #624 ).
6 years ago
Matthew Petroff
8934629cbb
Generate all multires tiles when using full panorama, and when skipping tiles, make sure the tile color matches the background color.
6 years ago
Matthew Petroff
ed05162933
Allow for generating large multires images with Pillow >5.0.
6 years ago
David von Oheimb
0c92d85b11
support also partial cubemap/fallback images: backgroundColor for missing face(s) ( #570 )
* support also partial cubemap/fallback images: backgroundColor for missing face(s)
* extend multires/generate.py to cylindrical input and partial panoramas
* fixed a few typos in new help strings of generate.py
* Missing cubemap faces now need to be defined as null in the configuration
* made generate.py strict again on existing output directory, printing descriptive error message
* replaced unsafe eval by ast.literal_eval in generate.py
* a couple of minor improvements regarding 'undefined' in libpannellum.js
* made generate.py allow existing output directory in debug mode
for convenience, no need to delete output directory every time while testing
6 years ago
Matthew Petroff
2341ef6b2b
Bump copyright year.
6 years ago
Matthew Petroff
972e7e4f3d
Drop alpha channel to work with Pillow >4.2 ( fixes #455 ).
7 years ago
Matthew Petroff
cd72d775b1
Handle PATH not being set ( fixes #336 ).
7 years ago
Matthew Petroff
f5acb2e8d7
Bump copyright year.
8 years ago
Matthew Petroff
3ca79600ba
Add Pillow to the requirement list for the multires `generate.py` script.
8 years ago
Matthew Petroff
f430bbfc34
Don't explicitly type out pi.
8 years ago
Johannes Lehtinen
ce5e6d4b81
Added a -q/--quality option to specify output JPEG quality.
9 years ago
Johannes Lehtinen
69908bc449
Added a -c/--cubesize option for specifying the cube size to the multires generation script. Default is to automatically determine cube size as before.
9 years ago
mko
04ca9d02ab
Do not prefix paths with dot
Extra dot in front of paths like 'path' and 'fallbackPath' are not necessary and may cause unexpected errors.
9 years ago
Matthew Petroff
b268d29c42
Make CSS 3D renderer work with cubemaps, fix its edge flickering bug, and remove need for extra row of pixels in multires fallback images.
9 years ago
Matthew Petroff
9d4f8deb4d
Add comment about needing nona.
9 years ago
Matthew Petroff
bb3b6bd1e3
Bump copyright year.
10 years ago
Matthew Petroff
16a2afe223
Add Python 2.7 support to multires generation script.
10 years ago
Matthew Petroff
42b97e682b
Use correct extension in generated multires config.
10 years ago
Matthew Petroff
6c5fc192c3
Add check to multires generation script to try to make sure the input isn't a partial panorama.
10 years ago
Matthew Petroff
8872fbbeec
Add fallback parameter to multires generator script.
10 years ago
Matthew Petroff
062b01f754
Add 1px border to remove thin lines visible in CSS renderer.
10 years ago
Matthew Petroff
901726e3a4
Add fallback tiles to multires generation script.
10 years ago
Johannes Wienke
91005f8e61
Replace system calls with subprocess
Replaces the os.system call for nona with a subprocess.check_call call
to get informed about errors when calling nona instead of silently
ignoring them before failing with missing files.
10 years ago