Jump to content
  • Advertisement
Sign in to follow this  
grillsnusk

Fun with barycentric coordinates

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

Hey! I have a problem I would like some help on solving... For my little project, I don't have access to any fancy hardware and/or shaders or anything like that. I need to perform texturing and stuff like that on my own. My current implementation for finding out the barycentric coordinates for a triangle, and then to apply the values as interpolation for the texture coordinates to that triangle is a bit slow.. I calculate the barycentric coordinates "from scratch" for every pixel inside the current triangle I want to process. But some sources indicate that the bary.coords. can be computed incrementally (using only additions after the initial setup (i assume)). However, I can't really figure out how that should be done! I would much appreciate any help or tips I can get! I've looked around the net for answers, but I can't find anything that helps this particular matter :/ Thanks in advance! /Magnus

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!