Can I attach two cloths

Vineeth@nxOgre

05-04-2008 07:27:27

Thank you


Also I am not able to see in remote debugger the cloth

This is my code
NxOgre::ClothParams cp("mesh-material: lambert3 , density: 1.0, thickness: 0.5,stretching-stiffness: 1,blending-stiffness:10000,friction: 0.25");
NxOgre::ClothParams cp1("mesh-material: nx.flag , density: 1.0, thickness: 0.5,stretching-stiffness: 1,blending-stiffness:10000,friction: 0.25");


cp.flags |= NX_CLF_BENDING;
cp1.flags|= NX_CLF_BENDING;
cp.flags |= NX_CLF_COLLISION_TWOWAY;
cp1.flags |= NX_CLF_COLLISION_TWOWAY;
cp.flags |=~NX_CLF_DISABLE_COLLISION;
cp1.flags |=~NX_CLF_DISABLE_COLLISION;

cloth = mScene->createCloth("cloth","pSphere1.mesh",NxOgre::Pose(Vector3(0,3,0)), cp);
cloth1=mScene->createCloth("cloth1","pSphere2.mesh",NxOgre::Pose(Vector3(0,3,0)), cp1);
cloth1->attachToCollidingShapes(NX_CLOTH_ATTACHMENT_TWOWAY || NX_CLOTH_ATTACHMENT_TEARABLE );





if i remove the cloth code I get to see the remote debugger .
If i add the cloth code and do not open remote debugger in tthe background the program works fine



.....but if i add the cloth code and open remote debugger i get the following error

Unhandled exception at 0x005ed53a (msvcr80d.dll) in Cakebox_debug.exe: 0xC0000005: Access violation reading location 0x03b54000.
CALL STACK
msvcr80d.dll!memcpy(unsigned char * dst=0x04071240, unsigned char * src=0x03b52f28, unsigned long count=7944) Line 188 Asm

RenderSystem_Direct3D9_d.dll!Ogre::D3D9HardwareVertexBuffer::writeData(unsigned int offset=0, unsigned int length=7944, const void * pSource=0x03b52f28, bool discardWholeBuffer=true) Line 118 + 0x11 bytes C++

NxOgre_d.dll!NxOgre::Cloth::__createMesh(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & name="cloth") Line 836 + 0x55 bytes C++

NxOgre_d.dll!NxOgre::Cloth::__createCloth(NxOgre::ClothParams params={...}) Line 279 C++