Description |
In computer graphics, a texture is an image that is overlaid on a triangle when the object is rendered. Textures allow for objects to have more complicated appearances than just a single color across the triangle. Usually when a triangle is stretched, the texture stretches uniformly with it. However, when rendering certain objects, such as a lizard with spikes and scales, the uniform stretch of the texture is undesirable because it breaks the illusion of the model. Therefore, the goal of this project is to develop a method to stretch a texture variably across a triangle as the triangle's dimensions are changed. We first propose a method which computes texture stretching according to a linear model. Due to limitations in this model when applied to two dimensions, we propose an alternative model which is designed to preserve two dimensional geometry. We describe the rationale and algorithms defining each model. We analyze the behavior, overall effectiveness, and computational complexity of each model with a variety of examples. |