Skip to content

[meshroom] ScenePreview: Hide backfaces in 3D render #1908

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Alxiice
Copy link
Contributor

@Alxiice Alxiice commented Jul 7, 2025

Description

This PR adds a transparent shader on backfaces in the ScenePreview render to avoid meshes that would hide the region of interest.

For the line art mode it was a bit more complicated because the render is created as a post-processing effect. So the only way I found was to use the Quantitative Invisibility feature, by setting the minimum and max to 0 and 1 respectively we can see through the first surface. It's not a perfect solution though

Mode Before After
Wireframe error working
Line Art freestyle_error freestyle_working

@Alxiice Alxiice added this to the 3.3.0 milestone Jul 7, 2025
@Alxiice Alxiice requested review from fabiencastan and cbentejac July 7, 2025 15:25
@Alxiice Alxiice self-assigned this Jul 7, 2025
@Alxiice Alxiice marked this pull request as ready for review July 9, 2025 07:13
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

Successfully merging this pull request may close these issues.

1 participant