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

Transparent materials depth render problem based 3D front dataset #1135

Open
Liujunru1991 opened this issue Jul 30, 2024 · 1 comment
Open
Labels
first answer provided question Question, not yet a bug ;)

Comments

@Liujunru1991
Copy link

Describe the issue

Hello, thanks for your important work!
Recently I was using the 3D Front data set to render a synthetic data set and blenderproc to render the 3D front data set. I found that the depth rendering of transparent materials such as window glass, chandeliers, table lamps, etc. was abnormal. How can I solve this problem? Looking forward to your quick reply, thank you!

Minimal code example

examples/datasets/front_3d_with_improved_mat/main.py

Files required to run the code

3D Front dataset

Expected behavior

NA

BlenderProc version

v2.6.2

@Liujunru1991 Liujunru1991 added the question Question, not yet a bug ;) label Jul 30, 2024
@cornerfarmer
Copy link
Member

Hey @Liujunru1991,

you can specify which transparent textures are handled as fully transparent and which are fully opaque via:

bpy.context.scene.view_layers["ViewLayer"].pass_alpha_threshold = 0.5

See https://docs.blender.org/api/current/bpy.types.ViewLayer.html#bpy.types.ViewLayer.pass_alpha_threshold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first answer provided question Question, not yet a bug ;)
Projects
None yet
Development

No branches or pull requests

2 participants