Details
Description
Switch a light probe from a .hdr file to a .png. The result is a crash since the loaded RGB(A) QImage data will be used in combination with the RGBA16F format, as if it was .hdr.
It may not make much sense to try using ordinary rgba images for IBL and skyboxes, but at least it should not crash.
When fixing the crash the rendered results are less than ideal so there are further issues here than just crashing. Perhaps there are floating point assumptions elsewhere too.
Attachments
For Gerrit Dashboard: QTBUG-88005 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
319471,5 | Do not crash with non-HDR images for lightProbe | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
319480,4 | Add testcase for lightprobe+skybox both with HDR and PNG | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
319482,3 | Communicate the RGBE8 encoding in a dedicated flag | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |