isl-org / isl-org/Open3D

Semi-Transparent Shader Support

Open
#5,693 0 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### Proposed new feature or change

I am trying to render a tree that has textures. The model is broken into two meshes (one for the branches, and the other for all the leaves)

The problem is that when I render the tree using the "defaultLitTransparency", it means that any leaf points behind the transparent area disappear. I have attached an image showing what happens when I use the "defaultLitTransparency" as-well as the "defaultLit" shader.

I have done a bit of investigation and have seen that the depthWrite needs to be enabled within the shader.

![tree-transparent](https://user-images.githubusercontent.com/27661260/202040590-f64875b2-40cf-429d-91ef-336df34895ef.png)

![defaultUnlit](https://user-images.githubusercontent.com/27661260/202040597-6ea28221-16cb-46ad-800e-bef80b7c60f2.png)

### References

_No response_

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.