Garry's Mod

Garry's Mod

63 arvostelua
VisTrace - Raytracing Library
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Build, Realism
Tiedostokoko
Julkaistu
Päivitetty
6.581 MB
28.6.2021 klo 20.03
16.12.2022 klo 13.46
27 muutosilmoitusta ( näytä )

Tilaa ladataksesi
VisTrace - Raytracing Library

2 kokoelmassa, tekijä Derpius
TAS Collection
92 luomusta
TAS Build Server
69 luomusta
Kuvaus



GitHub: https://github.com/Derpius/VisTrace
Discord: https://discord.gg/N4NxezCgFQ

Overview
VisTrace is a binary module that allows tracing entity visual meshes at speeds at or faster than traditional trace methods, which it achieves with bounding volume hierarchies[en.wikipedia.org] using the C++ BVH library[github.com] by madmann91 on GitHub.

What This Addon Does
While the binary module does most of the work, the addon handles versioning, provides integration with other addons like StarfallEx, and various quality of life features like the BSDF material toolgun.

The binary module allows high performance vismesh intersection with almost as much ease as using traditional trace functions, as well as providing texture and material information and various helper functions.

What This Addon Doesn't Do
This doesn't automatically give you a fully fledged ray/path tracer (although it makes it very easy), just offloads the performance intensive calculations to C++.

Who This Addon is For
If you've ever written a tracer in GMod, made a project requiring precise intersections with entity geometry (for instance a ranged weapon), or if you've wanted to get the UV coordinates at a hit point for whatever reason (for instance, a paintbrush, where you could set the material of an entity to a render target, and use the hit UVs to paint onto the texture at the position the player is looking), then this addon is for you.

Installation
Get the latest release build of the binary module from my GitHub repo[github.com], or clone and compile from source (if you don't know how to do this then you probably don't need to compile yourself), then place the dll in garrysmod/lua/bin.
As for the addon, you can either use the binary module by itself (no integration with other addons, and you'll need to use CS Lua to load and interface with the module), or you can subscribe to the addon here / download from the repo and mount, which handles versioning automatically, and adds compatibility with addons like StarfallEx.

Usage
Documentation for the GLua API doesn't currently exist but will be added to the repo's wiki (however the Starfall API mirrors it), as for the Starfall library, documentation is generated automatically and is available in the SF Helper.

tags: ray tracing, raytracing, path tracing, pathtracing, binary module, rtx, rendering
Suositut keskustelut Näytä kaikki (2)
3
6.8. klo 12.48
For people who are looking for a easy real time ray trace solution for gmod
Akimato
0
6.8. klo 12.47
how do i use this
Spooky scary gamer dude
141 kommenttia
HUSEINOO19 9.7. klo 11.09 
is there any guide on youtube how to put this addon in the game?????
Derpius  [tekijä] 5.7. klo 1.43 
client side binary module
Nuka-Nuke Launcher 2.7. klo 14.23 
is this client side or server side?
Derpius  [tekijä] 28.5. klo 13.07 
The shaders are still running on old DirectX without access to hardware RT cores
Your best bet for _reasonable_ quality real time GI would be RTX Remix

Ofc with real-time rendering you lose a lot of the visual quality, and with that solution no or limited control over the rendering pipeline. This library is for developers to write offline ray and path tracers in GMod for prototyping etc.
bluecoolman280 26.5. klo 11.25 
garry's mod now has custom shader support, so maybe just maybe fast GI would be possible now
Ktotoshniy 22.1. klo 13.00 
Really cool but it can't parse quite a lot of maps specifically large ones and just returns the sky.
bluecoolman280 2.12.2024 klo 22.01 
oh, nice. too bad i dont know how to code (the only kind of ""coding"" i know is scratch, but i dont think that one really counts as real coding.) so maybe sometime in the future someone could try making a post-processing GI addon for gmod
Derpius  [tekijä] 2.12.2024 klo 12.44 
> if there were some way to make something like fast GI in gmod, but as a post-processing effect that would be cool

Yes, you could implement one of the many forms of SSGI as a binary module or similar. That's well outside the scope of this addon though
bluecoolman280 1.12.2024 klo 22.55 
(ik i can just use reshade, but that has problems with looking glitchy in a map like gm_construct despite enabling something in add-ons in reshade)
bluecoolman280 1.12.2024 klo 22.52 
if there were some way to make something like fast GI in gmod, but as a post-processing effect that would be cool