bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Incorrect UV map used when using Lightmap component

Open GitGhillie opened this issue 1 year ago • 1 comments
trafficstars

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: image

Using an online gltf viewer it looks correct, so I'm pretty sure it's something on the Bevy side: image

Additional information

Related Discord help thread: https://discord.com/channels/691052431525675048/1224462995875168426/1224462995875168426

GitGhillie avatar Apr 27 '24 22:04 GitGhillie

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

GitGhillie avatar Apr 27 '24 22:04 GitGhillie

Got such view with #13153 change bake_repro_screenshot

bugsweeper avatar May 01 '24 05:05 bugsweeper

I took a closer look using your branch and it works! Thank you for chasing this down

GitGhillie avatar May 01 '24 09:05 GitGhillie

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.

geckoxx avatar May 20 '24 10:05 geckoxx