Skip to content

Commit

Permalink
renders: use bigger light blocks
Browse files Browse the repository at this point in the history
Fixes: n64jam_palmlix
  • Loading branch information
0lvin committed Dec 23, 2024
1 parent a4511bd commit b6f69da
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ Games:
* Quake 2 ReRelease:
* SDK: <https://github.com/id-Software/quake2-rerelease-dll>
* Tech info: <https://bethesda.net/en/article/6NIyBxapXOurTKtF4aPiF4/enhancing-quake-ii>
* PSX source: <https://www.moddb.com/mods/quake-ii-psx/downloads/quake-ii-psx-10-sources>
* PSX Mod: <https://www.moddb.com/mods/quake-ii-psx>
* Anachronox:
* SDK: <https://github.com/hogsy/chronon>
* SDK: <https://code.idtech.space/ion-storm/anachronox-sdk>
Expand All @@ -113,6 +115,11 @@ Games:
* Dawn of Darkness:
* Docs: <https://www.moddb.com/mods/dawn-of-darkness1/downloads/dod-mood-scripts-gsm-tutorials-fgd-and-def-file>
* Demo: [Episode 1](https://www.moddb.com/mods/dawn-of-darkness1/downloads/dawn-of-darkness-episode-1)
* Additional maps used for check maps support:
* PSX: <https://www.moddb.com/mods/quake-ii-psx/downloads/quake-ii-psx-10>
* ReRelease N64 Jam: <https://www.moddb.com/games/quake-2/addons/quake-2-re-release-n64-sp-map-jam>
* ReRelease Basic Jam: <https://www.moddb.com/games/quake-2/addons/quake-2-re-release-back-to-baseq2ics-jam-1>
* ReRelease PSX Jam: <https://www.moddb.com/mods/psx-jam-1/downloads/quake-2-re-release-psx-jam-1>

Games check videos:

Expand Down Expand Up @@ -144,6 +151,8 @@ Goals, fully finished goals could be checked in [here](CHANGELOG):
* [ ] MDA model skin selection by tag,
* [ ] SDEF/MDA dynamicaly allocate list of skins,
* [ ] Support material load textures/textureinfo.dat from Anachronox,
* [ ] Fix invisiable entities in basicsjam1_ziutek,
* [ ] Make lightmap textures dynamic n64jam_palmlix,
* [x] Support textures/*/*.mat load from ReRelease (footstep),
* [ ] Support textures/*/*.mat load from ReRelease texture effects,
* [ ] Support textures/*/*_glow.png load from ReRelease,
Expand Down
4 changes: 2 additions & 2 deletions src/client/refresh/gl1/header/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
#define TEXNUM_LIGHTMAPS 1024
#define TEXNUM_SCRAPS (TEXNUM_LIGHTMAPS + MAX_LIGHTMAPS * MAX_LIGHTMAP_COPIES)
#define TEXNUM_IMAGES (TEXNUM_SCRAPS + MAX_SCRAPS)
#define BLOCK_WIDTH 256 // default values; now defined in glstate_t
#define BLOCK_HEIGHT 256
#define BLOCK_WIDTH 1024 // default values; now defined in glstate_t
#define BLOCK_HEIGHT 1024
#define MAX_TEXTURE_UNITS 2
#define GL_LIGHTMAP_FORMAT GL_RGBA

Expand Down
4 changes: 2 additions & 2 deletions src/client/refresh/gl3/header/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ enum {
// width and height used to be 128, so now we should be able to get the same lightmap data
// that used 32 lightmaps before into one, so 4 lightmaps should be enough
BLOCK_WIDTH = 1024,
BLOCK_HEIGHT = 512,
MAX_LIGHTMAPS = 8,
BLOCK_HEIGHT = 1024,
MAX_LIGHTMAPS = 16,
MAX_LIGHTMAPS_PER_SURFACE = MAXLIGHTMAPS // 4
};

Expand Down
4 changes: 2 additions & 2 deletions src/client/refresh/gl4/header/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ enum {
// width and height used to be 128, so now we should be able to get the same lightmap data
// that used 32 lightmaps before into one, so 4 lightmaps should be enough
BLOCK_WIDTH = 1024,
BLOCK_HEIGHT = 512,
MAX_LIGHTMAPS = 8,
BLOCK_HEIGHT = 1024,
MAX_LIGHTMAPS = 16,
MAX_LIGHTMAPS_PER_SURFACE = MAXLIGHTMAPS // 4
};

Expand Down
4 changes: 2 additions & 2 deletions src/client/refresh/vk/header/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ typedef struct
#define MAX_LIGHTMAPS 256
#define DYNLIGHTMAP_OFFSET MAX_LIGHTMAPS

#define BLOCK_WIDTH 256
#define BLOCK_HEIGHT 256
#define BLOCK_WIDTH 1024
#define BLOCK_HEIGHT 1024

typedef struct
{
Expand Down

0 comments on commit b6f69da

Please sign in to comment.