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.
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.