0
\$\begingroup\$

Here is an illustration describing what I'm trying to do...

Here is an illustration describing what I'm trying to do...

\$\endgroup\$
0
\$\begingroup\$

Have a look into parallax mapping. This technique takes given geometry and a normal map to redefine the position that a given texel is displayed at. It does that by calculating an offset from the pixel's position using the normal map, just as you are trying to do. I did not yet implement parallax mapping in my engine yet, so I cannot give you a fitting solution, but maybe parallax mapping's math will give you an idea of what to do.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ Thank you so much for the quick reply! the parallax way works :) \$\endgroup\$ – Alienizer Oct 12 '16 at 20:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.