Facepunch / garrysmod-requests

Feature requests for Garry's Mod
84 stars 24 forks source link

Parallax Occlusion Mapping #972

Open cannon opened 7 years ago

cannon commented 7 years ago

https://www.youtube.com/watch?v=PFHD2le0PoM

cannon commented 7 years ago

It's parallax occlusion mapping, not the same thing as that issue.

Kefta commented 6 years ago

Relevant sources:

cannon commented 6 years ago

That POM code is pretty basic. It should: Do a binary search after the initial stepwise search. Apply a random first step offset to noise out the "slicing" artifact. Optionally output an adjusted fragment depth so POM surfaces can actually mesh with geometry. Stepwise search can be optimized by sampling multiple spots along the ray simultaneously then checking them all, so execution doesn't have to be suspended between each step (the HLSL compiler might do that automatically though)

Also note that POM is pretty expensive in general, and should not be run on "low" "effect detail" or whatever it's called

http://www.diva-portal.org/smash/get/diva2:831762/FULLTEXT01.pdf

Just make it so we can write our own pixel shaders :)

xoticdev commented 3 years ago

@Kefta Thanks for correcting my mistake.

Yeah, I definitely agree we should have parallax mapping! It's not really important, but it would give verity to servers.