Commit Graph

2170 Commits

Author SHA1 Message Date
NightFox 5342c92019
Rads and patches, rev1 (#328)
Обновлённые рады и патчи карт для лучей. Куча ненужных источников выкинута, местами освещение переделано в пользу реализма. Попытка вытянуть освещение через доступные светящиеся поверхности. Список радов и патчей будет потихоньку обновляться. Это первая ревизия, во второй будут исправляться пропущенные ошибки и коррекция освещения относительно новых материалов.

Для патчей исправлен масштаб яркости у светящихся текстур.

Также теперь рад файлы лежат в data/valve/maps/ а патчи в data/valve/luchiki/maps/. Теперь возможно добавлять другие моды.
2022-03-21 12:00:02 -07:00
Ivan Avdeev b68dcf81a1
vk: move big enum to string tables to dedicated source file (#345) 2022-02-06 23:16:54 -08:00
Ivan Avdeev 113039a929 vk: print surface formats and colorspaces names 2022-02-06 09:42:03 -08:00
Ivan Avdeev 8d8abb7e29 vk: synchronize screenshots with swapchain, fix #192 2022-02-06 09:42:03 -08:00
Ivan Avdeev 970089516c vk: move swapchain out from framectl 2022-02-06 09:42:03 -08:00
Ivan Avdeev 59ec44ca34 rt: align SBT buffer allocations 2022-01-17 22:06:30 -08:00
Ivan 'provod' Avdeev 951d382eb6 vk: improve memory allocation logging
print region names, requirements, etc.
also decrease default vulkan device memory allocation size to 64Mb
decrease max vertices to 512k
2022-01-17 22:06:30 -08:00
Ivan Avdeev a5f22ca11d vk: add verbose memory allocation logs 2022-01-17 22:06:30 -08:00
Ivan Avdeev 24cb0aebfb vk: add a simple block dlinked list based allocator for devmem 2022-01-17 22:06:30 -08:00
Ivan Avdeev bba8b87ada vk: improve VkDeviceMemory allocation
Allocate device memory in big 128Mb chunks. Sub-allocate buffers, images
and other resources within those chunks.

This uses a dumb grow-only bump allocator for now. Will not work for
more than a couple maps.
2022-01-17 22:06:30 -08:00
Ivan Avdeev 8f7f0d5c8e vk: split devmem into a separate module
prepare for a better device memory allocator
2022-01-17 22:06:30 -08:00
NightFox 95ce46753e fix tr.blend (fade fx) for sprites 2022-01-17 21:12:57 -08:00
Ivan 'provod' Avdeev 8b7ff39efb print more info about vulkan memory and allocations 2022-01-05 20:12:36 -08:00
Ivan Avdeev 7f846eaddd
Merge pull request #315 from 0x4E69676874466F78/fonarik 2021-12-30 09:02:30 -08:00
Ivan Avdeev 51a29c012c make flashlight handling a bit cleaner 2021-12-30 13:28:56 +03:00
Ivan Avdeev cf09305f79 prettify modern flashlight addition to cl_tent 2021-12-30 13:28:56 +03:00
NightFox 1501f7fea4 more correct flashlight position in first person by @MaxG2D 2021-12-29 12:21:33 +03:00
NightFox 09493cbcba fix multiplayer angles 2021-12-28 18:25:14 +03:00
NightFox 2d6de8b149 fix error: implicit declaration of function 2021-12-28 15:16:46 +03:00
NightFox 9420fc3e39 general fix flashlight for other players in multiplayer mode 2021-12-28 15:09:29 +03:00
NightFox 13914830b7 add workaround for multiplayer 2021-12-28 02:16:55 +03:00
NightFox 8848502572 cleanup again 2021-12-28 00:58:26 +03:00
NightFox 0b1b181f26 remove workaround for classic render 2021-12-28 00:50:39 +03:00
NightFox 2395469d0c cleanup 2021-12-28 00:34:39 +03:00
NightFox 5f7127bd00 replace parseAngles function code by AngleVectors and tune thirdperson_offset 2021-12-27 19:27:31 +03:00
NightFox d413b7dc77
Merge branch 'vulkan' into fonarik 2021-12-27 15:42:22 +03:00
Ivan Avdeev b67668430b rtx: fix missing flashlight in c1a4i
Just increase point lights limit per light cell.

Also:
- update infotool to show point lights info
- move light cluster finalization to vk_scene to make sure infotool has
  the recentmost data
2021-12-26 23:56:21 -08:00
Ivan Avdeev f86da445b7 rtx: fix moving emissive surfaces light clusters
Do not skip 0th leaf when iterating through R_FatPVS results.

Also:
- move infotool from camera.c to infotool.c
- add hit coords to infotool
- add limited light clusters info into infotool
- add a bit more debug info to light clusters

fixes #279
2021-12-26 00:37:07 -08:00
NightFox cf0c88bc08 flashlight tuning for classic render 2021-12-26 04:19:39 +03:00
NightFox 6dbaf76b6c add flashlight for classic render (workaround) 2021-12-26 04:06:19 +03:00
NightFox 74a9809b08 formatting 2021-12-26 03:17:22 +03:00
NightFox e68546cd8b refactoring 2021-12-26 01:54:32 +03:00
NightFox 0aba565ab8 more correct flashlight
more correct work in the first person
add third person support
add multiplayer support (need testing)
2021-12-26 01:00:06 +03:00
NightFox 8c12479447 fix error: implicit declaration of function 2021-12-25 01:16:19 +03:00
NightFox ab4d1c12c7 new flashlight 2021-12-25 00:30:02 +03:00
Ivan Avdeev c39e0c6031 rtx: add include support for materials
use it like this:
```materials.mat
{
	"include" "other.mat"
	"include" "another.mat"
	// ...
}

// continue with regular material definitions
```

```other.mat
{
	// can also nest includes (up to 4)
	"include" "yetanother.mat"
}

// continue with definitions as usual

{
	// may also have includes later too
	"include" "whatever.mat"
}

// ...
```

etc

fixes #312
2021-12-23 22:25:31 -08:00
Ivan Avdeev 2ae510ee7f respect animated textures in ui_infotool
1. include correct current texture
2. print animation chain info

relevant for #301
2021-12-23 00:01:39 -08:00
Ivan Avdeev 7e90b07288 rtx: create new pbr materials using "new" key
fixes #291
2021-12-22 12:33:33 -08:00
Ivan Avdeev 86b13716bf rtx: create new materials referenceable by "for" key, #291 2021-12-22 12:33:33 -08:00
Ivan Avdeev f02e0a8b3a rtx: enable referencing by short tex name in patch, #291 2021-12-22 12:33:33 -08:00
Ivan Avdeev a94674b11a rtx: allow creating new pbr materials 2021-12-22 12:33:33 -08:00
Ivan Avdeev 9970d4e31a rtx: remove stale lbsp light code 2021-12-21 22:56:34 -08:00
Ivan Avdeev ccab9e6ea6 make ray_interop.h a bit more self-sufficient 2021-12-21 22:56:34 -08:00
Ivan Avdeev 8d552b5d94 update todo 2021-12-21 22:56:34 -08:00
Ivan Avdeev fa63aedce9 rtx: fix too verbose logs for emissive patch 2021-12-21 18:50:41 -08:00
Ivan Avdeev b593be9695 rtx: delete patched surfaces with zero emission
fix #286
2021-12-21 18:37:04 -08:00
Ivan Avdeev 659402cb2a patch: enable live reloading
Does not yet reload emissive patches ("_light" argument for surfaces).
Does not reload deleted surfaces.
2021-12-21 18:37:04 -08:00
Ivan Avdeev 8b1971e0d1 fix mass patching and removing, fix #283 2021-12-20 14:34:55 -08:00
Ivan 'provod' Avdeev 0a05adaabc rtx: add reinhard tonemapping 2021-12-20 13:48:49 -08:00
Ivan 'provod' Avdeev 985ea278f8 rtx: fix uninitialized texture memory in base_color and normal channels 2021-12-20 13:16:27 -08:00