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

Unwanted transparant .splats #385

Open
lolo2k opened this issue Dec 8, 2024 · 2 comments
Open

Unwanted transparant .splats #385

lolo2k opened this issue Dec 8, 2024 · 2 comments

Comments

@lolo2k
Copy link

lolo2k commented Dec 8, 2024

Hi, i'm wondering why I can look through my splats. It has happened before but not this badly.
Does anyone know why this happends and how to make the splat 100% opacity/opague.
We really don't want to look through the leaves, and during .splat creation or viewing with other .splat viewers this doesnt happen....
123
Here is the model that has the unwanted GHOST effect: https://staging.green-view.nl/s/Caladium-2-Qdz8

@seppestaes
Copy link

seppestaes commented Dec 11, 2024

You can tweak the opacity in the fragment shader (SplatMaterial3D.js)

float opacity = exp(-0.5 * A) * vColor.a;
gl_FragColor = vec4(color.rgb, opacity * 2.5);

Tested with your splat. Factor 2.5 gives similar results as default SuperSplat.

@lolo2k
Copy link
Author

lolo2k commented Dec 13, 2024

That is great info. Thank you very much!
Also thanks for testing it to confirm.

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