playcanvas / playcanvas/engine

Particles facing in the wrong direction on lower end devices? Turning on camera distance for sorting seems to reproduce this in editor

Open
#5,750 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

For some reason on lower end devices the particles are facing in the wrong direction. When I turn on camera distance it reproduces this in editor, however I dont wont camera distance on. But even with camera distance off on lower end devices the issue occurs. Maybe on these devices its forcing the use of camera distance sorting(cpu) and therefore causing the issue? But the device im testing on is rather old though. Or maybe sorting is not be respected.

Also the particles are being stretched aswell. It could be the stretch property is causing issues on some GPU's

Device gpu: Mali-450MP4

How it should look
Screenshot 2023-10-13 102834

How it looks on this low end device im testing on
Screenshot 2023-10-13 102857

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 particle orientation and stretching behavior with camera-distance sorting enabled in the editor, then compare it with the Mali-450MP4 device behavior when sorting is disabled. Investigate whether sorting or the stretch property causes the mismatch; done means particles match the expected orientation and appearance on the affected device.

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.