Skip to content

fix: remove double circle draw in skeletons#1037

Open
seankmartin wants to merge 1 commit into
google:masterfrom
MetaCell:fix/remove-double-skeleton-circle-draw
Open

fix: remove double circle draw in skeletons#1037
seankmartin wants to merge 1 commit into
google:masterfrom
MetaCell:fix/remove-double-skeleton-circle-draw

Conversation

@seankmartin

Copy link
Copy Markdown
Contributor

Skeletons were double rendering points due to calling drawCircles with two points per instance. This had generally little impact practically unless skeletons were rendered transparent. In that case the nodes double rendering would make them less transparent than the lines. This did kind of hide a bit that the lines were still rendering under points, but if we want to keep that visual effect we should do it explicitly instead of a double render.

Example in neuroglancer.demo

Master branch version:
image

This PR version:
image

@chrisj

chrisj commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

@seankmartin it looks like the test failure is real
change looks good!

@seankmartin

seankmartin commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

@seankmartin it looks like the test failure is real change looks good!

Thanks, I agree it looks real though I'm confused why. My best guess is that something in the test is causing the point to actually go slightly transparent. And the old double rendering meant that two points together made full red and didn't let the background through. I'll try changing the background to see.

Edit - changing the background changes the result, so pretty sure that's what is going on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants