Skip to content

regl-scatter2d bug fix - to keep trace colors - #3242

Closed
archmoj wants to merge 6 commits into
masterfrom
issue-3232
Closed

archmoj wants to merge 6 commits into
masterfrom
issue-3232

Conversation

@archmoj

@archmoj archmoj commented Nov 13, 2018

Copy link
Copy Markdown
Contributor

Fixes #3232 in the regl-scatter2d module.
@etpinard
@alexcjohnson

@archmoj archmoj added the bug something broken label Nov 13, 2018
@etpinard

etpinard commented Nov 13, 2018 •

Copy link
Copy Markdown
Contributor

Yeah, that will fix the bug. I suspect users will notice some performance deterioration after on graphs with >256 colors, but I'm ok with showing the correct colors slowly as opposed to the wrong colors fast - until we figure out a way to use WebGL textures for graphs with more than 255 colors (tracked in gl-vis/regl-scatter2d#14)

@archmoj would you mind adding a mock to 🔒 this bug down? Grabbing the data/layout from https://codepen.io/alexcjohnson/pen/JeXOGX?editors=1010 should suffice.

Comment thread package.json Outdated
"regl-error2d": "^2.0.5",
"regl-line2d": "^3.0.12",
"regl-scatter2d": "^3.0.6",
"regl-scatter2d": "git://github.com/a-vis/regl-scatter2d.git#0515a47c5468363d19654fcb9383d7135c93c8ad",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this brings the max number of colors in a WebGL texture to 256x256=65536, and falls back to plain buffer beyond that? That's amazing! I gotta be honest, I don't fully understand your split8Uint dance, maybe you could explain it to me in person before or after the meeting tomorrow?

Now, looks like your latest commit made several image test cases fail, do you know why that is?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I would fix this today. Don't worry about the failed image test for the moment. There are a bunch of commits which are not yet pushed to gl-vis.

@archmoj

archmoj commented Nov 14, 2018

Copy link
Copy Markdown
Contributor Author

@etpinard thanks for the comment. In respect to what you mentioned I revised other parts of regl-scatter2d which would allow using 65535 color palette.

@etpinard

Copy link
Copy Markdown
Contributor

@archmoj looks like you got the tests to ✅

Now, could you submit a PR to regl-scatter2d and ping @dy to see what he thinks?

@archmoj

archmoj commented Nov 15, 2018

Copy link
Copy Markdown
Contributor Author

@etpinard I would say we are pretty close to fix this. But there is still one thing remained that will show up in the coming tests.

@archmoj

archmoj commented Dec 12, 2018

Copy link
Copy Markdown
Contributor Author

Closed in regard with #3328. But I prefer not to delete the branch too for further work...

@archmoj archmoj closed this Dec 12, 2018
@etpinard
etpinard deleted the issue-3232 branch December 17, 2018 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants