Skip to content

lightmaps_of_face refactor #202

@snake-biscuits

Description

@snake-biscuits

Currently id_software.quake & valve.source rely on a .lightmaps_of_face branch method
That branch method is stuck parsing a single lump
But lightmap texels can come from multiple sources

I want to be able to select a lump to pull lightmaps from in the lightmaps module
Would be really cool to be able to compare different lightmaps visually
Gotta do this refactor to do that.

Lighting lumps

  • bspx
    • DECOUPLED_LM (includes uv map?)
    • LIGHTING_DIR
    • LIGHTING_E5BGR9
    • LMSTYLE16
    • RBGLIGHTING (headerless .lit)
  • id_software.quake
    • LIGHTING
  • valve.source
    • LIGHTING
    • LIGHTING_HDR

Also .lit

struct rgb24 { uint8_t r, g, b; };

struct LitFile {
    char      magic[4];  // 'QLIT'
    uint32_t  version;   // 0x01
    rgb24     texels[];  // as many texels as .bsp, but 24-bit
};

Metadata

Metadata

Labels

enhancementNew feature or requestid_software.quakeQuake branch scriptrefactorrequires restructuring some backend stuffvalve.sourceHalf-Life 2 branch script

Projects

Status

Todo: Research

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions