6 registered members (TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible),
18,855
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: SSAO development thread
[Re: Hummel]
#388512
12/03/11 22:51
12/03/11 22:51
|
Joined: Jul 2001
Posts: 6,904
HeelX
OP
Senior Expert
|
OP
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
Hummel, today I really considered to use normals derived by the same exact method you mentioned instead of sampling the gouraud shaded ones, but as you already said, this leads to hard normals. But if I tweak the blur, it could work for the upscaling.
Question: if I bilinearily downsample the depth image and create worldspace normals from the downsampled perpixel depth values, do I get the same normals if I would have create the perpixel normals from the hires depth values which I would then have downsampled, too???
That would be great, because I could save lots of memory then (and processing time, pushing it down the very long throat of your videocard... gag!).
Last edited by HeelX; 12/03/11 22:52.
|
|
|
Re: SSAO development thread
[Re: Hummel]
#388513
12/03/11 22:53
12/03/11 22:53
|
Joined: Jul 2001
Posts: 6,904
HeelX
OP
Senior Expert
|
OP
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
Nevertheless... @Rei: You can create hard normals directly in the pixel shader like so: ... This doesn't work with my solution at the moment, because I don't offer the opportunity to deliver a custom normal map of the view 
|
|
|
Re: SSAO development thread
[Re: HeelX]
#388515
12/03/11 23:05
12/03/11 23:05
|
Joined: Mar 2006
Posts: 2,252
Hummel
Expert
|
Expert
Joined: Mar 2006
Posts: 2,252
|
Question: if I bilinearily downsample the depth image and create worldspace normals from the downsampled perpixel depth values, do I get the same normals if I would have create the perpixel normals from the hires depth values which I would then have downsampled, too??? If you would re-normalize the downsampled normals they should be the same you would get when creating them from downsampled depth values. But I´m not 100% sure. It´s worth a try at least. But consider, in a post-processing step you´ll get wrong normals along 'sharp' edges if you dont handle that case separatly.
|
|
|
Re: SSAO development thread
[Re: Hummel]
#388516
12/03/11 23:11
12/03/11 23:11
|
Joined: Jul 2001
Posts: 6,904
HeelX
OP
Senior Expert
|
OP
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
But consider, in a post-processing step you´ll get wrong normals along 'sharp' edges if you dont handle that case separatly. I know. For that I already use my upsampling stage. If the derivatives over my downsampled depths are producing correct normals as if I would have downsampled the correct normals from hires, I should get visually the same image then.
|
|
|
|