Hi,
I’m using EffectComposer with AfterimagePass to add trails to some particles. It’s not the conventional setup, but it was working perfectly before I upgraded to r159 (so, up until r158).
I’m already at r163, unfortunately I have only noticed this now, but I traced it back to the point when I upgraded to r159…
I have these settings for the renderer:
this.renderer.autoClear = false; // needed with this EffectsComposer setup
this.renderer.sortObjects = false;
this.renderer.setClearColor(0x000000);
and these for the composer:
// an independent Scene, not part of anything, specifically for the composer
// the main scene is App.scene
this.scene.add(points); // <-- Points() with particles
this.composer = new EffectComposer(App.renderer);
this.composer.renderToScreen = true;
this.composer.addPass(new RenderPass(this.scene, App.camera));
this.composer.addPass(new AfterimagePass(0.9));
App.registerBeforeRenderCallback('cosmosParticle', () => {
App.renderer.clear();
this.composer.render();
});
and here is the animate function:
public animate(): void {
this.animationRequestId = window.requestAnimationFrame(() => this.animate());
this.controls.update();
// registered through App.registerBeforeRenderCallback
this.beforeRender(); // <-- this is where the composer is being called
this.renderer.clearDepth();
this.renderer.render(this.scene, this.camera);
}
And this is how it looked when it was working (when moving the camera):
But now it’s not just that there’s no trail, but these particles don’t show up at all
I checked the changelog again, but I don’t see anything related to this.
Anyone has ideas?