Garry's Mod

Garry's Mod

Screen Space Ambient Occlusion (SSAO shader)
121 Comments
季雨K1ΛMΞ 16 hours ago 
sir, thx for ur hard work
Evgeny Akabenko  [author] 20 hours ago 
MW base update soon. (fixed compatibility with depth buffer).

As I said, the problem was not in SSAO, but in the way MW weapons work with the depth buffer. I looked at the code, found the problem, fixed it, and sent it to the MW base developer.

I say it again: there is no need to fix SSAO. I'm so fucking sick of it:steamfacepalm:
Evgeny Akabenko  [author] 21 Jul @ 6:54am 
I may seem rude, but due to its adaptation to MW weapons, the code may turn out to be a hack. It works as it should now. Without fps loss. Without deformities. As it should. It is not the best decision to insert hacks into SSAO for the sake of MW weapons. At least, it seems so to me.

We removed the second renderView, found a way to improve the gmod depth buffer. Titanic work was done, but the fact that the MW weapon is not written to the depth buffer is not a problem of the depth buffer.

There is an option to change the render hook for MW weapons, but why should I interfere with the work of the weapon base? If it works as intended by the author
Evgeny Akabenko  [author] 21 Jul @ 6:49am 
So I should do a check for MW weapons, then change the MW render hooks so that I don't have to re-download the MW addon? Understand these guns, and how they work, and why they aren't rendered to the depth buffer?

As far as I know, MW weapons are rendered manually to use GESTURE animations. Personally, I'm not a MW weapon developer. I don't know how to work with it, I have plenty of other tasks. Ask the MW developer to adapt his weapon to GMOD's depth buffer (not SSAO, but render.GetResolvedFullFrameDepth() - this is GMOD's depth buffer).
Evgeny Akabenko  [author] 21 Jul @ 6:45am 
Why should I add support for MW weapons if they are not written to the standard depth buffer? For what purpose?

If someone wants to do this, let them adapt MW for SSAO. I am not obliged to work on the MW base if it is not written to the depth buffer.
Evgeny Akabenko  [author] 21 Jul @ 6:43am 
This addon is not an addition to MW weapons
yoknowhat 20 Jul @ 12:26pm 
Thats a weird approach.... cause we all gotta prefer the mw pack over a hacky (decent but hacky) ssao implementation. A workaround could favour all parties but man.... you did everything right, right?
Evgeny Akabenko  [author] 19 Jul @ 3:25am 
So the MW base is special and requires a special solution to support it. But that's all my authority is. I'm not going to make a fix specifically for something.

:missing: My addon is not an addition to MW weapons, so I specifically adapted it to the MW base. :missing: I did everything right.
Firestorm 15 Jul @ 3:00am 
Even with that solution and typed that command in console, the weapon itself is still invisible
Evgeny Akabenko  [author] 15 Jul @ 1:02am 
Not works with MW base???? Yes! I have a solution!
USE IT: pp_ssao_translucent 1
:steammocking::steammocking::dustpan::csgoct::melon:
Firestorm 13 Jul @ 5:54am 
Still does not work with MW base
Zombiekill 12 Jul @ 1:14pm 
I like the idea of Shaders and you are the only person that currently does shader stuff xd if you are out of ideas i have an idea make realistic lightning with shaders would be cool. Great work!
季雨K1ΛMΞ 12 Jul @ 10:01am 
still not work with MWbase
Kregg 12 Jul @ 5:44am 
nice!
Evgeny Akabenko  [author] 11 Jul @ 11:43am 
UPDATE!!!
NEW PARAM: TRANSLUCENT FIX. IT CHANGE RENDER HOOK OF SSAO. CHECK IT
:melon::melon::csgoct::csgoct::steammocking::steammocking::steamthumbsup::steamthis::steamthis:
小天天Sara 11 Jul @ 12:58am 
still not work with MWbase
Xtract 31.4 9 Jul @ 9:45pm 
@zakattack Is this about my problem?
zakattack 9 Jul @ 8:22pm 
If it doesn't work try these 2 things:

1: Going to your Video Settings>Advanced and settings and turn antialiasing to none

2: Going to the console and typing r_3dsky 0
Xtract 31.4 9 Jul @ 1:01pm 
Hey there. When using your mod, shaky flashlight and chemlight (two different mods using vmanip) appear invisible in hand
Noire 7 Jul @ 1:56pm 
it shows the shadows through models, making them look translucent
Firestorm 6 Jul @ 10:46am 
The weapons/guns just don't appear (or they do but they just don't appear at all until you go into customization menu), you can still their shadow but the model itself doesn't appear at all
Evgeny Akabenko  [author] 6 Jul @ 9:38am 
@Firestorm no effects? or bug with mw guns and ssao?
Evgeny Akabenko  [author] 6 Jul @ 9:37am 
pp_ssao_luminfluence removed
Judge 6 Jul @ 7:54am 
pp_ssao_luminfluence - unknown command
Sincopa 6 Jul @ 5:37am 
great!
Firestorm 6 Jul @ 4:28am 
Can confirm you that this still doesn't work with MW weapons
Evgeny Akabenko  [author] 6 Jul @ 12:34am 
i think so
Kregg 5 Jul @ 9:11am 
Does the ads DOF for Arc9 create graphical defects?
Evgeny Akabenko  [author] 5 Jul @ 6:28am 
RU:
SSAO плохо работает с некоторыми эффектами DOF в оружейных базах (если они сделаны моделью - плейном. Так как эта модель будет записываться в буфер глубины и создавать дефекты в SSAO .

Если есть DOF в оружейке - попробуйте его отключить. Графический артефакт должен пропасть.

EN:
SSAO does not work well with some DOF effects in weapon bases (if they made it a plane model. Since this model will be written to the output buffer and create defects in SSAO.

If there is a DOF in the weapon - create its feature. The graphic document should disappear.
Kregg 5 Jul @ 2:42am 
Epic
Evgeny Akabenko  [author] 4 Jul @ 7:16pm 
Fixed
Kregg 4 Jul @ 3:26pm 
I'm looking forward to trying the new update once I'm able to. Has the AO on transparant textures and decals been patched?
86_vbV 4 Jul @ 11:23am 
@Evgeny Akabenko
Я думал, что успею семью завести и HL3 дождаться. Спасибо за обновление.
Evgeny Akabenko  [author] 4 Jul @ 9:29am 
РЕБЯТА СЛЕДУЮЩЕЕ ОБНОВЛЕНИЕ ЧЕРЕЗ ПОЛ ГОДА!!!!!!
Evgeny Akabenko  [author] 4 Jul @ 9:22am 
Господа проверьте MW пушки
Evgeny Akabenko  [author] 4 Jul @ 9:19am 
@MeiLudex AU AU A UAU AU @MeiLudex @MeiLudex @MeiLudex @MeiLudex @MeiLudex @MeiLudex @MeiLudex @MeiLudex @MeiLudex @MeiLudex @MeiLudex @MeiLudex @MeiLudex
Evgeny Akabenko  [author] 4 Jul @ 8:20am 
:BEBEBEBE::BEBEBEBE::BEBEBEBE::BEBEBEBE::BEBEBEBE::BEBEBEBE::BEBEBEBE::BEBEBEBE:
Evgeny Akabenko  [author] 4 Jul @ 8:14am 
TARKOV GUNS OK. CHECK MW GUNS :csgoct::csgoct::melon::melon::steammocking::steamhappy:
Evgeny Akabenko  [author] 4 Jul @ 8:09am 
@MeiLudex check it
MeiLudex 4 Jul @ 6:18am 
Will this ever be updated to work with MWB?
Evgeny Akabenko  [author] 4 Jul @ 5:24am 
FIXED OPTIMIZATION, ALPHA CHANNEL SUPPORT ADDED. SSAO SETTINGS ADDED. IMPROVED DEPTH BUFFER.
Dank 24 Jun @ 2:04pm 
Maybe if the depth buffer wasn't so broken...
zakattack 10 Jun @ 1:45pm 
Is it just me or it only makes my game look a slight bit darker, also theres no depth
Енот Хак 2 Jun @ 7:30am 
Fix invisible weapons pls?
аБИБАс 1 Jun @ 1:54pm 
когда фиксами займешься?
Scout (Jeremy) 24 May @ 8:32pm 
Depth Buffer Is A Litteral Horror Game When Enabled..
LegoMaster80 22 May @ 11:29pm 
screen space shadows when?
Link Freeman 18 May @ 4:41am 
time to make Gmod look like SFM with this SSAO shader....
Guy 9 May @ 3:48pm 
my hand is transparent!
netchepolish 18 Apr @ 7:28pm 
epic*