-
Notifications
You must be signed in to change notification settings - Fork 302
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
Add a transfer function shader widget #582
Add a transfer function shader widget #582
Conversation
You could accidentally remove points trying to move them before
@seankmartin could you share a ng link that demonstrates the feature? I tried to get a basic grayscale image out of it but I think I'm missing something |
Hey @chrisj, for sure, no worries! From the link you sent, I've created a transfer function that mimics an invlerp so you can compare here More generally, you can add points by clicking, change their color by right clicking after selecting a color in the color picker, and remove points by shift double clicking for something like this At the moment, the transfer function does not show any indication of the underlying data distribution, which can make creating them a little tricky. Let me know if you have questions, happy to help |
Adds a new shader widget directive
transferFunction
. Transfer functions can be used to map specific data values to color and opacity values via a set of control points. In between control points, the values are linearly interpolated.A preview of the underlying lookup texture is shown in the UI panel for a transfer function.
Points are added to the panel via a click, their color is changed by setting a new color in the picker, and then right-clicking the point. Points are removed via a modifier and double-click on the point.