|
From: James W. W. <ja...@wr...> - 2004-07-28 22:39:33
|
Keith Wiley <kw...@cs...> wrote: >The QD3D manual says that if the new object of Q3Object_Duplicate is a >shared object, then is ref count is set to one. Now, Q3Object_Duplicate >is being called on the TriMesh.triMeshAttributeSet, not the shader per se. >I assume shaders are shared, but I assume that trimesh attributes sets are >not, so I'm unclear as to whether duplicating a trimesh a zillion times >fills RAM up with countless copies of an identical shader and a fairly >sizable texture bitmap...which is obviously not what I want. Duplicating Quesa objects is recursive. When you duplicate an attribute set, you duplicate the shader attribute it contains, and you duplicate the texture object that contains. -- James W. Walker, ScriptPerfection Enterprises, Inc. <http://www.write-brain.com/> |