Commit graph

274 commits

Author SHA1 Message Date
nashmuhandes
d1b5490344 Print an obviously different version string to reduce confusion 2024-09-18 10:24:17 +08:00
Magnus Norddahl
83395455e6 Fix crash for maps with vertices above 32768 2024-09-17 07:20:02 +08:00
nashmuhandes
d7b5fbf445 Update the readme 2024-09-15 16:27:24 +08:00
nashmuhandes
21b7a26f24 Rename lm_sampledistance to lm_sampledist to match future versions of ZDRay 2024-09-15 16:19:29 +08:00
Magnus Norddahl
ee272c7ee8
Merge pull request #44 from MrRaveYard/pr_rectangle_pack
Use library to improve lightmap texture packing
2022-07-09 09:54:29 +02:00
RaveYard
baba15b9b5 Use library to improve lightmap texture packing 2022-07-08 22:51:41 +02:00
Magnus Norddahl
9b510f3e84
Merge pull request #43 from MrRaveYard/pr_preview_switch
Add --preview switch that significantly reduces sample count
2022-07-06 14:31:20 +02:00
RaveYard
48430fb306 Add --preview switch that significantly reduces sample count 2022-07-06 11:45:36 +02:00
RaveYard
e97babc617 Fix bad control flow in GPU sunlight normal test 2022-07-05 14:56:50 +02:00
RaveYard
4675ab5b81 Fix GPURayTracer::CreateTask accidentally creating useless tasks
and reserve task size in CPU for lightprobes
2022-07-05 09:33:44 +02:00
RaveYard
00ae64b79d Discard traces via dot product for every light in GPU/CPU 2022-07-05 09:32:13 +02:00
Magnus Norddahl
42c1258fc9
Merge pull request #42 from MrRaveYard/pr_old_gpu_task_discarding
Discard trace tasks for GPURaytracer
2022-07-04 16:18:53 +02:00
RaveYard
866d02fc4a Discard GPU trace tasks that are out of surface bounds 2022-07-04 12:26:52 +02:00
RaveYard
020b053398 Move task discard test from CPU tracer to surfaceclip.h 2022-07-04 12:26:05 +02:00
RaveYard
3a53ffeca9 Discard CPU sun traces via normal dot product test 2022-07-03 23:06:40 +02:00
Magnus Norddahl
ff4d4fe56d
Merge pull request #41 from MrRaveYard/pr_cull_tasks
Discard tasks for CPURaytracer that are not on the surface
2022-07-03 22:25:08 +02:00
RaveYard
00a4e6a73e Discard trace tasks for CPURaytracer that are outside of any real geometry 2022-07-03 21:32:42 +02:00
Magnus Norddahl
bc0f419fff Add ambient occlusion 2022-07-03 13:22:17 +02:00
Magnus Norddahl
b67f265c75 Move pipeline barrier to a more logical location 2022-07-03 03:10:39 +02:00
Magnus Norddahl
6e8757649c Trace the sun 2022-07-03 02:57:05 +02:00
Magnus Norddahl
1d51bc17de Fix triangle strip not covering the entire tile 2022-07-03 02:01:01 +02:00
Magnus Norddahl
65445a7b07 Implement enough of a ray query raytracer that it at least outputs something 2022-07-03 01:47:11 +02:00
Magnus Norddahl
12ffde80bc Minor code cleanup 2022-07-02 05:18:08 +02:00
Magnus Norddahl
2898242f12 Remove prototype declaration missing from last commit 2022-07-02 01:37:32 +02:00
Magnus Norddahl
1bb8408b75 Create the output framebuffer 2022-07-02 01:36:28 +02:00
Magnus Norddahl
582cd7f7c0 RunAsync serves no purpose anymore as it now doesn't actually do anything in the main thread 2022-07-02 01:35:52 +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
Magnus Norddahl
71c6552258 Prepare the vertex shader to draw without a vertex buffer 2022-06-30 23:59:37 +02:00
Magnus Norddahl
8ec576c3bd Begin work on a new GPU raytracer that uses ray queries instead of the raytracing pipeline 2022-06-30 23:26:31 +02:00
RaveYard
04d8aabc92 Fix ambient occlusion pass not considering sky as a miss 2022-06-30 15:55:44 +02:00
RaveYard
443d447fcb Remove unused indirect samples buffer 2022-06-30 12:31:28 +02:00
Magnus Norddahl
44b1d90968 Fix missing ShInitialize call 2022-06-30 10:42:10 +02:00
Magnus Norddahl
d88c2ef41c Update builders to use the new form also used by the gzd backend 2022-06-29 20:12:36 +02: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
nashmuhandes
18e291c13a Update documentation (per surface sampling distance) 2022-06-29 14:56:19 +08:00
RaveYard
023d75f879 Add line_horizont support 2022-06-24 22:39:29 +02:00
RaveYard
4d40108906 Fix top side textures not counting towards sky
I checked how GZDoom and chocolate Doom behave and it turns out that the top texture is irrelevant
but the bottom one is relevant
2022-06-24 22:36:42 +02:00
Magnus Norddahl
f87e952373
Merge pull request #40 from MrRaveYard/pr_mesh_export
Add --dump-mesh option and improve LevelMesh::Export
2022-06-24 21:07:48 +02:00
RaveYard
ce3060708d Add --dump-mesh option and improve LevelMesh::Export 2022-06-24 20:53:44 +02:00
Magnus Norddahl
bbf4a71c1f
Merge pull request #39 from MrRaveYard/pr_minor_refactoring
Support sunlight from sky on the floor + fix warnings
2022-06-24 18:16:49 +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
Magnus Norddahl
0e3340b807
Merge pull request #38 from MrRaveYard/pr_fix_slopes
Initial support for most common slope types
2022-06-23 00:53:22 +02:00
RaveYard
114b5c68d2 Fix certain broken normals 2022-06-22 14:30:56 +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
Magnus Norddahl
fd3c6bbb9e
Merge pull request #37 from MrRaveYard/pr_percentage_progress
Display percentage progress instead of dots
2022-06-17 02:00:33 +02:00
RaveYard
152b5092b9 Display percentage progress instead of dots 2022-06-16 22:43:07 +02:00
Magnus Norddahl
cc273c5f38
Merge pull request #36 from MrRaveYard/pr_per_surface_sample_size
Customizable sampling distance per surface
2022-06-16 19:45:53 +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