Here we discuss two techniques for improving surface shapes beyond normal mapping. Both techniques use a height map to more clearly define the shape of the surface. Bump Offset mapping adjusts the UV coordinates of the surface based on the view angle and depending on the height map. It's a fairly cheap technique, but doesn't work well at glancing angles. Parallax Occlusion Mapping traces rays to recreate the surface shape. It's a more robust technique that works at glancing angles - but it can also be significantly more expensive. This video shows how to set up both techniques.
Download the textures used in this video:
(To download these assets, please right-click on the link and choose "save link as...", then select a location for the file. If Chrome tells you it can's download the file securely, click the up arrow icon and select "Keep")
https://www.bencloward.com/youtube/cobblestones_d.tga
https://www.bencloward.com/youtube/cobblestones_n.tga
https://www.bencloward.com/youtube/cobblestones_asmr.tga
https://www.bencloward.com/youtube/cobblestones_h1.tga
------------------------------
Learn more!!
Other videos like this one:
https://youtu.be/ALXqsf7w6ls
https://www.youtube.com/watch?v=70EzAb4CrmA
https://www.youtube.com/watch?v=P-5Qzi-ljsc
https://www.youtube.com/watch?v=hJ8N0U07b6E
https://www.youtube.com/watch?v=2hV1ie1nadc
https://www.youtube.com/watch?v=jUghnM2qy9M
https://www.youtube.com/watch?v=0hoT8fJJgoU
https://www.youtube.com/watch?v=RVrgzCeAv5I
https://www.youtube.com/watch?v=P8Ffmu5Cll4
Web Resources
https://en.wikipedia.org/wiki/Parallax_occlusion_mapping
https://wiki.unrealengine.com/Parallax_Occlusion_Mapping
https://www.gamedev.net/articles/programming/graphics/a-closer-look-at-parallax-occlusion-mapping-r3262/
http://web.engr.oregonstate.edu/~mjb/cs519/Projects/Papers/Parallax_Occlusion_Mapping.pdf
https://docs.unrealengine.com/en-US/Engine/Rendering/Materials/HowTo/BumpOffset/index.html
Shader Book Recommendations
https://www.bencloward.com/resources_books.shtml
------------------------------
Learn to write shaders in HLSL:
https://www.youtube.com/playlist?list=PL78XDi0TS4lEDHfahG4ddRwZ3AUrOIYcq
https://www.youtube.com/playlist?list=PL78XDi0TS4lE772rZflLkFe-WdhYEV4WE
https://www.youtube.com/playlist?list=PL78XDi0TS4lE6UnUO9OTC5M1Wo3bJLDe9
------------------------------
Theme Music
Peace in the Circuitry - Glitch Hop
http://teknoaxe.com/Link_Code_3.php?q=1526
Background Music
Speo - Horizon
youtu.be/EXINad-stY0