Sign in to follow this  
grillsnusk

Fun with barycentric coordinates

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this