bow-simulation / virtualbow

Software for designing and simulating bows
http://www.virtualbow.org/
GNU General Public License v3.0
23 stars 3 forks source link

Make the color generation for layers more pretty #134

Closed stfnp closed 3 years ago

stfnp commented 5 years ago

Currently the colors are more or less random, based on the material properties of the layer such that layers with equal material properties have the same color. A better solution should have the following additional properties:

First idea: Define a starting color c0 and two directions in the color space, c1 and c2. Then, define normalized material properties m1 = E/E_ref and m2 = rho/rho_ref. Calculate the layer colors as c = c0 + m1*c1 + m2*c2. Unclear question: How should the reference values be chosen? Are there values that work for most real world applications?