VDP-noclip / noclip

NOCLIP is an experimental game in which you “noclip” the environment to solve puzzles.
3 stars 1 forks source link

Post Processing Effects #46

Closed bottolo closed 1 year ago

bottolo commented 2 years ago

This is a reference guide to whoever wants to dive in this issue. I'm currently investigating but I'm afraid I'm not experienced enough to understand how to implement this.

There are multiple ways of handling post processing effects.

The more convenient method for our purposes is the one involving LintGammaGain, which can be accessed like this: GameObject -> Volume -> GlobalVolume (I would recommend calling it PostProcessingVolume). Click on the PostProcessingVolume and click on "New" on the side, where Profile resides. Then, click on Add Override and add whichever effect you like. To change brightness, I would use LintGammaGain, specifically the gamma value.

Whoever comes up with something, I'm all ears.

spig95 commented 2 years ago

I have tried to play around with your suggestion, but it did not work. In particular, when I play with "Lift, Gamma, Gain", it changes the effects on the scene (editor), but when I play nothing changes in the view. Maybe I missed a step, sorry if I can't help!

As a plan B, the only tutorial on how to adjust brightness which I found is this, which is complex but should work...

bottolo commented 2 years ago

As a plan B, the only tutorial on how to adjust brightness which I found is this, which is complex but should work...

I've already seen it, and there's one crucial problem when it comes to his solution. He uses a different rendering pipeline for the main camera... which seems to be the problem with how these effect should be implemented. Of course, what we're pursuing should be achieveable from the URP pipeline, but there are different parameters which differ from the ones in the HDRP pipeline he uses, hence the confusion in the implementation.

The fact is that Unity changed something about its pipeline a couple of years ago as I've seen. This invalidated some tutorials here and there, and therefore scattered eventual infos regarding this aspect.

I have tried to play around with your suggestion, but it did not work. In particular, when I play with "Lift, Gamma, Gain", it changes the effects on the scene (editor), but when I play nothing changes in the view. Maybe I missed a step, sorry if I can't help!

I don't know, the editor sees it but its parameters cannot be changed at runtime. Very confusing.

From today's research I've found this, a snippet which seems to implement something similar to what I've wanted to achieve.

bottolo commented 2 years ago

Furthermore, I've tried the latter while diving around. No chance.

bottolo commented 2 years ago

I've found a comment here saying that post processing is possible with a different pipeline, specifically the HDRP.

I'll look into that to see if it makes any difference and if it's possible to change this project's rendering pipeline.

TizioMaurizio commented 1 year ago

Is this still urgent in perspective of delivering a functioning demo? I'm setting to urgent what is absolutely necessary for the 3rd of December

bottolo commented 1 year ago

Is this still urgent in perspective of delivering a functioning demo? I'm setting to urgent what is absolutely necessary for the 3rd of December

As a matter of fact, it isn't. I've removed the urgent label.

TizioMaurizio commented 1 year ago

Is this still urgent in perspective of delivering a functioning demo? I'm setting to urgent what is absolutely necessary for the 3rd of December

As a matter of fact, it isn't. I've removed the urgent label.

anyway i saw them in action in a friend's project and they could be the key for impressive noclip's visuals, still swapping the textures has to be done first

bottolo commented 1 year ago

They're amazing tools to work with, but this pipeline doesn't seem to love working with post processing effects that easily...