|
From: Keith W. <kw...@cs...> - 2004-06-18 19:27:26
|
Here's a seemingly simple question. How do I make two separate objects, each with their own trimeshes and UV coordinates point at the same texture so the texture doesn't need to be stored in VRAM twice? As an example imagine that I have a variety of rocks, for the sake of adding...variety...to the world, but they can all use the same texture. The trimeshdata structure doesn't seem to have a pointer in it that points to a texture object, so how is the connection between a trimesh and its texture even made in the first place? These kinds of things are sort of "opaque" in that opening 3DMF files is done with internal function calls, such as Q3File_ReadObject, so there's no clear way to know what happens under the hood, how textures are connected to their associated trimeshes for example. Thanks. ________________________________________________________________________ Keith Wiley kw...@cs... http://www.unm.edu/~keithw http://www.mp3.com/KeithWiley "Yet mark his perfect self-contentment, and hence learn his lesson, that to be self-contented is to be vile and ignorant, and that to aspire is better than to be blindly and impotently happy." -- Edwin A. Abbott, Flatland ________________________________________________________________________ |