jabuwu / bevy_spine

A Bevy plugin for Spine
https://docs.rs/bevy_spine
Other
96 stars 6 forks source link

Can I configure the image filters (eg min_filter) somehow? #26

Closed Droggelbecher closed 2 weeks ago

Droggelbecher commented 2 weeks ago

I'm looking to set the spine textures min filter, currently it seems to be set to nearest which looks undesirable when zooming out. Internally there seems to be a SpineTextureConfig struct with that information that is used eg. in events but I couldn't find a way for a user of bevy_spine to configure it (instead it seems it gets its configuration from rusty spine?).

Would be grateful for any advice :)

jabuwu commented 2 weeks ago

When exporting from Spine, in "Pack Settings," bevy_spine should honor the runtime values specified here:

Screenshot 2024-11-10 at 5 21 55 AM

Changing the value at runtime would be harder but should also be possible. Let me know if this is enough for you.

Droggelbecher commented 2 weeks ago

Thanks for the quick reply, indeed I wasnt aware of these settings :-) First impression is it doesn't seem to actually solve my issue but perhaps what I actually want/need is TAA (as I have no reasonable complaints about any given still frame but zoomed out the animation just doesnt look nice due to aliasing type artefacts) which would be out of scope of bevy_spine. Thanks again for the quick help!