VulkanMod icon indicating copy to clipboard operation
VulkanMod copied to clipboard

Rtx Support!

Open MrScautHD opened this issue 2 years ago • 9 comments

Vulkan support RTX

soo pls add it!

MrScautHD avatar Feb 24 '23 10:02 MrScautHD

Feel free to make a pull request with your changes.

ezamelczyk avatar Feb 24 '23 13:02 ezamelczyk

Unfortunately getting RTX/RDNA2 support off the ground will not be trivial due to the crazy stuff needed in a Ray-Tracing enabled pipeline, which is drastically different than the pipeline setup used currently for rendering, and will require the mod to behave more like blender than Minecraft AFAIK.

A ray-Tracing enabled pipeline needs a TLAS and BLAS (Top and Bottom-Level Acceleration Structure), and you also need special shaders as well (Ray-Gen, Hit, Miss and so on), and IIRC you need both to use RTX acceleration. These also have Rebuild times just like BVHs in Blender.

thr3343 avatar Feb 25 '23 13:02 thr3343

The other problem is that AFAIK there isn't anyone around that actually knows how to write these special Raytracing shaders properly, which is also likely why RTX support was never added.

I have had ideas about making an attempt to setup a RTX/Raytracing PR before, but as mentioned above I'm not a ShaderPack author and don't know how to optimise the RayGen shaders properly, so it likely wouldn't run very well or be particularly playable.

thr3343 avatar Feb 25 '23 13:02 thr3343

if you get it running, it will probably get a lot of attention, then youtubers will make videos, rtx coder will see them, and then help you, you could try if think you can get it to work

mr-sihc avatar Feb 27 '23 12:02 mr-sihc

Feel free to make a pull request with your changes.

as if not, he verry probably has no idea how to code rtx into minecraft, and he also verry probably knows that you can make a pull request so this commend is extremely useless

mr-sihc avatar Feb 27 '23 13:02 mr-sihc

Feel free to make a pull request with your changes.

as if not, he verry probably has no idea how to code rtx into minecraft, and he also verry probably knows that you can make a pull request so this commend is extremely useless

True. Poor response on my part but I just don't like the commanding tone of the initial request.

ezamelczyk avatar Feb 27 '23 20:02 ezamelczyk

That's OK, don't think anyone was bothered or offended in anyway.

IMHO alot of stuff and performance issues haven't been fixed or added yet for a longish while due to many good reasons (lack of time and/or devs, Bugs with GPU Drivers, Vanilla MC code being difficult to work with e.g.) which isn't xCollateral's or anyone's fault.

I don't mind trying to experiment with Ray/Path-tracing to do something different, (The PRs I've done either have massive issues or ugly code which I've wasted far too much time on), however I am mostly an amateur who doesn't fully understand what they're doing, so I can't guarantee anything.

I also don't have the best hardware (GTX 1080 Ti which supports VK_KHR_ray_tracing_pipeline but is an outdated Architecture, lacks Ray Queries and is slow with Path-Tracing), so If anything comes of it, it will likely be as a experiment/tech demo.

thr3343 avatar Feb 27 '23 22:02 thr3343

Also you don't necessarily need to have RTX, as it will likely also/only work with these GPUs and as long as you have Vulkan 1.2, anything else causes the driver to crash AFAIK.

thr3343 avatar Feb 27 '23 23:02 thr3343

Yep! RADV also supports emulate_rt=1 on older cards which I assume just makes it use the CPU or some slower GPU based fall back instead, this also let's you play Minecraft RTX on Linux on older AMD cards, but the Education version instead. Normal bedrock isn't packaged as .exe unlike Education but off topic rant but sucks Wine doesn't support UWP sometimes lol :/

nonetrix avatar Apr 13 '24 22:04 nonetrix