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

Contextual Color Shaders #10

Open
Xevion opened this issue May 24, 2020 · 1 comment
Open

Contextual Color Shaders #10

Xevion opened this issue May 24, 2020 · 1 comment
Labels
state: pending Taking action, but need a few things to happen first. type: experimental May introduce difficult problems or require innovative implementations to be successful. type: feature Brand new functionality, features, pages, workflows, endpoints, etc. work: complex The situation is complex, emergent practices used.

Comments

@Xevion
Copy link
Owner

Xevion commented May 24, 2020

Custom shaders applied to individual Boids that color their mesh based on contextual things like their Velocity (or Angle).

For example, a custom shader that colors individual Boids based on their angle in a linear gradient. A shader like this would make individual 'flocks' much easier to see, as flocks would have similar colors different from other flocks. Colliding flocks may be red and green before they collided, unleashing a sporadic wave of yellow with tendrils of red and green as they struggled to get past.

A shader like this would benefit from #4 as the twitching would likely cause noticeable flickering as they shifted back and forth and 'bounced' off each other.
This is definitely a experimental feature, but would likely be one of the most 'flashy' should I get it to work.

@Xevion Xevion added type: feature Brand new functionality, features, pages, workflows, endpoints, etc. work: complex The situation is complex, emergent practices used. state: pending Taking action, but need a few things to happen first. type: experimental May introduce difficult problems or require innovative implementations to be successful. labels May 24, 2020
@Xevion
Copy link
Owner Author

Xevion commented May 24, 2020

There's potential for me to create shader-like behavior without relying on actual Shaders, but I'll need to do experiments. I'm going to start calling these shaders 'heatmaps', even if technically they aren't heatmaps specifically. But the effect I want from both is the same: the visualized density of a certain phenomenon within a certain area.

Some other ideas:

  • Infection Heatmap
    • A topical heatmap that may work with the Separation rule to identication what Boids have 'touched' a specific Boid, simulating a infection of sorts. I should look up COVID-19 simulations, infection logic and such.
  • Flock Heatmap
    • A heatmap that colors specific flocks based on proximity. This is most likely a very difficult heatmap, and likely won't be performant without some kind of extremely fast flock identification algorithm.
  • Velocity Magnitude Heatmap
    • A heatmap that colors Boids based on their speed (not velocity, which is a signed vector!). This speed could be calculated based on the Velocity's absolute magnitude.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: pending Taking action, but need a few things to happen first. type: experimental May introduce difficult problems or require innovative implementations to be successful. type: feature Brand new functionality, features, pages, workflows, endpoints, etc. work: complex The situation is complex, emergent practices used.
Projects
None yet
Development

No branches or pull requests

1 participant