Commit Graph

3694 Commits

Author SHA1 Message Date
Turánszki János 887ceea013 AMD virtual texture uv interpolation fix 2023-10-03 08:42:26 +02:00
Turánszki János 0163ec64d4 water refraction and fog improvements 2023-10-03 08:04:47 +02:00
Turánszki János 4954f62468 various updates (#758)
* object rendering can now be disabled in reflections; removed custom ray tracing inclusion masks for more unified system based on object flags and to not interfere with user logic layer masks; other scripting updates;

* unregister editor printscreen

* point light shadow artifact fix
2023-10-01 17:01:39 +02:00
Turánszki János e0a03afabe ray intersection, decal placement fix 2023-10-01 08:01:45 +02:00
Turánszki János e9f647efa2 particle planar reflection clip plane fix 2023-09-30 17:20:04 +02:00
Turánszki János f5e3fdb14a enabled hair particle in planar reflection 2023-09-30 13:11:47 +02:00
Turánszki János 996a6d018b particles will take emitter velocity, and set visible in planar reflection 2023-09-30 09:09:51 +02:00
Turánszki János e2ad204b07 lua: fallback script_dir() etc for binary script 2023-09-30 07:05:50 +02:00
Turánszki János ebabecde4c added lua bindings to handle binary lua files, and updated docs 2023-09-30 06:53:58 +02:00
Turánszki János 9a7239268c shader minprecision fixes 2023-09-29 11:10:45 +02:00
Turánszki János dc696007ea uwp nuget package update 2023-09-29 10:57:01 +02:00
Turánszki János b71bcb7a78 build fix 2023-09-29 09:57:04 +02:00
Turánszki János 4df22f2efe changed some vertex params to minprecision 2023-09-29 09:39:36 +02:00
Turánszki János be5b87b300 new object flag: not visible in main camera 2023-09-29 09:14:27 +02:00
Turánszki János ae1db0542b dx12: separate queue for copyAllocator 2023-09-29 08:35:41 +02:00
Turánszki János 69c05385af vertex parameter reduction 2023-09-29 08:31:54 +02:00
Turánszki János 757968d6ba hair particle: when general buffer is recreated, always set gpu init flag 2023-09-28 08:24:32 +02:00
Turánszki János 63d4e4967b fix for hair particles and ray tracing #755 2023-09-28 07:28:25 +02:00
Turánszki János 21c24cb456 dx12 updates 2023-09-26 08:26:46 +02:00
Turánszki János b5e719f6e4 scripting updates 2023-09-25 19:27:08 +02:00
Turánszki János 13c6431a0d audio loop can be exited when audio is not playing (#754) 2023-09-24 14:00:35 +02:00
Turánszki János ca6765f9a2 input and scripting updates 2023-09-24 10:41:37 +02:00
Turánszki János 1fa5bd0f4a Added numpad input handling (#752) 2023-09-23 08:09:30 +02:00
Turánszki János 2e3029887f font sharpness computed in screen space (#751) 2023-09-22 19:38:06 +02:00
Turánszki János 820c042050 font renderer improvements 2023-09-21 08:43:58 +02:00
Turanszki Janos 5df148cb6c workaround crash fix for AMD RX 6650 2023-09-20 08:10:54 +02:00
Turánszki János b41e2a1917 editor: translator hotkeys not triggered while backlog is active 2023-09-20 07:39:35 +02:00
Turánszki János 6b89f98c11 updated dds_write 2023-09-18 19:07:30 +02:00
Turánszki János 8d5ff44149 dx12, vulkan: initdata support for sparse tile pools 2023-09-17 14:59:05 +02:00
Turánszki János 81dc004659 added lua binding for foreground object rendering 2023-09-17 07:46:25 +02:00
Turánszki János 05fa9fd6dd foreground object rendering 2023-09-17 07:24:23 +02:00
Turánszki János 9383240fa7 dx12: direct texture data write path for integrated GPUs 2023-09-16 07:47:04 +02:00
Turánszki János 6148430865 improvement for scene load time on integrated gpu 2023-09-15 19:24:00 +02:00
matpx 17b97478b3 reuse scene reference (#746) 2023-09-15 17:57:38 +02:00
Dave Palais 7acf78c68c Also reset the mouse delta position each frame (#740)
Reset and accumulate the mouse position delta every frame

Co-authored-by: Dave Palais <dpalais@users.noreply.github.com>
2023-09-15 08:06:58 +02:00
Patrick Kelley 6ad40d0927 Fix for NaNs in normal for scene capsule collision. (#745)
For wi::scene::Scene::Intersects(Capsule), if the overlap depth
is >= the capsule radius, and the line segment that makes up the
spine of the capsule intersects a triangle, then the reported
contact normal would be (NaN, NaN, Nan).  In this special case, the closest
point on the capsule line segment to the triangle ("Center" in the code)
would always be the same as the "bestPoint", which leads up to a divide
by zero in the normal vector calculation.

This fix detects this case, and:
  1) reports the triangle normal when this special case prevents
     calculation of the normal.
  2) corrects the depth calculation for this special case to take into
     the distance from the "Center" point on the spine to the actual
     penetrating endpoint of the spine, projected onto the triangle
     normal.
2023-09-15 07:09:02 +02:00
DDev101 6c563748bc Update wiGraphicsDevice_Vulkan.cpp (#743)
swapchain_capabilities.currentExtent.width being checked twice instead of width and height
2023-09-15 06:19:20 +02:00
Turánszki János bb519474ca envmap filtering uses dynamic mip selection to reduce fireflies v0.71.285 2023-09-03 14:46:14 +02:00
Turánszki János f8863799cd EXT_lights_image_based, DDS file writer, envprobe updates, fixes (#741) 2023-09-03 11:39:54 +02:00
Turánszki János 0035848630 raytraced reflection fix: static sky can also be reflected 2023-08-31 07:40:42 +02:00
Turánszki János 553a2ce720 roughness clamping fix 2023-08-30 19:05:43 +02:00
Turánszki János 41f29e2a1d Envmap improvements 2023-08-30 09:21:42 +02:00
Turánszki János af4175a775 ps5: impostor msaa resolve dest needs to be a render target 2023-08-28 19:12:51 +02:00
Turánszki János 7dde93da20 gui window onResize callback , editor about window updates 2023-08-27 17:49:14 +02:00
Turánszki János 19280fc45e spheremap orientation fix, static sky exposure 2023-08-25 08:40:47 +02:00
Turánszki János c6c145f1f9 fixes: envprobe miplevels; editor focus on dirlight; gui textInput selectall; 2023-08-23 17:11:44 +02:00
Turánszki János 109a35aea0 playstation 5: audio and job system extensions 2023-08-23 08:22:49 +02:00
Turánszki János 6a86c8a61f Playstation 5 input and fixes (#734) 2023-08-20 16:14:46 +02:00
Turánszki János 8a20963fff Playstation 5 fixes (#733) 2023-08-19 12:46:56 +02:00
Dennis Brakhane c8cfac5678 Various vulkan fixes (#732)
* vulkan: no need to explicitly enable VK_KHR_get_physical_device_properties2

It has been promoted to core Vulkan 1.1

* vulkan: fix creating and destroying swapchains

We can't reuse a semaphore if it is signalled. There is no
easy way to wait on the swapchain semaphore without some ugly hacks,
so instead we just create a new one.
We also need make sure we only destroy old swapchains once they are
(probably) not used anymore. The recent VK_EXT_swapchain_maintenance1
extension would make all of this much easier, but as of now, it's not yet
widely supported.

* cleanup: reduce amount of copy-paste in AllocationHandler::Update()

Using a lambda allows us to remove the copy-pasted loop and increase legibility
by reducing the code by almost two thirds with no performance impact: both GCC
and MSVC generate almost the same code as in the old version, the differences
being often due to slightly different register allocations.

* vulkan: ensure render area is not greater than color attachments

swapchain->desc.width/height can differ from the swapChainExtent,
for example if a VK_KHR_SUBOPTIMAL happened before we received the
"window size changed" event, or if it is not between the minimal
or maximal extents.

Ensure we don't use a render area larger than the color attachments,
as this violates VUID-VkRenderingInfo-pNext-06079 and 06080.
2023-08-18 17:20:30 +02:00