|
From: James W. W. <ja...@wr...> - 2004-06-18 19:47:59
|
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. -- James W. Walker, ScriptPerfection Enterprises, Inc. <http://www.write-brain.com/> |