Jump to content
  • Advertisement
Sign in to follow this  
Benjamin Loisch

Clipping uv texture coordinates in homogeneous space

This topic is 1345 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

Hello! I am building a software rasterizer from scratch. I've decided to do clipping after multiplying the verticies by the 

projection matrix (so clipping in homogeneous space). Now, I would also like to do texturing. I've looked at perspective correct texturing,

but a question comes to my mind. You apply UV coordinates to a set of verticies in object space correct? Then you just pass these

along till you get to the perspective correct texture mapping part. But, what about when you clip a set a verticies against a plane?

Don't you have to linearly interpolate the uv coordinates when clipping those verticies so as to not let the final result look like a more and

more squished texture against the side of the screen? Thanks. 

Share this post

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

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!