bevy
bevy copied to clipboard
Incorrect UV map used when using Lightmap component
Bevy version
0.13, main
Relevant system information
`AdapterInfo { name: "AMD Radeon RX 7900 XT", vendor: 4098, device: 29772, device_type: DiscreteGpu, driver: "AMD proprietary driver", driver_info: "23.12.1 (LLPC)", backend: Vulkan }`
What you did
See https://github.com/GitGhillie/bake_repro for code and blend files. Basically:
- Create plane and cube in Blender
- Add a simple texture to both (issue also occurs without textures)
- Bake lighting
- Export gltf
What went wrong
The Bevy render looks awful, probably due to using the wrong UVs:
Using an online gltf viewer it looks correct, so I'm pretty sure it's something on the Bevy side:
Additional information
Related Discord help thread: https://discord.com/channels/691052431525675048/1224462995875168426/1224462995875168426
Looks like this might be a duplicate of https://github.com/bevyengine/bevy/issues/13086, maybe someone with more knowledge on the topic can confirm
Got such view with #13153 change
I took a closer look using your branch and it works! Thank you for chasing this down
There is probably something wrong with your glb file. With the gltf file from your repo it is correct. If I generate a new glb from it it is also right.