Commit graph

93 commits

Author SHA1 Message Date
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
nashmuhandes
7f822dd250 Use ZDRayInfo's angle and pitch to determine the sun direction 2022-02-16 06:42:33 +08:00
nashmuhandes
3f191651aa For static light things, have ZDRay use args instead of UDMF keys. This aligns them with dynamic lights, and will help with UDB integration.
Only 'lightintensity' remains as a UDMF key, because there is no more free arg slots for it.

Also made constants for the various thing types to reduce coding mistakes.
2022-02-16 02:14:21 +08:00
nashmuhandes
15b31f0526 Only create lights for the actual static light things 2022-02-15 22:10:32 +08:00
Magnus Norddahl
4cb0f59f66 Minor file structure cleanup 2021-11-16 00:30:54 +01:00
Magnus Norddahl
8b26826cee Replace zlib with miniz as that is much easier to link with and removes a linker warning 2021-11-16 00:04:05 +01:00
Magnus Norddahl
e61f10af24 Flip surface sort order for better lightmap packing and add some border between the surfaces 2021-11-14 19:54:44 +01:00
Magnus Norddahl
cb42f82bfc Replace the vector/matrix classes with something behaving a bit more like glsl 2021-11-12 22:40:29 +01:00
Magnus Norddahl
04b01426e6 Add automatic fallback to CPU ray tracing if no vulkan device supports the ray tracing extension 2021-11-12 16:17:44 +01:00
Magnus Norddahl
031dc4a4db Move sample distance, bounces and light probe grid size settings to the zdrayinfo actor as they affect map visuals 2021-11-11 05:51:00 +01:00
Magnus Norddahl
cd3563759c Rewrite the CPU ray tracer 2021-11-11 05:04:33 +01:00
Magnus Norddahl
9ebe31ee72 Remove the old dlight based ray tracer and add an option to choose between the CPU and GPU ray tracers 2021-11-05 23:42:01 +01:00
Magnus Norddahl
973a5b28b7 Improve direct light sampling quality
Fix command line argument bug
2021-11-05 03:17:06 +01:00
Magnus Norddahl
f42c515b16 Oops, this wasn't meant to be committed 2021-11-03 23:31:24 +01:00
Magnus Norddahl
b1a06fda5e Successfully call vkCmdTraceRaysKHR without validation errors 2021-11-03 23:30:57 +01:00
Magnus Norddahl
3e11f81d5a Add first steps in using the GPU for the ray tracing 2021-10-28 23:27:25 +02:00
Magnus Norddahl
47494dd3b2 Add a new raytracer that bounces using path tracing 2021-10-21 06:31:58 +02:00
Magnus Norddahl
fa1d2fb215 Prepare the code for writing a new ray tracer 2021-10-20 05:28:41 +02:00
nashmuhandes
6fa8bf706e Change the sunlight DoomEdNum to 9890, to prevent clash with PointLightStatic 2021-10-05 13:11:12 +08:00
Magnus Norddahl
2f7b97854a Update docs 2021-10-04 23:56:55 +02:00
Magnus Norddahl
3a1968782d Add SunLight thing support 2021-10-04 23:47:19 +02:00
Magnus Norddahl
d8bf0bafc4 Add some code exporting the lit level mesh to .obj for debugging (helps figuring out if a problem is in GZDoom or ZDRay) 2021-10-02 22:15:57 +02:00
Magnus Norddahl
5f23b75c10 Fix some UDMF properties getting lost after merging the code with dlight 2021-10-02 04:26:26 +02:00
Magnus Norddahl
ef7caddb2c Fix light probe Z coordinate 2021-09-25 19:55:17 +02:00
Magnus Norddahl
fe282e6f6d Add light probes 2021-09-25 17:47:21 +02:00
Magnus Norddahl
82c0837928 Some mesh export functionality and name size changes, supposedly 2021-09-24 16:54:33 +02:00
Christoph Oelckers
4dd0edbd3a - also create 3D floor references if the tag is defined through 'moreIDs'. 2018-12-30 10:37:52 +01:00