patrickrb / edGalaxyMap

Interactive 3D Webgl Galaxy Map for the game Elite Dangerous built with Angular.js and Three.js
30 stars 9 forks source link

Color selection UI #39

Closed csvurt closed 8 years ago

csvurt commented 8 years ago

This adds a new UI panel with a series of checkboxes for the different colors to control the rendering of systems.

The nifty color palette texture isn't used anymore, instead it's generated inside the new color service based on which coloring type is selected and which checkboxes are active. Inactive colors are filled with (0,0,0,0) in the texture so that systems belonging to that color are discarded in the shader during rendering.

One problem is that inactive systems can still 'cover up' active ones during the ray intersection algorithm. These systems won't be selected and won't respond to mouse clicks but they still block the ray from maybe reaching an active system that could be selected.

There's a new dependency on angular-material so you'll have to run bower install again.

That's about it I guess