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

Perspective Interpolation Finished

Sign in to follow this  
Jason Z

146 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
×

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!