Hi, i want to use filament
which is a 3d engine used in mobile end to recover the cloth simulation result. However after i finally get the simulation vertices position with calling GetCurrentSimulationData_AnyThread()
api, i found that there are some sync issues between the human skinned position and cloth simulation data.
Here is the context:
I setup a timer
to get the cloth simulation data periodically and call GetCurrentSimulationData_AnyThread()
api during the timer callback. However the simulation data is often empty so i use a while-true-loop to call the api i mentioned above to fetch cloth simulation data. After i fetch the cloth data, i call the ComputeSkinnedPositions
api to fetch the skeletal human’s skinned position. But the cloth data seems a little behind human data in the time axis. If i make the human jog animation fixed at some special time, the cloth and human data would be consistent.
Screenshot:
Here is the unfitted rendering effect as below: