aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick3d/qquick3dmodel.cpp
diff options
context:
space:
mode:
authorJonas Karlsson <[email protected]>2025-05-27 22:44:34 +0200
committerJonas Karlsson <[email protected]>2025-05-28 15:05:27 +0200
commit75c66953ee2fc9c9a532690b7ab0250d67fc1730 (patch)
tree19e49021956e9156fbbbbf972f2ad13f4c14457d /src/quick3d/qquick3dmodel.cpp
parent780ab6e03190710dd921425b37afae5a12a36b63 (diff)
Lightmapping: add custom lightmap file formatHEADdev
The EXR file format is a bit slow on multipart files due to the fact that it has to decode all headers to find the header you are looking for. Therefore we add a custom file format designed to be fast and easy for storing baked lightmaps. The file format is basically just a sorted list of key/value pairs where the keys have a fixed size with offsets and sizes into the file. This makes it possible to lookup keys in log(N) time and you don't need to parse the whole file or all the keys when looking for a key. There are helper functions for storing f32 and u32 images, meshes and metadata. The format is storing data little-endian but will convert to big-endian automatically. Change-Id: Ia230b98b38b685a44022df66a00b42ca9f7ca39b Reviewed-by: Kristoffer Skau <[email protected]>
Diffstat (limited to 'src/quick3d/qquick3dmodel.cpp')
0 files changed, 0 insertions, 0 deletions