aliens

Author Topic: [DONE] Allow for custom colors for each opacity level (transparency LUTs)  (Read 3021 times)

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3360
    • View Profile
I need some sanity checks if my new rules are intuitive:

Code: [Select]
transparencyLUTs:
  - colors:
      - [  8,  8, 12, 2 ] # "white"
      - [ 16,  8,  0, 2 ] # orange
      -
        - [ 88, 82, 82,  55 ]
        - [ 48, 48, 42,  30 ]
        - [ 62, 12,  8,  10 ]
        - [ 82, 82,  2,   2 ]
      - [  4, 16,  4, 2 ] # green
What would be intuitive interpretation of this config?
« Last Edit: April 23, 2023, 12:57:28 pm by Meridian »

Offline MaxMahem

  • Captain
  • ***
  • Posts: 60
    • View Profile
Re: Allow for custom colors for each opacity level
« Reply #1 on: March 23, 2023, 09:14:11 pm »
I need some sanity checks if my new rules are intuitive:

Code: [Select]
transparencyLUTs:
  - colors:
      - [  8,  8, 12, 2 ] # "white"
      - [ 16,  8,  0, 2 ] # orange
      -
        - [ 88, 82, 82,  55 ]
        - [ 48, 48, 42,  30 ]
        - [ 62, 12,  8,  10 ]
        - [ 82, 82,  2,   2 ]
      - [  4, 16,  4, 2 ] # green
What would be intuitive interpretation of this config?

My initial guess would have been x, y, z coordinate and then a color value. But with the comment, I now assume r, g, b, a values?

The semantics of the nested sequence are not clear at all to me. Nested colors, obviously, but nested for what?

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3360
    • View Profile
Re: Allow for custom colors for each opacity level
« Reply #2 on: March 23, 2023, 09:33:33 pm »
Second guess is correct, this is list of colors similar to old like `- [  8,  8, 12, 2 ] # "white"`
Difference is that old version calculated non-linarly some 4 color values used by 4 opacity levels of vapor particles.
In my new version all levels are set directly and can have values independent of each other.

This effect of this in action: