atsakir
09-07-2008 10:20:14
Hi all, I know that not many here have experience with cloth objects and even Betajaen has forgotten most of the things regarding cloths, however I need to ask none the less.
Here's the problem. Creating any type of body other than cloth, deleting it from the scene and reloading it again right away has no problem whatsoever.
On the other hand when I try to do that with multiple cloth objects (since no scaling of a cloth object is possible once the cloth simulation starts) and I delete my cloth objects and then load the same cloths with different scale I get various results. Sometimes the loading works ok, sometimes the system gives me a hardware buffer error both with the DX and OpenGl renderers, sometimes some parts will load and some won't.
My guess is that sometimes the unloading hasn't really cleared all cloth parameters (mesh, vertex buffer etc.) before trying to load the same object again so there is a name clash or the vertex buffer is still locked or in unstable state.
How can I make sure that all cloth objects have been unloaded before I try to re-load them? I try to introduce a delay but although it improved behavour somewhat it is not fulproof either
Here's the problem. Creating any type of body other than cloth, deleting it from the scene and reloading it again right away has no problem whatsoever.
On the other hand when I try to do that with multiple cloth objects (since no scaling of a cloth object is possible once the cloth simulation starts) and I delete my cloth objects and then load the same cloths with different scale I get various results. Sometimes the loading works ok, sometimes the system gives me a hardware buffer error both with the DX and OpenGl renderers, sometimes some parts will load and some won't.
My guess is that sometimes the unloading hasn't really cleared all cloth parameters (mesh, vertex buffer etc.) before trying to load the same object again so there is a name clash or the vertex buffer is still locked or in unstable state.
How can I make sure that all cloth objects have been unloaded before I try to re-load them? I try to introduce a delay but although it improved behavour somewhat it is not fulproof either