visgl / visgl/deck.gl

[Bug] Render issue when translucent "IconLayer" is billboarded

Open
#7,966 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

FAQ
Dominant language
TypeScript
Stars
14.6k
Forks
2.3k
Avg merge
2d 9h
Merged PRs (30d)
42

Description

Description
what
Expected Behavior

Transparency should be mixed when viewed from all angles.

Steps to Reproduce

image :
icon-altas

iconAtlas: icon_atlas,
iconMapping: icon_mapping,
getIcon: (d) => {
  let size = d.properties.cluster ? d.properties.point_count : 1
  if (!visible || size < 2) {
	  return d.properties.iconType ? d.properties.iconType : 'disable'
  }
  switch (true) {
	  case size < 10:
		  return `marker-${size}`
	  case size < 100:
		  return `marker-${Math.floor(size / 10)}0`
	  case size < 1000:
		  return `marker-${Math.floor(size / 100)}00`
	  case size < 10000:
		  return `marker-${Math.floor(size / 1000)}000`
	  default:
		  return `marker-10000`
  }
},
Environment
  • Framework version: deckgl 8.8
  • Browser: chrome
  • OS: mac m1
Logs

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the billboarded translucent IconLayer case in deck.gl 8.8 using the supplied iconAtlas, iconMapping, and getIcon example. Inspect the IconLayer rendering path for transparency behavior and verify the result in Chrome on macOS; done means transparency is mixed consistently from all viewing angles.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.