• Advertisement
  • entries
    316
  • comments
    485
  • views
    323377

Perspective Interpolation Finished

Sign in to follow this  

99 views

Perspective Interpolation Finished
As promised, the perspective interpolation has been added. It took a little bit of reworking my rasterizer code, but it is up and running beautifully now. Here are the results:



It is quite a difference from the linear interpolation that I posted last time, shown here for comparison:



The perspective interpolation essentially takes the homogenous coordinates, and interpolates them based on the w-coordinates after the projection has been applied to the vertices (i.e. after the vertex shader). It must be done before the w-divide, or else the perspective interpolation yields the results of linear interpolation. It is really quite an interesting process - I would recommend looking into it if you are interested.

With perspective interpolation out of the way, next up is z-buffering. More to come on that next time...
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