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

More emitter position modifiers (2d mesh? Rect? Cube?) #402

Open
Lubba-64 opened this issue Dec 2, 2024 · 1 comment
Open

More emitter position modifiers (2d mesh? Rect? Cube?) #402

Lubba-64 opened this issue Dec 2, 2024 · 1 comment
Labels
A - expressions Change related to the Expression API A - modifiers Change related to modifiers C - enhancement New feature or request

Comments

@Lubba-64
Copy link

Lubba-64 commented Dec 2, 2024

Describe the solution you'd like
Box and Cube emitter areas, or just more options than a circle. potentially a mesh? or list of tris?

Describe why you want that solution. Is this related to a problem?
I want the emission area to cover just where my characters exist and not the area around them, having a more configurable area to spawn particles in is a good way to achieve this, and other particle systems support similar functionality.

Describe alternatives you've considered
For now since this is not urgent, I'm just going to use the circle emitter. I'm sure that other people have thought of this though.

I may come back and make a contribution here to get this implemented, since it doesn't seem like it would be impossible. although I have never tried to write shader code just like this crate does haha!

@djeedai
Copy link
Owner

djeedai commented Dec 9, 2024

So the general idea is we want to remove the various position and velocity init modifiers. Instead we want to add expressions that let you sample shapes randomly. After that you simply plug the expression into some SetAttributeModifier. That way we don't have to maintain every shape multiple times for position and velocity, and you can even reuse those expressions in other cases. But yes, otherwise agreed.

Note that the mesh one is quite a lot more complex because it's not analytical, and requires access to the mesh geometry.

@djeedai djeedai added C - enhancement New feature or request A - modifiers Change related to modifiers A - expressions Change related to the Expression API labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A - expressions Change related to the Expression API A - modifiers Change related to modifiers C - enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants