Jump to content
  • Advertisement
Sign in to follow this  

OpenGL Software rasterizer - Texture Matrix

This topic is 3934 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 have implemented a very basic sw rasterizer (affine & perspective texture mapping) using fixed point arithmetic. Next I need to add support for texture tiling. With OpenGl, this is achieved using the texture matrix. Currently I use .8 fixed point format for storing the texture coordinates. The intermediate results of the fixed point arithmetic are stored in 32 bits. For tiling to work, the texture coordinates could have values outside the [0, 1] range - this would lead to more overflow possibilities. How should I go about implementing texture tiling? Thanks in advance.

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!