CesiumGS / CesiumGS/cesium

ParticleSystem doesn't work with undefined lifetime

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

Description

Nothing shows up until you uncomment `lifetime`

```js
var viewer = new Cesium.Viewer('cesiumContainer', {shouldAnimate: true});
var scene = viewer.scene;

var pos1 = Cesium.Cartesian3.fromDegrees(-75.15787310614596, 39.97862668312678);
var particleSystem = scene.primitives.add(new Cesium.ParticleSystem({
image : '../../../../Apps/SampleData/fire.png',
emissionRate: 5.0,
emitter: new Cesium.SphereEmitter(5.0),
imageSize : new Cesium.Cartesian2(25.0, 25.0),
modelMatrix : Cesium.Transforms.eastNorthUpToFixedFrame(pos1),
//lifetime : 16
}));
scene.camera.setView({destination: pos1});
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the supplied ParticleSystem example with lifetime omitted, then locate the ParticleSystem entry point and trace how an undefined lifetime is handled. Done means particles render in the provided setup without uncommenting lifetime, with regression coverage if an existing particle-system test location is found.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.