Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional deluxemap loading #49

Closed
SomaZ opened this issue Feb 10, 2023 · 1 comment
Closed

Add additional deluxemap loading #49

SomaZ opened this issue Feb 10, 2023 · 1 comment
Labels
enhancement rend2-sp singlepayer rend2

Comments

@SomaZ
Copy link
Owner

SomaZ commented Feb 10, 2023

Vanilla JKA has a hardcoded maximum of 256 lightmaps per map. Deluxemaps are usually put into the lightmap lump, which doubles the number of lightmaps. If you compile a map with more than 128 lightmaps with deluxemaps, the map is not compatible with the vanilla renderer anymore because of the hardcoded limit.

To solve this issue, we can externalize deluxemaps and load them next to the internal lightmaps. Additional deluxemaps will be stored where external lightmaps are usually stored: "/maps/map_name/dm_XXXX"

@SomaZ SomaZ added enhancement rend2 multiplayer rend2 rend2-sp singlepayer rend2 labels Feb 10, 2023
@SomaZ SomaZ removed the rend2 multiplayer rend2 label Mar 13, 2023
@SomaZ
Copy link
Owner Author

SomaZ commented Mar 13, 2023

Added a very basic version of it to rend2 for now. Need to overhaul lightmap loading completely though. I want to switch to 2d arrays with atlases in it, so we can support packing differently sized lightmaps into one sampler.

@SomaZ SomaZ closed this as completed Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement rend2-sp singlepayer rend2
Projects
None yet
Development

No branches or pull requests

1 participant