The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SSAO is inverted - light instead of shadows
Asthanius Offline
Junior Member

Posts: 1
Threads: 1
Joined: Oct 2019
Reputation: 0
#1
SSAO is inverted - light instead of shadows

I'm working in HPL3 and noticed that I get very strange lighting around the edges of certain objects in-game, which disappears when I turn SSAO off in the options. This obviously means the SSAO isn't working correctly, but I have no idea why.

This even causes things like, when I move a door, there's a band of light on the edge that moves with the door.

It's easiest to see the issue around the mirrors and in the corner on the left, where there's strange lighting that shouldn't exist.

I had someone much more knowledgeable in code take a look at shadersource.hpss, and they said the math for computing SSAO looks correct, so maybe it has to do with when it's applied?

Does anyone know how I can solve this issue?

[Image: Kox7Sjs.png]

NOTE: I've also attached my hpl.log, which does seem to mention SSAO errors.

EDIT:

Okay, so I found the .hpsl shader files and tried reversing some of the results (e.g. changing specific instances of "+" to "-", or "*" to "/"), which partially fixed the issue. Those lights I saw before disappeared, but now they're appearing where there used to be proper shadow.

[Image: z5tETGA.png]
[Image: 184LCj5.png]


Attached Files
.log   hpl.log (Size: 63.94 KB / Downloads: 169)
(This post was last modified: 10-03-2019, 08:46 PM by Asthanius.)
10-03-2019, 07:41 PM
Find


Messages In This Thread
SSAO is inverted - light instead of shadows - by Asthanius - 10-03-2019, 07:41 PM



Users browsing this thread: 1 Guest(s)