-
Notifications
You must be signed in to change notification settings - Fork 67
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
Ribbon modifier doesn't render anything #339
Comments
Forgot to add, I'm running this on my M1 laptop. I don't think it is M1 related problem because example works for me. |
@MatrixDev the way ribbons work is not intuitive. You have a single particle group, and no |
hi @djeedai, thanks for answering. but I don't understand than how to make a particle in group 0 (tail particle) follow my entity? I can set Is it possible to have group 0 in local space and group 1 in global?
|
Group 0 is the main group you control, where all init modifiers run, and which is driven by normal simulation, like if there was no ribbon. This works exactly as before ribbon existed. Group 1 is the group of "tail" particles (the particles which follow the "head", and together form a ribbon; there's generally multiple tail particles per head particle). You have very little control over those. They're updated by cloning the head particles (for the first tail particle), or another tail particle (the one coming before in the chain). This is all done by the The
This is a general question independent of ribbons. There are multiple approaches to this. If you have a single particle/ribbon, then you can just spawn that particle at a fixed point (for example the origin) and not apply any force. It will stay there and not move. Then you use local space simulation and move the |
@djeedai, thanks a lot for your answer but... sorry, I still can't make it to work... So I've modified
Everything else is the same in the example but the ribbon is still not rendered :( What I think is happening is all particles (head and ribbon) are always set to BTW yes, I meant "head" particle, not "tail" back there. |
Hum... yes of course that suggestion was stupid, the You probably need to drive the head particle with a property you setup and update manually, and use |
@djeedai, yeap, it works with properties. but... it doesn't work with ![]() I've just added this modifier in the example: let render_size = SizeOverLifetimeModifier {
gradient: Gradient::linear(Vec2::splat(0.5), Vec2::ZERO),
screen_space_size: false,
};
// EffectAsset::new...
.render_groups(render_size, ParticleGroupSet::single(1)) |
Nobody ever tried that to be honest. I'm pretty sure it'll not work with |
Oh, is that screenshot actually with the |
@djeedai, it is original example with |
It looks like bevy_hanabi/src/modifier/ribbon.rs Line 39 in b9a98bd
|
Crate versions
bevy
version:0.13
bevy_hanabi
version:0.11.0
(reproduces onmain
branch as well)Describe the bug
In short nothing renders after adding
RibbonModifier
.I might misunderstood how to use
RibbonModifier
so this might not be a bug. My sample is simpler than what you have in examples folder but I still think it should still work. BTWmove_particle_effect
system doesn't do anything in that example (I've commented it out and everything is the same).Expected behavior
RibbonModifier
should work without using clone modifier from example.To Reproduce
Screenshots
![image](https://private-user-images.githubusercontent.com/1215187/339975647-42b0107b-495b-44ca-bc76-876f8a382efb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NTY5OTYsIm5iZiI6MTcxOTc1NjY5NiwicGF0aCI6Ii8xMjE1MTg3LzMzOTk3NTY0Ny00MmIwMTA3Yi00OTViLTQ0Y2EtYmM3Ni04NzZmOGEzODJlZmIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MzBUMTQxMTM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzU2OTU3ODg3NzA0ZGIxMzI4ZjE3ZjFmNTUzNjcyYzRiM2QzN2U1NWE3YzljYTFmZTYzOTdiMzRiOTlhMzE1YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ehk6jURUmaKom9XB2PNr-BPNR7soNWtUwiB0t4pISS4)
Everything renders without
RibbonModifier
:The text was updated successfully, but these errors were encountered: