[Papervision3D] removing MaterialList references for DAE
valhead at gmail.com
Tue Aug 26 14:14:57 PDT 2008
I'm attempting to remove a model (DAE) completely to free up memory.
Basically, I'm building slightly diferent versions of the same item over nad
over (same model, different materials) but only one needs to be visible at
once. I'd like the non-visible ones to be completely removed to free up
I can't seem to get this model be removed completely from memory according
to the Flex Profiler. I think I've narrowed it down to the MaterialList
being the problem as I've been able to remove a different model which had no
materials in a similar way.
What's the proper method of removing all references to BitmapMaterials and
the MaterialList for a model?
Here's what I'm currently doing, but it's not working as stated above:
dae_materialList.getMaterialByName("name1").interactive = false;
podMaterials = null;
mydae.COLLADA = null;
mydae.filename = null;
mydae = null;
(I'm using rev 691)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Papervision3D