#Written from scratch custom VRAD - XenorRAD:tm:

1 messages · Page 1 of 1 (latest)

grand cloak
#

Default VRAD:

#

XenorRAD:

#

Default VRAD:

#

XenorRAD:

grand cloak
#

XenorRAD on the left and VRAD on the right

XenorRAD took 17 seconds to compile, VRAD took 35 seconds

#

both -final

grand cloak
#

fixed lightmap filtering, now light scatteres more evenly around geometry edges
also added adaptable shadow sampling, meaning near geometry edges it uses more shadow samples to resolve multiple light hits and uniformly smoothes them
for example this now is set to 24 near edge and 16 for rest

scenic swift
#

if from scratch write it on CUDA then or something else
would better

grand cloak
#

i supposed i could add OpenGL and do it via GPU

#

but dont care

candid laurel
buoyant tapir
#

oh shit nice

lilac mason
#

bro that pfp 💀

buoyant tapir
lilac mason
#

but yeah its actually better if you do this stuff via the gpu ngl

#

its more fit for that kind of things

languid notch
#

that actually a interessing project, will be open source ?

jagged parcel
grand cloak
grand cloak
#

since i learnt that people are ungrateful

daring hound
#

thats one quick way to kill the project

grand cloak
jagged parcel
#

well, have fun hehe

grand cloak
#

and VRAD is just too slow to work with and doesnt quite meet my expectations but worth to note, its already 30x faster than VRAD without SIMD improvements and i think ill also add OpenGL to accelerate some parts

lilac mason
#

omw to make my own vrad in luajit with gpu shit 🚎

daring hound
#

a faster vvis would be peak tbh

#

vrad is barely ever the slow factor

lilac mason
#

guess what
the gpu works for that too

#

so pay me some

sly hollow
daring hound
#

im not a mapper

#

aint paying you shit!!!

vague canyon
#

yeah vrad is easy to parallelize, vvis depends on an algorithm that is almost entirely serial

daring hound
#

because vrad++ doesnt i think

lilac mason
#

p sure it does

daring hound
#

yay

grand cloak
#

yall are really supportive

#

because i never seen since someone to rewrite the VRAD

#

not rewrite but from scratch VRAD

tame snow
#

Seems like a cool project

#

It's a shame it isn't open source, though

daring hound
grand cloak
#

fact

daring hound
#

even king terry the terrible understood the value of opensource projects

grand cloak
#

i want to first beta test it on larger maps and with experienced mappers so i wont open source some trash

#

and some cleanup in the codebase also will be fit

tame snow
#

I wonder how possible it would be to create an end-to-end replacement for the map compilation pipeline where each individual step is replaceable

daring hound
#

thats entirely fair 👍

daring hound
grand cloak
#

byte by byte identical literally

#

or else you gonna end up like me with 1 gb crash log folder until i got it just right

#

I experimented with VoxelGI instead of radiosity for gmod

#

but its hard to do so i scrapped it and continuing with just XenoRAD which is basically modern and efficient VRAD

tame snow
#

How large are the final lighting textures?

grand cloak
#

basically i voxelized the whole map and calculated so by inject each voxel and doing light propagations

#

but its was so blocky that denoising and smoothing it would be inefficient and slower than regular radiosity

grand cloak
#

also im only shipping HDR only

tame snow
#

I mean in terms of resolution and disk size

grand cloak
#

vrad does about 8mb whilst mine did 5mb

#

so it makes huge difference in larger maps

#

but its too early to compare it

#

since i also need to implement static props lighting

#

geometry lighting is now fully complete at this point

#

safe to say its better than VRAD could ever be without huge rewrite

sly hollow
bright belfry
#

Make it open source.

#

Even if the codebase isn't in a great state.

#

Making it FOSS will be beneficial in the long run.

main idol
daring hound
split wind
candid laurel
#

workaround using sourcesdk2013mp

#

just mix and match your compilers til it’s all fine and dandy ❤️

candid laurel
bright belfry
#

how unoptimized and overly complex are your maps for gmod of all things that vvis is main point of slowdown/bottlenecking in your map compile

scenic swift
#

I never ran into vvis issues, but vrad was really slow in SDK

grand cloak
#

damn

#

i gotta make it GPU accelerated

#

cuz its only like approx. 10-15 seconds gains

#

also gonna add SIMD for vector math operations

tame snow
#

GPU accelerated might be able to do it real fuckin’ quick

grand cloak
#

but its just direct lighting i need to also implement indirect

grand cloak
#

Added path tracing for indirect lighting calculations

This is 1024 rays per luxel

#

I now dont need to do Ambient occlusion pass since AO is results of path traced lighting similiar to blender cycles

#

This is 512 rays per luxel

#

14.9 million rays per second with total of 2,08 billion total rays casted
somewhat reasonable altough RTX cards do it like 100x faster

#

both with 16 progressive passes

latent edge
#

holy shit

tame snow
#

If it's not time consuming to do, it would be interesting to see a series of comparison screenshots taken from the same position/angle/fov with different ray counts
I'm curious about how quickly you get diminishing returns on adding additional rays

#

If the camera is aligned exactly the same between the images, it would be possible to compare two ray counts (e.g. 1024 vs 512) and subtract the pixels of the 512 image from the 1024 image to visualize exactly what the additional rays add to the final 1024 image

latent edge
#

im guessing this is a private compiler

grand cloak
latent edge
#

shame

#

would've been cool to test out

grand cloak
latent edge
#

you planning to release it as a executeable?

grand cloak
#

yes

latent edge
#

based

grand cloak
#

gonna ship it alongside opengl dll and shader file

#

since it uses OpenGL

latent edge
#

how fast in percentage wise is it compared to stock vrad, gmod vrad, vrad++?

grand cloak
#

and vrad++ is just vrad from source sdk 2013 improved

#

mine is literally written from scratch and i just use the same lightmap rgb encoding function since garrys mod is very picky to literal bytes

latent edge
#

did you just say 49 minutes to 6 seconds

grand cloak
#

yeah

#

but it shouldnt be surprising since VRAD was written in like 2003 and was targeting Windows 95

#

mine is written using bleeding edge and the latest compiler tools since its written completely from scratch in Visual Studio 2026

#

but it wasnt like week project i was working on it for like 3-4 weeks dealing with constant crashes of gmod and bugs

#

and its still not complete for example i have to finish prop_static lighting and their shadow casting

latent edge
#

what would the process be if requesting access to this compiler...

grand cloak
latent edge
#

what chances...

#

im banned from it

grand cloak
#

they usually give me feedback for example synapse t6 showed a larger gaps in my compiler which caused me to rollback to older version and rewrite the computer shader

grand cloak
latent edge
candid laurel
#

@grand cloak keep us updated

grand cloak
#

threw away OpenGL and swapped to Vulkan API

#

also im gonna drop support for path tracing since its computionally very expensive and only people with RTX cards would have great compile times

edgy pond
#

okay

grand cloak
#

Partially implemented prop_static

#

prop_dynamics isnt handled (as far as i know) by the VRAD so these are untouched

#

the XenorRAD is now fully utilizing Vulkan Graphics API altough it needs a bit more care since Windows TDR doesnt like it (it falsely identifies it)

candid laurel
jagged tusk
grand cloak
#

Added ETA approximation when the map compiliation will be finished in each batch dispatch

daring hound
#

how does this compare to vrad++

buoyant tapir
#

vrad++ is just some fixes ontop of vrad isnt it

grand cloak
#

VRAD on steroids

#

and using path tracing to calculate global illumination

#

based on that article

grand cloak
#

instead of 30 minutes of waiting to compile map its done under 30 seconds

grand cloak
#

i want to enter map contest later with my vrad

edgy pond
#

nice

grand cloak
#

I have decided to put this project to halt and instead directly improve and gpu accelerate vrad from source sdk and improve vbsp and vvis.

#

I will make another thread in waywo once I will have a ready to install version of vrad for public testing.

slow lantern
#

can i have mor rooms on darkrp_downtown_tits with this

grand cloak
#

i already have my own version of luajit where i introduced preprocessing statements and other modifications

lilac mason
#

but yeah adding lua into tools is POG

grand cloak
scarlet pier
#

That's a great idea but rn ur vrad makes funky gi, you should make you own discord server for the project.

Idea is great but as any project it needs a lot of work done before release.(I started similar proj myself but it uses path tracing for baking, I won't finish it any time soon tho.)