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
57ca64e741
Allow hot spot `scale` parameter to set a fixed scale ( fixes #1150 ).
1 year ago
Matthew Petroff
54b7b22d03
Improve documentation of hot spot click events (see #1133 ).
Thanks to @strarsis .
1 year ago
Matthew Petroff
2198c25996
Add and document additional standalone URL config parameters.
2 years ago
Matthew Petroff
73b6d16238
Note that `orientationOnByDefault` generally does not work with `autoLoad`.
This is a result of browsers' stricter protections around accessing device
sensors.
2 years ago
Matthew Petroff
71bac61e3b
Make hot spot and scene ID checking less strict ( #1088 ).
2 years ago
Matthew Petroff
950942830f
Add ability to provide existing WebGL context to renderer.
Also add ability to provide a hook to execute just prior to rendering.
2 years ago
Matthew Petroff
308d86ecd9
Remove "fallback" parameter, since Flash-based viewers no longer work.
It doesn't make much sense to provide a URL to a non-WebGL viewer anymore.
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
strarsis
a6c71665a7
UI confirmation (touch/mouse wheel) ( #952 )
* 64c337b
* Update build.
* Build 05837fd
.
* Build d1555b3,
* Build eb41687
.
* Build b232a6b
.
* Build 233b100
.
* Build ab7b859
.
* Build 805f6da
.
* Build 25e3d6d
.
* Build 54a8dc6
.
* Build 0d32eea
.
* Build eeb9383
.
* Add code.
* Improve/fix interaction message fade.
Fix indentations.
* Build for UI confirmation (40ffc37
).
* Ignore build/ again.
* Change interation message text and style.
* Don't display interaction messages while in fullscreen.
* Don't change defaults and add documentation for interation messages.
* Disable `ctrl` / `shift` zoom when `ctrl` is required for mouse wheel zoom.
* Show interaction key based on platform.
* Cleanup.
* Remove pre-built files.
* Use `<div>` for interaction message.
* Fix case without drag confirm and show proper message for `both`.
Also switch back to using separate `dragConfirm` parameter.
* Document interaction message events.
Co-authored-by: Matthew Petroff <matthew@mpetroff.net>
3 years ago
Matthew Petroff
4382de1604
Make opening of links in new tabs configurable.
Default to not doing so except for in standalone viewer.
4 years ago
NiHoel
6758d060f7
Add hot spot dragging and a few more minor changes ( #881 ).
* Hotspot dragging (hot spot attribute draggable + dragHandler function)
* Allow Image and ImageData and ImageBitmap as parameter panorama for equirectangular scenes
4 years ago
Matthew Petroff
28144ad301
Fix issue with `avoidShowingBackground` without `minPitch` / `maxPitch` defined ( fixes #851 ).
4 years ago
Matthew Petroff
becd096819
Document `doubleClickZoom` parameter (see #842 ).
4 years ago
Matthew Petroff
f6ac45ba7f
Add note about HTTPS being needed for device orientation.
5 years ago
Will Calderbank
3bbc5574cb
Add scale option to hot spot ( #760 )
* Add scale option to hot spot
When `true`, the hot spot is scaled to match the fish eye effect of the image.
Hot spots then appear to be embedded in the panorama instead of floating on top.
5 years ago
Matthew Petroff
de08b9d7a8
Add `authorURL` configuration parameter (implements #751 ).
5 years ago
Matthew Petroff
d02cedcc4e
Document that the viewer pans to the initial pitch before starting auto rotation (see #744 ).
5 years ago
Matthew Petroff
a057211989
Allow switching to dynamic scenes ( fixes #686 ).
6 years ago
Matthew Petroff
42a7a3a08d
Add documentation for new `friction` configuration parameter.
6 years ago
Matthew Petroff
6d8a19991d
Add documentation for new `animatefinished` event.
6 years ago
Matthew Petroff
35b21e84a5
Fix comma splices added by pull request #652 .
6 years ago
Jutinidlerz
f6ceb462a7
Add `zoomchange`, `fullscreenchange` event fired
6 years ago
Matthew Petroff
a9d0d0c335
Fix mistake in last commit.
6 years ago
Matthew Petroff
93fe22a4dc
Document hot spot `attribute` parameter (and remove `target` parameter).
6 years ago
Matthew Petroff
35083170d5
Add config parameter to use `minHfov` for `multires` panoramas.
Normally, the value of `minHfov` is ignored for said panoramas, and an
automatically calculated value is used instead.
6 years ago
Matthew Petroff
01f932ef81
Document hot spot `target` parameter.
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
David von Oheimb
edc587cd89
avoid showing out-of-range areas of partial (cylindrical) panoramas ( #567 )
* prevent display of out-of-range areas of partial (cylindrical) panoramas
by adaping min/may yaw and max horizontal fov, this no background (empty space) shown
* improvements as requested: made view restrictions optional, etc.
* extend documentation to describe new avoidShowingBackground option
6 years ago
Matthew Petroff
c979ff362e
Add background color support for multires panoramas.
6 years ago
Jonathan Bowman
e67c946f5e
Added config option to adjust the drag speed by a factor ( #556 )
6 years ago
Matthew Petroff
9ba4c93c3c
Clarify documentation for `targetHfov` parameter.
6 years ago
Matthew Petroff
46b6b9c073
Change `usedKeyNumbers` parameter to `capturedKeyNumbers` to be more descriptive.
6 years ago
Matthew Petroff
2de1706be0
Allow CORS setting to be configured (implements #515 ).
6 years ago
Matthew Petroff
499fff145d
Add option to disable keyboard controls.
7 years ago
Matthew Petroff
93f3df1431
Add translation support (implements #147 ).
7 years ago
Matthew Petroff
07c9140548
Add documentation for hot spot ID.
7 years ago
Matthew Petroff
1e61a22be6
Add `touchstart` and `touchend` events.
7 years ago
Matthew Petroff
12f578a433
Document new `draggable` parameter.
7 years ago
Matthew Petroff
624c1c1124
Add `loadButtonLabel`, `previewTitle`, and `previewAuthor` configuration options (implements #334 ).
7 years ago
Matthew Petroff
0b00ea5886
Allow HTML in configuration strings when using API.
7 years ago
Matthew Petroff
b0b7a77cbb
Add option for only enabling mouse wheel zoom while fullscreen (implements #333 ).
7 years ago
Matthew Petroff
ded506d22d
Add `animationTimingFunction` parameter that allows custom timing functions to be used for animations (implements #331 ).
7 years ago
Matthew Petroff
4840875186
Add event that fires when scene change fade completes.
7 years ago
Matthew Petroff
15903fca94
Prep for release.
8 years ago
Matthew Petroff
540c907d09
Improve documentation of `targetPitch` and `targetYaw` parameters.
8 years ago
Matthew Petroff
79738fabfa
Documentation I forgot to add to the last commit.
8 years ago
Matthew Petroff
e8e7353f27
Document custom hot spot options.
8 years ago
Matthew Petroff
c1067e5c1c
Add `mouseup` event.
8 years ago
Matthew Petroff
d5d3f0b47a
Update documentation to match last commit.
8 years ago