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 месеци
Matthew Petroff
57ca64e741
Allow hot spot `scale` parameter to set a fixed scale ( fixes #1150 ).
пре 1 година
Matthew Petroff
54b7b22d03
Improve documentation of hot spot click events (see #1133 ).
Thanks to @strarsis .
пре 1 година
Matthew Petroff
2198c25996
Add and document additional standalone URL config parameters.
пре 2 година
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 година
Matthew Petroff
71bac61e3b
Make hot spot and scene ID checking less strict ( #1088 ).
пре 2 година
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 година
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 година
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 година
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 година
Matthew Petroff
4382de1604
Make opening of links in new tabs configurable.
Default to not doing so except for in standalone viewer.
пре 4 година
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 година
Matthew Petroff
28144ad301
Fix issue with `avoidShowingBackground` without `minPitch` / `maxPitch` defined ( fixes #851 ).
пре 4 година
Matthew Petroff
becd096819
Document `doubleClickZoom` parameter (see #842 ).
пре 4 година
Matthew Petroff
f6ac45ba7f
Add note about HTTPS being needed for device orientation.
пре 5 година
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 година
Matthew Petroff
de08b9d7a8
Add `authorURL` configuration parameter (implements #751 ).
пре 5 година
Matthew Petroff
d02cedcc4e
Document that the viewer pans to the initial pitch before starting auto rotation (see #744 ).
пре 5 година
Matthew Petroff
a057211989
Allow switching to dynamic scenes ( fixes #686 ).
пре 6 година
Matthew Petroff
42a7a3a08d
Add documentation for new `friction` configuration parameter.
пре 6 година
Matthew Petroff
6d8a19991d
Add documentation for new `animatefinished` event.
пре 6 година
Matthew Petroff
35b21e84a5
Fix comma splices added by pull request #652 .
пре 6 година
Jutinidlerz
f6ceb462a7
Add `zoomchange`, `fullscreenchange` event fired
пре 6 година
Matthew Petroff
a9d0d0c335
Fix mistake in last commit.
пре 6 година
Matthew Petroff
93fe22a4dc
Document hot spot `attribute` parameter (and remove `target` parameter).
пре 6 година
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 година
Matthew Petroff
01f932ef81
Document hot spot `target` parameter.
пре 6 година
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 година
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 година
Matthew Petroff
c979ff362e
Add background color support for multires panoramas.
пре 6 година
Jonathan Bowman
e67c946f5e
Added config option to adjust the drag speed by a factor ( #556 )
пре 6 година
Matthew Petroff
9ba4c93c3c
Clarify documentation for `targetHfov` parameter.
пре 6 година
Matthew Petroff
46b6b9c073
Change `usedKeyNumbers` parameter to `capturedKeyNumbers` to be more descriptive.
пре 6 година
Matthew Petroff
2de1706be0
Allow CORS setting to be configured (implements #515 ).
пре 6 година
Matthew Petroff
499fff145d
Add option to disable keyboard controls.
пре 7 година
Matthew Petroff
93f3df1431
Add translation support (implements #147 ).
пре 7 година
Matthew Petroff
07c9140548
Add documentation for hot spot ID.
пре 7 година
Matthew Petroff
1e61a22be6
Add `touchstart` and `touchend` events.
пре 7 година
Matthew Petroff
12f578a433
Document new `draggable` parameter.
пре 7 година
Matthew Petroff
624c1c1124
Add `loadButtonLabel`, `previewTitle`, and `previewAuthor` configuration options (implements #334 ).
пре 7 година
Matthew Petroff
0b00ea5886
Allow HTML in configuration strings when using API.
пре 7 година
Matthew Petroff
b0b7a77cbb
Add option for only enabling mouse wheel zoom while fullscreen (implements #333 ).
пре 7 година
Matthew Petroff
ded506d22d
Add `animationTimingFunction` parameter that allows custom timing functions to be used for animations (implements #331 ).
пре 7 година
Matthew Petroff
4840875186
Add event that fires when scene change fade completes.
пре 7 година
Matthew Petroff
15903fca94
Prep for release.
пре 8 година
Matthew Petroff
540c907d09
Improve documentation of `targetPitch` and `targetYaw` parameters.
пре 8 година
Matthew Petroff
79738fabfa
Documentation I forgot to add to the last commit.
пре 8 година
Matthew Petroff
e8e7353f27
Document custom hot spot options.
пре 8 година
Matthew Petroff
c1067e5c1c
Add `mouseup` event.
пре 8 година
Matthew Petroff
d5d3f0b47a
Update documentation to match last commit.
пре 8 година