NVIDIAGameWorks / NvCloth

300 stars 53 forks source link

Cloth not moving #45

Closed Dzhange closed 5 years ago

Dzhange commented 5 years ago

I have successfully initialized factory, fabric, cloth, solver, and set properties according to the User Guide, the cloth can be rendered by my own renderer, but when I call the function Solver->simulateChunk(idx), the position of the cloth doesn't change and sometimes became Nan, I wonder what mistake could I possibly make.

mtamis-NV commented 5 years ago

I don’t really have enough information to know what the problem is. Which solver are you using (CPU, CUDA, DX11)? Are you using a fixed time step, how big? How many vertices does your cloth have? Are the constraint stiffnesses set to a value between 0 and 1 (lowering this might be helpful).

Dzhange commented 5 years ago

it turns out to be my wrong implementation... sorry for bother.