sascha.schneider Posted April 17, 2020 Share Posted April 17, 2020 Hello, We have played with the ClothSimulation and the PhysicalWind. The following questions came up so far: How to synchronize the wind across multiple computers ? referring to a similar discussion How to achieve a deterministic/synchronized state for the physic-bodies inside the simulation? Is there something similar to setSyncMode takeSyncData applySyncData Thank you in advance, Regards, Sascha Link to comment
silent Posted April 19, 2020 Share Posted April 19, 2020 Hi Sascha, What kind of task you are trying to achieve? Simulate windsock or something like that? It will be much faster and easier to do so with regular ObjectMeshSkinned (and it's relatively easy to synchronize it instead of physics). Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
sascha.schneider Posted April 20, 2020 Author Share Posted April 20, 2020 On 4/19/2020 at 4:38 AM, silent said: Hi Sascha, What kind of task you are trying to achieve? Simulate windsock or something like that? It will be much faster and easier to do so with regular ObjectMeshSkinned (and it's relatively easy to synchronize it instead of physics). Thanks! Hello Silent, yes one of the first tasks was the simulation of windsocks. Thanks for the hint to ObjectMeshSkinned, this could be a solution for this. I take it as a possible alternative. Back to the initial question: How would an approach with the synchronization of physics look like? Is it even possible? Thanks, Sascha Link to comment
silent Posted April 20, 2020 Share Posted April 20, 2020 Generally speaking making physics run deterministically across multiple slaves is not really possible. The main approach would be to synchronize objects changes after physics executed on master (no physics calculations should be ever run on slaves). 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
sascha.schneider Posted April 21, 2020 Author Share Posted April 21, 2020 Hello silent, I think I'm getting more of a feel for which direction to go. Thanks a lot. Another question, how would you synchronize a ClothObject? Is it possible to access data here and transfer it to others? Or could it be a valid approach to apply time-triggered physical impulses to all devices synchronized over time? Greetings and thanks again Link to comment
silent Posted April 21, 2020 Share Posted April 21, 2020 If you are using ObjectMeshDynamic you can synchronize Vertex / Index arrays via (get/setVertexArray and get/setIndicesArray). The only possible issue is there might be a lot of data to transfer per frame, so you need to test it first. Maybe some approach to calculate and send only diff between two state, use compression and so on. 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts