Archive 17/01/2023.

Iterative Parallax Mapping Shader

krstefan42

Hi there. I’ve been working on a parallax mapping shader, using the iterative parallax mapping method. The number of iterations is currently a dynamic parameter, but for best performance I’ll also release some versions with a fixed number of iterations. It also has a customizable offset-limiting factor, which lets you reduce texture swimmimg at low surface viewing angles, at the cost of reducing the strength of the effect.

Since it’s just multiple iterations of classic parallax mapping, and not parallax occlusion mapping or any newer techniques, that means that it technically doesn’t have self-occlusion, it just stretches and scrunches the texture in different places. But it’s fast and looks good. You can get good results with only 2 iterations, which means only 2 additional texture samples are needed.

The actual shader will be up soon, I have some things I need to finish. For now, here are some screenshots. First image is without parallax, second is with.

szamq

Awesome, looks cool.

Mike

Stunning! :stuck_out_tongue:

GoogleBot42

Nice! :smiley: That looks great!

weitjong

Eye popping.

krstefan42

You can now download the shader here: http://discourse.urho3d.io/t/parallax-mapping-opengl-only-for-now/1158/2
No DirectX support yet, unfortunately.

rasteron

This is a cool shader krstefan42. The only problem that I am having was running it on Android build and displaying a black terrain. Is this GL ES compatible? :wink: