Sprite picking with DDS texture triggers unsupported format warning and BoundingBox mode has no effect
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## Bevy version and features
- The release number: 0.19.1.
- Enable features: "dds".
## What you did
The bugs is that when you add a pickable sprite with texture `dds`, and then touch the sprite, it will give a warning:
```
Failed to get pixel color for sprite picking on entity 12835v2: unsupported texture format Bc3RgbaUnormSrgb. This is often caused by the use of a compressed texture format. Consider using `SpritePickingMode::BoundingBox`.
```
And if you add resource `SpritePickingMode::BoundingBox` by setting `SpritePickingSettings`, it doesn't give a warning, but also has no effect.
Contributor guide
Research direction
Reproduce the issue with Bevy 0.19.1, the dds feature, a pickable sprite using a DDS texture, and SpritePickingSettings set to SpritePickingMode::BoundingBox. Search for SpritePickingMode, SpritePickingSettings, and the “unsupported texture format” warning to trace both paths. Done means BoundingBox mode avoids pixel-color lookup and the warning no longer appears for compressed textures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics, game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100