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

Variable colors along a single line #7192

Open
Famok opened this issue Aug 15, 2024 · 1 comment
Open

Variable colors along a single line #7192

Famok opened this issue Aug 15, 2024 · 1 comment
Labels
enhancement New feature or request 🍏 primitives Relating to Rerun primitives 🔺 re_renderer affects re_renderer itself 📺 re_viewer affects re_viewer itself

Comments

@Famok
Copy link

Famok commented Aug 15, 2024

Describe the solution you'd like
I want to display a feature f1(times, values) along a path p1(times, x, y) using a color coded line in 2D using the time so I end up with an array a1(x, y, values). To visualize that, I could use LineSegments2D with each segment having on color. But this leads to this issue, even more so since now we would have to consider multiple segments.
Therefore I suggest a simple Line2D with a RGBA color vector (or single value)

Describe alternatives you've considered
I could use Points2D but this is not as good.

@Famok Famok added enhancement New feature or request 👀 needs triage This issue needs to be triaged by the Rerun team labels Aug 15, 2024
@Wumpf
Copy link
Member

Wumpf commented Aug 15, 2024

Haven't thought it through yet, but this sounds like we need to add dedicated Lines2D/Lines3D archetype or come up with some way to model intra-line properties - colors would need to be an array of array the way things are set up right now 🤔. Separate archetype might be both nicer to use and to implement. Not sure yet!

Tagging this with re_renderer as well since the line renderer right now only understands a single color for every connected run of vertices. Not concerned that we can't tackle that, but needs some thinking of how this can be done efficiently (might be time to introduce some form of internal variant for these cases).

@Wumpf Wumpf added 🔺 re_renderer affects re_renderer itself 📺 re_viewer affects re_viewer itself 🍏 primitives Relating to Rerun primitives and removed 👀 needs triage This issue needs to be triaged by the Rerun team labels Aug 15, 2024
@Wumpf Wumpf changed the title Colored 2D Line Variable colors along a single line Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🍏 primitives Relating to Rerun primitives 🔺 re_renderer affects re_renderer itself 📺 re_viewer affects re_viewer itself
Projects
None yet
Development

No branches or pull requests

2 participants