playcanvas / playcanvas/engine

Transparent canvas and fill color - particles don't render the same across browsers

Open
#3,868 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: graphics area: particles
Dominant language
JavaScript
Stars
16.8k
Forks
2k
Avg merge
4h 32m
Merged PRs (30d)
222

Description

Forum thread: https://forum.playcanvas.com/t/particle-emitter-not-working-with-transparent-pc-background/23573
Project: https://playcanvas.com/project/866659

Video (Safari on the left, Chrome in the middle):

https://user-images.githubusercontent.com/16639049/148090529-8176f787-30da-44fb-b876-3d85f7fcdacc.mp4

Seems odd that Chrome has this whitish tint on the canvas and Safari has none. Setting the alpha of the fill colour to 4 (out of 255) on the camera seems to make the two match as shown in the video.

Not sure which one is the correct rendering if any.

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 with the linked forum thread, PlayCanvas project, and attached Safari/Chrome video, then reproduce the particle rendering difference with a transparent canvas and camera fill color. Done means the expected rendering behavior is established and the cross-browser discrepancy is resolved or its cause is documented.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.