multiple independent simulations.

Post Reply
Berezovsky
Posts: 14
Joined: Tue Oct 14, 2014 9:32 pm

multiple independent simulations.

Post by Berezovsky »

I come here to this portion of the forum in desperation. Also because my problem is not related to regular run-of-the-mill "end user" usage problems of the SDK.

I would like to know why bullet simulations, even when declared as independent classes, somehow manage to cross-talk to each other, particularly in regards to the usage of ::clientresetscene() and ::initPhysics(). No amounts of books or tutorials on Bullet Physics could ever answer this question. This is a backend problem requiring the advice of a developer of the SDK. Perhaps one of you visits this portion of the forum, I don't really know.

(1) If simulations are declared independently, and then the first one is initialized, run through simulation steps, stopped, exited, and cleaned out of the memory -- then any created simulations secondary to this process will crash with an "AABB out of bounds" error.

(2) If the simulations are declared independently, and then initialized, kept-alive in memory, then only the very last simulation will operate correctly. That is, only the last simulation that received an ::initPhysics() call will operate correctly.

These weird backend problems will have enormous impact on anyone who is trying to multithread separate concurrent simulations in the same program. Not multithread the same simulation, but multithread independent ones. There does not appear to be a clear method for making them genuinely independent.

Your thoughts..?
bone
Posts: 231
Joined: Tue Feb 20, 2007 4:56 pm

Re: multiple independent simulations.

Post by bone »

This section of the forum is for generic physics development, not Bullet-specific. If you haven't already, please post this question in the other section of the forum with regards to Bullet users.
Post Reply