CesiumGS / CesiumGS/cesium

Point cloud with part opaque, part translucent style renders as translucent

Open
#6,388 0 comments 0 reactions 0 assignees View on GitHub
category - 3d tiles type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

A point cloud style that has translucent and opaque conditions will always be rendered as just translucent. This results in opaque points that look semi translucent when OIT is on.

A possible fix would be to render twice, once in the translucent pass (with opaque pixels masked out) and once in the opaque pass (with translucent pixels masked out), similar to b3dm/i3dm but without the per-tile checking.

```
color : {
conditions : [
['${POSITION}[2]<1.5', "color('#FFFF00', 0.5)"],
[true, "color('white')"]
]
}
```

![point-style](https://user-images.githubusercontent.com/915398/38061578-c5290bc2-32bd-11e8-85db-b98a1cf45c99.PNG)

Contributor guide

Open the contributing guide

Research direction

Start from the point-cloud style rendering path and compare its opaque and translucent passes with the b3dm/i3dm behavior mentioned in the issue. Verify the mixed conditions with OIT enabled; done means translucent points remain translucent while opaque points render fully opaque.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.