Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub-frame emitters with interpolated trajectories #65

Open
malleusinferni opened this issue Oct 14, 2022 · 0 comments
Open

Sub-frame emitters with interpolated trajectories #65

malleusinferni opened this issue Oct 14, 2022 · 0 comments
Labels
C - enhancement New feature or request

Comments

@malleusinferni
Copy link

Currently, particle spawn rate is decoupled from render framerate in a way that works for static emitters. For moving emitters, each particle's initial position is still framerate-dependent. An emitter that moves fast enough will leave visible gaps between the batches of particles it spawns on each frame. If the render pipeline stalls, these gaps can grow much larger.

Reducing this framerate dependence requires providing information about an emitter's trajectory to the particles it spawns, so that a batch of particles can be distributed amongst interpolated points along this trajectory. For the time being, it should suffice to linearly interpolate between the previous and current GlobalTransforms of the emitter entity. The same interpolation method can be applied to other parameters as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C - enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants