Alchemist0823 / three.quarks

Three.quarks is a general purpose particle system / VFX engine for three.js
https://quarks.art
480 stars 22 forks source link

basic prewarm for looping particles #52

Closed tracyhenry closed 1 year ago

tracyhenry commented 1 year ago

This PR adds basic prewarm capabilities by simulating multiple ParticleSystem.update() steps.

One small change to package.json: yarn example will always cache JS & HTML if we don't specify a port (see https://github.com/http-party/http-server/issues/149).

Mesh Material Demo

w/o prewarm w/ Prewarm
https://user-images.githubusercontent.com/5410441/224895512-a9aa27a4-826e-4114-8905-f34187518989.mov https://user-images.githubusercontent.com/5410441/224895606-1ab29ea7-f01f-4c5b-af31-dfc563fb1b7f.mov

Tornado Demo (changes to tornado.json not committed)

w/o prewarm w/ Prewarm
https://user-images.githubusercontent.com/5410441/224896364-5b59e4b9-1c0b-43de-9c89-1540c636fdd3.mov https://user-images.githubusercontent.com/5410441/224896215-c856a114-47cd-470c-a38e-fcf2c7d6c66a.mov
Alchemist0823 commented 1 year ago

Thanks for the video preview