Jump to content
  • Advertisement
  • entries
    316
  • comments
    485
  • views
    323895

Parallax Occlusion Mapping revisited

Sign in to follow this  
Jason Z

375 views

Jack Hoxley recently started a thread on parallax occlusion mapping, asking if the algorithm is fundamentally flawed or not. I have to say it is not, and posted several additions to the algorithm for ensuring that the image does not get clipped. Here is what needs to be done:

1) Clip any pixels that have their texture coordinates extend beyond the heightmap boundary (texture coordinates cannot go outside [0,1], or whatever other range you want). This can also be specified per-vertex for added adjustability.

2) Render a box instead of just a plane. This will allow the front edge of the height map to be rendered as well.

Here are the results of the first part:


I think it turned out pretty good...
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!