Skip to content
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

Combine transferFunction1D color + opacity arrays #82

Closed
jeffamstutz opened this issue Jun 2, 2023 · 1 comment
Closed

Combine transferFunction1D color + opacity arrays #82

jeffamstutz opened this issue Jun 2, 2023 · 1 comment
Assignees
Labels
v1.0 Issues to be decided on for the v1.0 specification

Comments

@jeffamstutz
Copy link
Contributor

After discussing how the colormap sampler idea could entirely be implemented by image1D samplers (where color + opacity are in a single image array) and due to the fact that there are not control points in the transferFunction1D volume, I think it makes sense to combine color + opacity arrays into a single FLOAT32_VEC4 array. This simplifies applications by allowing them to have a single color map representation that is used to color map both surfaces and volumes.

@jeffamstutz jeffamstutz added the v1.0 Issues to be decided on for the v1.0 specification label Jun 2, 2023
@johguenther
Copy link
Collaborator

Even without control points the color and opacity arrays can be of different size.

For materials we have a similar situation: having color and opacity separate, but if color if it is a SAMPLER additionally use the 4th channel as opacity as well.

So, have here both as well (opacity and color as VEC3 and VEC4)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.0 Issues to be decided on for the v1.0 specification
Projects
None yet
Development

No branches or pull requests

2 participants