Skip to content
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

[BUG] Volume colors don't load from deep link #2227

Open
jasper-tms opened this issue Jul 27, 2022 · 0 comments
Open

[BUG] Volume colors don't load from deep link #2227

jasper-tms opened this issue Jul 27, 2022 · 0 comments

Comments

@jasper-tms
Copy link

Short description

I'm preparing a deep link to be included in a publication. The color of the volumes in the 3d viewer isn't loaded properly. I can see in the deep link's layout json that the color is correctly included:

'volumes':'[{'id':113,'project_id':61,'color':'#4383D2','opacity':0.2,'wireframe':false,'subdiv':0,'bb':false},{'id':111,'project_id':61,'color':'#4383D2','opacity':0.2,'wireframe':false,'subdiv':0,'bb':false},{'id':112,'project_id':61,'color':'#4383D2','opacity':0.2,'wireframe':false,'subdiv':0,'bb':false}]'

but that color attribute doesn't seem to be applied correctly when loading the deep link, so my volumes are displayed in a default grey color.

To reproduce

Open this link: https://radagast.hms.harvard.edu/catmaidvnc/61/links/4tnffd8 and you'll get grey volumes. I generated this deep link while the volumes were a blue-ish color (#4383D2 to be precise)

More information

In the javascript console, I do see warnings upon loading that say THREE.Color: Unknown color #438X3D2 and that must be related to the problem because the volumes are supposed to be displayed in color #4383D2. The X is presumably sneaking in there from some bug?

I know my CATMAID version is a bit old – happy to update if this is a known bug that has been fixed, but I didn't see any issue related to this.

I vaguely recall dealing with volume color/opacity loading issues when @tomka was first developing the deep links feature, but I thought everything was behaving well by the time we decided to declare victory. (I don't have access to my old email account anymore so I can't double check, sorry.)

Thanks for the help, hopefully this is a quick one.

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

No branches or pull requests

1 participant