google / google/neuroglancer

Annotations/Skeletons do not respect layer order while rendering

Open
#968 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.5k
Forks
389
Avg merge
3d 21h
Merged PRs (30d)
3

Description

In the example below you will probably/might see some point annotations appear and then disappear once the skeleton loads (the red color) even though skeletons are layer 1 and annotations are layer 2. If you toggle visibility on a layer, it will render itself on top of the other layer.

I would expect the layers to always be rendering in layer order with higher layer numbers being rendered on top of lower ones as is the case with image/segmentation layers.

[Example](https://neuroglancer-demo.appspot.com/#!%7B%22dimensions%22:%7B%22x%22:%5B1e-9%2C%22m%22%5D%2C%22y%22:%5B1e-9%2C%22m%22%5D%2C%22z%22:%5B1e-9%2C%22m%22%5D%7D%2C%22position%22:%5B440987.1875%2C151388.140625%2C201866.15625%5D%2C%22crossSectionScale%22:31.816976514667587%2C%22crossSectionDepth%22:-5629499534213120%2C%22projectionOrientation%22:%5B-0.012708138674497604%2C-0.30013686418533325%2C-0.5552010536193848%2C0.7755695581436157%5D%2C%22projectionScale%22:20983.082684613506%2C%22layers%22:%5B%7B%22type%22:%22segmentation%22%2C%22source%22:%22gs://fafb-ffn1/fafb-public-skeletons/%7Cneuroglancer-precomputed:%22%2C%22tab%22:%22rendering%22%2C%22meshSilhouetteRendering%22:2.4%2C%22skeletonRendering%22:%7B%22lineWidth2d%22:40%7D%2C%22segments%22:%5B%22203840%22%5D%2C%22segmentDefaultColor%22:%22#ff0000%22%2C%22name%22:%22fafb-public-skeletons%22%7D%2C%7B%22type%22:%22annotation%22%2C%22source%22:%7B%22url%22:%22local://annotations%22%2C%22transform%22:%7B%22outputDimensions%22:%7B%22x%22:%5B1e-9%2C%22m%22%5D%2C%22y%22:%5B1e-9%2C%22m%22%5D%2C%22z%22:%5B1e-9%2C%22m%22%5D%7D%7D%7D%2C%22tool%22:%22annotatePoint%22%2C%22tab%22:%22rendering%22%2C%22annotations%22:%5B%7B%22point%22:%5B439157.5%2C146961.140625%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%2219e9ac64626cabbe7aacc423796b40efe0b1ca7a%22%7D%2C%7B%22point%22:%5B441048.96875%2C147242.234375%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%220162544773b75c329ad658f6d57e3f01d06ea5a0%22%7D%2C%7B%22point%22:%5B443595.9375%2C148535.3125%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%228e0d73f237d6a809825298fe86a9fbd398c69569%22%7D%2C%7B%22point%22:%5B443521.03125%2C151102.734375%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%222a80cdd8dae8866d9b18c8a648168a0cf845a6f1%22%7D%2C%7B%22point%22:%5B445843.25%2C151889.828125%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%2258c684b865854f1213c51880e70aeab18dc84dde%22%7D%2C%7B%22point%22:%5B441311.15625%2C153070.453125%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%2230f20ac27083f89a1ddb1c671a6460a2e436eb42%22%7D%2C%7B%22point%22:%5B438127.46875%2C150559.265625%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%22f99678ed8476842889efff29d7f8f7d51b7146ef%22%7D%2C%7B%22point%22:%5B440580.78125%2C149715.953125%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%22dc719e47e5a30c3cbf93ff03fc67cc7b165660c8%22%7D%2C%7B%22point%22:%5B439101.3125%2C152339.59375%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%22c167b871dcf3aaadb16f7cad2ef8a1ed29e2d49f%22%7D%2C%7B%22point%22:%5B439082.59375%2C153595.1875%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%2286874ecdca367d1f0f2330801e438fd6520cd1b3%22%7D%2C%7B%22point%22:%5B443652.125%2C153782.59375%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%22211074ef16619a5269abc63e02cf3942cc374b96%22%7D%2C%7B%22point%22:%5B441423.53125%2C151496.28125%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%2231a7e965207ecb959d2d1ff26b26f7267e18ccea%22%7D%2C%7B%22point%22:%5B438576.9375%2C151065.25%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%227c5316a5ee475d76129911f76a279f5df1f6c77b%22%7D%2C%7B%22point%22:%5B443652.125%2C149228.703125%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%22ad8ab3ffec0358f8c336b1613268997b00f92567%22%7D%2C%7B%22point%22:%5B441161.34375%2C150315.640625%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%223156784ac5d9ed5717a05c804010bad5ef597441%22%7D%2C%7B%22point%22:%5B440318.59375%2C148591.53125%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%224e0bcdf251e8e94f642296799ff1dcf4d1cda6f4%22%7D%2C%7B%22point%22:%5B438576.9375%2C148703.984375%2C201866.15625%5D%2C%22type%22:%22point%22%2C%22id%22:%22135b583aaa264591e9eb553b21305f2dcd70c699%22%7D%5D%2C%22name%22:%22annotation%22%7D%5D%2C%22showSlices%22:false%2C%22selectedLayer%22:%7B%22layer%22:%22annotation%22%7D%2C%22layout%22:%22xy%22%7D)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.