View Full Version : Texture with Tesselated Object

11-28-2005, 05:46 AM
I have a student who is wanting to apply a texture to an object that has a cut-out. We have used tesselators to cut out portions of an object, but have not found an example of applying a texture to an object and then cutting out part of the object. The intended application is to have blocks with windows in them for part of a castle wall. Any suggestions or samples will be appreciated.

11-28-2005, 09:44 PM
basic texturing handles the "whole in the wall" scenario, irrespective of geometry. just generate your texture coordinates to repeat, or "tile", over the areas of interest. have a peek at opengl's automagic texcoord generation functionality, which is described in the redbook, for example.

happy holidays,