Jump to content
  • Advertisement
Sign in to follow this  
richardmonette

Near plane clipping in canonical view volume?

This topic is 3034 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been tinkering off and on with my software rasterizer looking at different ways of handling clipping. Currently my pipeline works by taking my object/local space vertices from my model, multiplying them by a worldViewProjection matrix which I create, then I take my vertices and divide them by my w value which brings them into my canonical view volume (also do the same for the UVs for perspective correction and save the inv z for retrieving them later). After all this I then clip the triangles to the sides of my CVV. The clipping is working correctly the the top, left, right and bottom. However, I have been having trouble getting my vertices clipped correctly against the near plane such that I dont end up with divide by zero errors when I go to rasterize. Is there some big logical problem with the route I am taking, or perhaps I just need to go back and double check my calculations on the near plane?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • 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!