Return to main page

Parallax-mapping

In this demo, I improve rendering of per pixel shaded surface by using parallax mapping with offset limiting. This effect allow a better perception of surface bumpiness by simply using an additionnal heightmap!

I use offset limiting to avoid infinite distortion of the texture. Furthermore, it has the advantage of reduce the number of instruction to achieve the effect : only two instructions are needed!

Parallax-mapping show its limit when used with high frequencies heightmap : some color artifacts and bad distortions could appear. To avoid these, one could use a better surface algorithm like relief-mapping.

Download source and executable

Normal rendering
With parallax-mapping

 

Normal rendering
With parallax-mapping

Return to main page