|
From: Keith W. <kw...@cs...> - 2004-06-18 19:59:46
|
On Fri, 18 Jun 2004, James W. Walker wrote: > Keith Wiley <kw...@cs...> > > > 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? > ... > >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? > > The TriMesh data structure has an attribute set, which may contain a > texture shader, which in turn contains a texture object. Depending > on your purposes, different objects might have the same attribute > set, or different attribute sets but the same texture shader, or > different texture shaders but the same texture object. Hmmm, okay, so you're not referring to the vertex or triangle attributes but the attributes of the entire trimesh, called triMeshAttributeSet. I'll look at that. 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 ________________________________________________________________________ |