Skip to content

Commit

Permalink
found some leads on Quake 2 lightmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-biscuits committed Jul 19, 2023
1 parent 0cd595a commit b59b9ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bsp_tool/extensions/lightmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def image(self):


def save_quakebsp_q1(bsp, image_dir="./", lightmap_scale=16): # saves to <image_dir>/<bsp.filename>.lightmaps.png
"""for Quake bsp (v29) only""" # also Quake 2 (in theory)
# TODO: identify quake 2 default lightmap scale
"""for Quake bsp (v29) only"""
# TODO: sorted / tighter packing & remapping lightmap uvs
# TODO: catch entity keys for alternate lightmap scale(s)
# -- "_world_units_per_luxel" in worldspawn / model ent
Expand All @@ -90,7 +89,9 @@ def save_quakebsp_q1(bsp, image_dir="./", lightmap_scale=16): # saves to <image
tiled_lightmaps.image.save(os.path.join(image_dir, f"{bsp.filename}.lightmaps.png"))


# TODO: darkplaces lightmaps, .lit, bsp2 lightdata
# TODO: DarkPlaces / .lit / BSP2 lightdata
# TODO: Quake 2 RGB
# TODO: Quake 64 556RGB (16-bit)


def save_ibsp_q3(ibsp, image_dir="./"): # saves to <image_dir>/<ibsp.filename>.lightmaps.png
Expand Down

0 comments on commit b59b9ff

Please sign in to comment.