Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

mikeman

Software renderer&interpolation

This topic is 5213 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 started to write a software renderes,but I have stumbled across a problem:interpolating texture coords.Let''s say we have a triangle.What I did until now is: 1)turn it into a 2D shape 2)interpolate the texcoords along the lines that constist the triangle. Then,of course,I use scan lines to fill the triangle and interpolate the coords in the x axis. I have a problem with (1).I interpolate the coords along a 2D line and this gives me wrong perspective results.But I don''t see how I can do interpolation along a 3D line.

Share this post


Link to post
Share on other sites
Advertisement
Nevermind,I found some excellent articles in http://www.d6.com/users/checker/misctech.htm that descive perspective texture mapping.They were mentioned in another thread about software rendering.

Share this post


Link to post
Share on other sites

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