smallmodel
614ed6e632
Use the vartree for flags, rather than copying the flags to a signed int value
2024-11-18 19:47:54 +01:00
smallmodel
eb938c872d
Make varnode endian-independant
...
This fixes terrain rendering incorrectly on big-endian architectures by using bit operation. The `flags` field in the union always matched the first byte of the variance float value instead of the least significant byte
2024-11-18 19:44:00 +01:00
smallmodel
46e1aa979b
Use ARRAY_LEN instead of sizeof
2024-11-18 18:46:14 +01:00
smallmodel
02af9a763d
Better support for older BSP versions
2024-11-12 20:56:26 +01:00
smallmodel
ccca958ec5
Get the grid1 on each iteration in case it has been reallocated
...
This fixes a very rare crash that would occur when loading a world map
2024-11-11 19:48:49 +01:00
smallmodel
9823af9159
Fix light grid offsets endianness
2024-09-28 20:45:04 +02:00
smallmodel
5403577642
Fix the return value of FS_Seek
...
It returns a negative value on failure, so handle that properly
2024-09-25 21:04:55 +02:00
smallmodel
d05d964432
Fix NaN lmapStep for terrain patches
2024-09-15 19:34:25 +02:00
smallmodel
792b676c11
Set the number of brush models
...
The level marks system depends on the number of brush models and leafs, having a number that doesn't match what was saved would cause a crash
2024-09-13 21:47:57 +02:00
smallmodel
86ddec3f76
Clear the world to prevent crashes
2024-09-08 14:59:10 +02:00
smallmodel
25c2904d66
Implement RE_MapVersion and RE_PrintBSPFileSizes
2024-09-02 19:52:30 +02:00
smallmodel
7023184892
Fix subdivisions endianness
...
See #332
2024-08-26 00:45:21 +02:00
smallmodel
1d4fe357c8
Fix ShaderForShaderNum
incorrectly swapping the shader num
2024-07-29 21:39:24 +02:00
smallmodel
c7900b6048
Fix static model index endianness
2024-07-29 21:13:18 +02:00
smallmodel
6e3f959684
Fix header version incorrectly parsed
2024-07-29 20:32:21 +02:00
smallmodel
eb9a3b1bbf
R_UnpackTerraPatch: no need to get little-endian values as values are already swapped by R_SwapTerraPatch
...
See #332
2024-07-29 19:04:29 +02:00
smallmodel
391450f090
Swap bsp header on big-endian architectures
...
See #332 where the lump's offset and length are incorrect on big-endian architectures
2024-07-29 19:03:26 +02:00
smallmodel
28c6e3b398
Properly swap terrain patches for rendering on big-endian architectures
2024-06-08 12:48:36 +02:00
smallmodel
5aa70d91f3
Fixed patch subdivisions
2024-02-07 23:44:59 +01:00
smallmodel
136838e40b
Fixed R_ColorShiftLightingBytes()
...
The lighting bytes must use tr.overbrightShift instead of tr.overbrightBits.
This makes the rendering more colorful
2023-08-27 22:18:09 +02:00
smallmodel
527131e513
R_LoadLightGrid: Set light grid size depending on the map version
2023-07-25 20:02:56 +02:00
smallmodel
d0a8ac91a7
ParseFace: skip if surface shader has nodraw flags
2023-07-20 23:58:17 +02:00
smallmodel
9189538410
Fixed LIGHTMAP_SIZE usage
2023-07-19 20:37:05 +02:00
smallmodel
ca4e55fad8
Using LIGHTMAP_SIZE
2023-07-19 00:08:49 +02:00
smallmodel
3f8db539af
Fixed lightmap vecs loading
2023-07-18 22:31:45 +02:00
OM
b5dd79287a
Fixed colors segmentation fault (because it was grabbing 4 bytes instead of 3 thanks to unsigned int*)
2023-07-02 21:22:15 +02:00
OM
7b79877516
made renderer (original quake III) work with SDL
2023-05-27 22:23:03 +02:00
OM
7085d60d02
Added Team Tactics features
2023-05-21 19:58:43 +02:00
OM
2dc75b7527
Added lightmap grid data support
2023-05-20 19:30:12 +02:00
OM
4dc60b9aa4
Added lighting-grid / sphere light basic implementation
2023-05-20 17:02:01 +02:00
OM
34a1cee89b
Made sure to unpack static models correctly
2023-05-19 13:40:18 +02:00
OM
7438dd709c
Fixed terrain unpacking
2023-05-18 18:17:18 +02:00
OM
497f853171
Fixed terrain varnodes being badly loaded
2023-05-18 17:14:00 +02:00
OM
cf14b84876
Using MOHAA's R_CreateImage and R_LoadImage
2023-05-17 00:25:27 +02:00
OM
2af56d8a2e
Fixed R_ColorShiftLightingBytes for lightmaps
2023-05-15 14:59:20 +02:00
OM
d447ec1c14
Redundantly load fix
2023-05-10 20:18:49 +02:00
OM
0fad7c1ad6
Ubertools modifications
2023-05-09 22:54:13 +02:00
OM
797ae47b46
Renderer fixes
2023-05-09 21:58:24 +02:00
OM
4824f8a3b3
MOHAA BSP implementation
2023-05-09 20:49:04 +02:00
L
0d7b822216
Implemented R_LoadFont
2023-05-09 19:13:37 +02:00
L
521af45611
Fixed all errors (now compile & link)
2023-05-09 17:50:29 +02:00
L
53c1c94dac
Using Quake 3 renderer
2023-05-08 14:33:37 +02:00