Commit graph

119 commits

Author SHA1 Message Date
Magnus Norddahl
847ffe030b Fix sky in zdrayland 2024-02-29 20:38:36 +01:00
Magnus Norddahl
a6d3958ad2 Upgrade lightmapper to latest internal version 2024-02-28 22:32:43 +01:00
Magnus Norddahl
3d1fe65485 Fix sunlight not working 2024-01-17 19:42:40 +01:00
Magnus Norddahl
13df9b2b32 Skip sides that have no valid texture 2024-01-17 00:04:27 +01:00
Magnus Norddahl
f689ea3640 Upgrade lightmapper to latest vkdoom code 2024-01-16 12:43:37 +01:00
Magnus Norddahl
7c1acb5075 Save lightmap lump 2023-10-16 16:46:35 +02:00
Magnus Norddahl
53d73780dd Move textureid to framework 2023-10-10 22:15:00 +02:00
Magnus Norddahl
2c6d4f6f22 Port over doom level mesh 2023-10-10 22:11:30 +02:00
Magnus Norddahl
1391957a42 More doom level mesh porting 2023-10-10 01:33:17 +02:00
Magnus Norddahl
f905d37cd7 Port over more of DoomLevelMesh 2023-10-10 00:46:23 +02:00
Magnus Norddahl
642794e678 Replace mathlib with gzdoom equivalents for easier code exchanges between vkdoom and zdray
Import the lightmapper from vkdoom and bring in just enough infrastructure for it to build
2023-10-04 22:22:54 +02:00
nashmuhandes
baa1ead6e9 - Unify the custom sample distance variable names
- Fix wrong type for the sun color
2023-10-03 18:36:50 +08:00
nashmuhandes
3443793f79 Rename "static lights" to "lightmap lights" to accurately reflect its usage. 2023-09-24 19:51:02 +08:00
RaveYard
280063ac6c Both LineDef and SideDef can now have lm_sampledist_... properties 2023-08-01 17:19:50 +02:00
Magnus Norddahl
0655ffd7f5 Slightly improve performance 2023-04-14 16:55:56 +02:00
Magnus Norddahl
74b81bc65a Fix crash for maps with vertices above 32768 2023-04-12 18:00:47 +02:00
Magnus Norddahl
11c4e5900c Fix warning: result of comparison of constant -1 with expression of type 'uint16_t' is always true
Fix warning: illegal character encoding in string literal
2022-11-07 23:38:52 +01:00
RaveYard
91c0871b0b Fix edge case where relativePosition of light is valid at 0,0,0 2022-10-31 11:07:56 +01:00
RaveYard
22f24e7993 Fix smoothing groups causing pixels to bleed over portals 2022-10-31 11:07:56 +01:00
RaveYard
0a9c2cf131 Implement sector groups 2022-10-31 11:07:56 +01:00
RaveYard
cb9416269e Initial implementation of recursive portal pointlight propagation 2022-10-31 10:57:34 +01:00
RaveYard
b003565ad2 Fix CheckAndMakePortal missing tagged sectors 2022-10-31 10:50:24 +01:00
RaveYard
e064c7a01a Fix uninitialized args in struct IntLineDef 2022-10-29 23:34:29 +02:00
RaveYard
e9bf098195 Add support for Sector_SetPortal 2022-10-29 17:23:22 +02:00
RaveYard
38916e7f75 Implement basic linedef sunlight portal support 2022-10-29 15:16:27 +02:00
RaveYard
8fb35aca7f Use default member initializers in IntThing 2022-10-15 13:59:26 +02:00
RaveYard
67bd6c62ab Support negative light intensities on pointlights 2022-10-14 20:27:28 +02:00
Magnus Norddahl
e225118e8e Remove light probes
Remove emissive surface code
Change default sample count to 16
2022-08-31 08:48:10 +02:00
Magnus Norddahl
8dcd37691c Remove the CPU raytracer 2022-08-31 08:09:12 +02:00
Magnus Norddahl
0ca74c2e42 Speed up rayquery raytracer by using an atlas 2022-08-17 01:35:12 +02:00
Magnus Norddahl
89a3927a66 Clean up some variables 2022-08-16 23:59:06 +02:00
nashmuhandes
496b1cb783 Print the hex representation of the sun color, too (might be useful for user's reference) 2022-07-01 14:46:02 +08:00
nashmuhandes
e2ff176e3a Use integer for the sun color. UDB's color picker actually stores the color as an int when you save the map (despite exposing it in the UI as XXRRGGBB). 2022-07-01 14:34:55 +08:00
nashmuhandes
29d38a2969 Suffix _line to the linedef sample distance UDMF property as its naming is too close to the ZDRayInfo sample distance property 2022-06-29 15:04:52 +08:00
RaveYard
ce3060708d Add --dump-mesh option and improve LevelMesh::Export 2022-06-24 20:53:44 +02:00
RaveYard
867af9edcc Update CheckSkySectors to consider floors 2022-06-24 16:24:03 +02:00
RaveYard
3e701313dc Fix printf and conversion warnings 2022-06-24 14:00:15 +02:00
RaveYard
038259a590 Add support for most common slope types
Certain actors used to make slopes aren't still supported
2022-06-22 14:30:51 +02:00
RaveYard
0479d4fce3 Support customizable sampling distance per surface
- Fix sampleDistance UDMF

- Refactoring code

- Handle 3D floors sides via lm_sampledist_mid per each wall in the
  applied sector
2022-06-16 15:33:28 +02:00
nashmuhandes
4107176f0d Standardize and finalize the naming conventions for the new UDMF keys to everything lightmap-related to use an "lm_" prefix. 2022-06-15 23:32:26 +08:00
nashmuhandes
5124788013 Strip quotes from the sun color string 2022-06-15 19:24:43 +08:00
nashmuhandes
b2b4dd4cfc - Moved ZDRayInfo properties back to UDMF keys... the idea to put these as thing args in the first place wasn't a good idea after all. :P
- Use a hex color string for the sun color on ZDRayInfo, because UDB's color picker usually uses strings for colors values.
2022-06-15 15:28:40 +08:00
nashmuhandes
3a1cf7fc43 Temporarily disable surface lights too. Same reason as previous commit 2022-06-15 14:52:08 +08:00
nashmuhandes
5bb277ff31 Disable light bounces for now, after some internal discussion pertaining to future improvements 2022-06-15 14:42:02 +08:00
RaveYard
f4479a17d5 Add default auto probe grid size 2022-06-14 19:51:05 +02:00
nashmuhandes
a0935ba604 If arg0str is used for a spotlight's color, convert that string to an int and pass that value as the light color. UDB's color picker interface uses the arg0str field for spotlight color. 2022-06-03 02:55:52 +08:00
nashmuhandes
bfb23302ef - Report sun vector
- Various styling fixes to the messages
2022-02-20 08:42:30 +08:00
nashmuhandes
25345c2477 Replace Thing UDMF keys for the ZDRayInfo with args instead 2022-02-20 04:46:19 +08:00
nashmuhandes
05eed4d4a2 Add "line" suffix to the surface light keywords to clearly label their intended usage 2022-02-20 04:28:28 +08:00
nashmuhandes
f38995889d Remove 'lightintensity' UDMF key from Things, replaced it with the Thing's alpha instead 2022-02-20 04:17:45 +08:00