playcanvas / playcanvas/engine
Transparent canvas and fill color - particles don't render the same across browsers
Nobody has claimed this yet.
- 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):
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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