-
Notifications
You must be signed in to change notification settings - Fork 14
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
SVG/Lottie: Some elements are drawn in wrong locations #28
Comments
Good issue! Bevy-Vello uses 2 backends for rendering. Lottie: vellottie The Lottie is significantly further in development than the SVG counterpart and because SVG is a monster, there's still a lot of work to get the entire SVG spec working. I could prioritize the entire SVG spec, but that would take years. A better solution is to provide a simplified SVG that doesn't use advanced features - e.g. Use a tool to translate strokes to paths, resolve relative transforms to absolute positions, etc. Some ways to produce a simpler file:
I haven't found a perfect solution yet. |
I forgot to mention another technique I commonly do, if all else fails. You can use the Lottiefiles.com tool to convert SVG to Lottie: https://lottiefiles.com/svg-to-lottie. The lottie backend is more mature as mentioned and should work better. |
Wow github really wants to render it. I've uploaded it here: https://gist.github.com/kristoff3r/b1e510635363e95caa5511534277d6ba |
If I was to guess, I think |
Not sure if this is something known... short on time, sorry if it's a duplicate
rendered by bevy_vello:
![image](https://private-user-images.githubusercontent.com/2620557/305530282-9b9459dd-85ae-46b7-8bc0-ea7573975136.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTI0MzUsIm5iZiI6MTczOTI5MjEzNSwicGF0aCI6Ii8yNjIwNTU3LzMwNTUzMDI4Mi05Yjk0NTlkZC04NWFlLTQ2YjctOGJjMC1lYTc1NzM5NzUxMzYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTY0MjE1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Yzk1ZjVmNDBmZWJmY2U2MjNlMWU4ZjIxYzM0ZTNlNDYxNzAxZjgxNDc2NmE5ZjA0MzA4OWY5Yzg1MjcwMThmYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.PZf3wVyZQzoTHTGHYxIPfhRfxap4GWQpkc4ZZece3Bg)
svg in inkscape:
![image](https://private-user-images.githubusercontent.com/2620557/305530640-5235264f-da9d-4829-8b23-60963eb25c97.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTI0MzUsIm5iZiI6MTczOTI5MjEzNSwicGF0aCI6Ii8yNjIwNTU3LzMwNTUzMDY0MC01MjM1MjY0Zi1kYTlkLTQ4MjktOGIyMy02MDk2M2ViMjVjOTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTY0MjE1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODIwZTI3YTQ0MDcwNzY2ODEwOTZmZGEyNDg0ODIxMjc1NjQyNjBkOWFmMTgyNTM1MzdiMmMwZGEyZWJmMGE5OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.wou0XX0HGe5i0Szzplc_VkheIs6STWDJpmdCWV8vSKQ)
The text was updated successfully, but these errors were encountered: