-
-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using subPixelRoundingForTransparency to test a tile boundary issue #2514
Comments
If you build from master and use |
@pearcetm ,Thanks for your response. |
The new WebGL drawer was introduced in #2310 which isn't part of a release yet, so you'd have to build it yourself to try it out. A main motivation for using WebGL was to avoid tiling artifacts like this. If you're interested in doing so, it is as easy as cloning the repository and following the contributing guide to see how to build a local copy. In terms of your current situation, PNGs are always treated as potentially transparent, which causes tiling issues like you're seeing. One thing you can try is overriding this by overriding |
You can select the drawer in the viewer options (e.g. |
Thank you for the instruction for building a local master. I will give it a go sometime this weekend. But, does the subPixelRoundingForTransparency come into play for eliminating the tile boundary? Also, why does the issue not occur with OSD v2.3 and earlier? |
I'm not sure exactly why you aren't seeing this in v2.3 and earlier, but I would guess that code was added at some point that improved drawing of some images but caused other issues like this one too. I was able to use your example page (thanks for providing that link!) and the debugger console to figure out a couple of fixes for you (which don't require building from master). First, your instinct that Setting Another way to fix it is to tell the viewer that the tile source does NOT have transparency: The latter option is more of a hack though, I'd go with the former. It looks like you were just missing the |
Thank you for the suggestions!. Yes, setting the subPixelRoundingForTransparency: does resolve the tile boundary issues. HOWEVER, the tiles now "quiver" upon zooming. It's as if there is a severe heat-wave shimmer occurring, it disappears as the zoom event settles down. Check the example page.... EDIT: |
The quiver/shimmer you're observing is inherent to the rounding that is needed to avoid seams. See #1713 (comment) for a discussion, and #2075 for further info. One option that is supported by the current viewer options is to only apply the subpixel rounding once animation is complete, so that it doesn't jitter during animation. However, since you don't actually have transparency, the "hack" is maybe the best way to go. The best fix, though, is probably to use the |
Thanks for the update. |
No worries about calling it a “hack” - that was my term for it after all!
Are you able to install
https://gitforwindows.org on your windows dev environment? Having git for
version control is always a good idea…
…On Sat, Apr 13, 2024 at 8:02 PM bdrichards ***@***.***> wrote:
Thanks for the update.
Sorry if using the "hack" word came across offensive, it actually is a
nice, easy-to-understand temporary "workaround".
I'm attempting a local build, but step number 3 in the contributing guide
says "Clone the repository". Well, that provides a barrier. Following the
directions for cloning a repository gets me to a step that says: "Open git
bash". Since I am on a Windows system (IIS), I have no "git bash" locally.
Kind of dead in the water.
Thank you for the help, though.
—
Reply to this email directly, view it on GitHub
<#2514 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC7LYHIV25F7CVCQD3YWPWDY5HBSLAVCNFSM6AAAAABGE4LQKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJTHAYDQMBWGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks for the "hack"/"workaround"! |
@bdrichards No worries... I'm glad you're moving up the learning curve! |
@iangilman Fatal error: Unable to find local grunt. If you're seeing this message, grunt hasn't been installed locally to |
Have you done all the "First Time Setup" steps? From CONTRIBUTING.md
|
From the comment in this stackoverflow question, this error message can happen if you haven't run |
@msalsbery , yes, I followed the Contributing Guide steps, but with first repository (not the intended one). Perhaps some explanation as to what "npm install" accomplishes would help in more complete understanding. Ran within the newly cloned repository and everything gets into the build!! Apparently, "npm install" module also calls "grunt" Thanks for the assistance! |
I need a little help including subPixelRoundingForTransparency in viewer options, here is a snippet of my options list. Is the subPixelRoundingForTransparency referenced properly? There isn't an example of syntax that I could find anywhere:
Reason for testing this: we have encountered the "tile boundary visible" issue (at all zoom levels, image below). The details need explaining, but in general: deepzoom tile sets generated by Image Composite Editor (ICE), file_type = PNG ( no known transparency regions within tile), tile_overlap = 1, tile_size = 256, Windows 7 system and occurs in all browsers tested, OSD versions prior to 2.4 do not display the issue. Thought we would try this option to see if it resolves. We tested setting tile_overlap and tile_size combinations, but same result. HERE is link to image in OSD viewer
The text was updated successfully, but these errors were encountered: