molstar / mol-view-spec

https://molstar.org/mol-view-spec/
MIT License
17 stars 4 forks source link

representation transparency/opacity #29

Open Glucksistemi opened 5 months ago

Glucksistemi commented 5 months ago

As I found, there is no way to set opacity/transparency for the representation, while it is important when you make visible two or more representations in the same time, especially for the surfaces and sometimes for cartoon. As an example, there's my scene made with NGL:

fig.1

Its still WIP, but I think concept is clear - my goal is to show displacements of sidechains after some modification while user should keep in mind structure's cartoon

The same is about surfaces, sometimes you need see surface and cartoon together which is easier when surface is partially transparent

dsehnal commented 1 month ago

Hi, we have merged an initial support for this. You can use it if you download the code from github now, but the release itself will come later.