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

Volume render object is too much transparent in hololens #255

Open
CelaldoganGunes opened this issue Jun 6, 2024 · 1 comment
Open

Volume render object is too much transparent in hololens #255

CelaldoganGunes opened this issue Jun 6, 2024 · 1 comment

Comments

@CelaldoganGunes
Copy link

image

How can we make volume rendered object more opaque ? We can't see details.

@mlavik1
Copy link
Owner

mlavik1 commented Aug 18, 2024

Hi!
I don't have a hololens device to test on, but here's my guess:
The opacity should be adjustable by changing the alpha values of the transfer function. However, is the problem you're encountering that parts of the volume are not visible at all? (rather than being semi-transparent)?
If so, I think maybe the issue is caused by depth not being written.

See this line in DirectVolumeRenderingShader.shader:

if (col.a > 0.15 && t < tDepth) {
    tDepth = t;
}

It might work if you change "0.15" to a smaller value, for example "0.01"

Maybe I should add an option for this, or investigate if there's a better way to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants