Garry's Mod
52 evaluări
VisTrace - Raytracing Library
   
Premiază
Adaugă la preferate
Preferat
Elimină din preferate
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Build, Realism
Dimensiunea fișierului
Postat
Actualizat
6.581 MB
28 iun. 2021 la 20:03
16 dec. 2022 la 13:46
27 notițe privind schimbările ( vizionare )

Abonează-te pentru a descărca
VisTrace - Raytracing Library

În 2 colecții create de Derpius
TAS Collection
92 obiecte
TAS Build Server
69 obiecte
Descriere



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
126 comentarii
noobs_altaccs 4 sept. la 5:52 
my pc would go go go and theres no stopping it, in 200 degress thats why they call the PC mister fahrenheit
Derpius  [autor] 27 febr. la 11:35 
This is the finished* product. It's a library for writing high fidelity ray tracers in Lua.

*There are features that were never added and an unfixed bug, but the current set of features far exceeds the original scope for the project
Akimato 27 febr. la 4:22 
i have came back and im raging over code and i really want the finished product
wildwyatt87 11 febr. la 14:06 
is this like blender but its code was now inside source engine?
Derpius  [autor] 2 febr. la 11:29 
@alastis https://derpius.github.io/VisTrace/vistracing-in-one-weekend
This is a library for writing ray tracers in Lua
alastis 1 febr. la 0:48 
how to use it?
i did it all what it says in INSTALL text but nothing
็็็็็็็็็็ 23 dec. 2023 la 2:20 
this is a good rtx mode !
:steamthumbsup:
jona8hernandez 19 nov. 2023 la 21:28 
A
Derpius  [autor] 30 aug. 2023 la 11:02 
> is this just like softlamps to create imaging and crap

I have no idea what "softlamps" is. I think the description covers what the addon is (although it's a bit verbose)

> is there a wiki?

StarfallEx API is fully documented (open the SFHelper in-game) and the GLua API mirrors is. There's also https://derpius.github.io/VisTrace/vistracing-in-one-weekend which uses the GLua API
Akimato 30 aug. 2023 la 5:10 
is this just like softlamps to create imaging and crap