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

Twin boar smoke trail effects are missing #1039

Open
JonnyOThan opened this issue Feb 5, 2025 · 1 comment
Open

Twin boar smoke trail effects are missing #1039

JonnyOThan opened this issue Feb 5, 2025 · 1 comment

Comments

@JonnyOThan
Copy link

JonnyOThan commented Feb 5, 2025

There are no smoke effects when using the twin boar and no other plume mods. I suspect they actually exist, but are at a distant position somewhere or at a tiny scale. The smokePoint transform has a local scale of 20 (lossy scale of 200 due to a scale of 10 on the root) and a strange rotation, and the effect config has a local offset of 0,0,1. By poking more normal values into these transforms with UnityExplorer, the smoke trail returns.

This triggered an issue in tweakscale rescaled which made the smoke visible but disconnected from the rocket (even at 1.0 scale). That indicates that Tweakscale somehow isn’t faithfully scaling all particle systems but the restock twin boar seems to be the only part I’ve ever seen an issue with.

JonnyOThan/TweakScale#82

Stock trail:

Image

Image

Restock:

Image

Image

Image

@JonnyOThan
Copy link
Author

OK so the reason this happens is that fx_smokeTrail_veryLarge is set to use local space scaling, which means the particles are scaled according to the localScale of the emitter transform, disregarding its actual worldspace scale. And due to a quirk of the effects code, it always creates these emitter transforms such that they end up with a 1.0 lossy scale (basically the inverse of whatever the parent's scale is). The combination of those two factors means that the restock twin boar's smoke effects are scaled to 0.005.

Since we can't change the code nor the prefab particle, it seems like a good idea to normalize the scales on the model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant