Search found 65 matches
- Sun Sep 18, 2022 5:30 am
- Forum: General Bullet Physics Support and Feedback
- Topic: View Frustum Culling GLM & btDbvtBroadphase
- Replies: 0
- Views: 148171
View Frustum Culling GLM & btDbvtBroadphase
Used this post as a basis to hook into btDbvtBroadphase for View Frustum Culling: https://pybullet.org/Bullet/phpBB3/viewtopic.php?f=9&t=7575 Not sure if this is still accurate, but here's what I've come up with: Main stuct for btDbvt handling: struct DbvtBroadphaseFrustumCulling : btDbvt::IColl...
- Sun Sep 11, 2022 4:34 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: Synchronizing Client Server Physics
- Replies: 6
- Views: 22347
Re: Synchronizing Client Server Physics
Yeah my thought process is going towards something similar, server would be authoritative, sending updates at a dramatically slower rate than clients. Clients would be semi-authoritative in the sense that they were responsible for broadcasting out updates about objects they had ownership on. The iss...
- Sun Sep 11, 2022 8:01 am
- Forum: General Bullet Physics Support and Feedback
- Topic: Synchronizing Client Server Physics
- Replies: 6
- Views: 22347
Re: Synchronizing Client Server Physics
Well I got the simulation to stop exploding. Was an issue with my net library sending garbage/corrupted packets. So now it's just down to smoothing/interpolation. https://youtu.be/gdiuOsqK8yQ So I'm curious about these functions: _RigidBody->setInterpolationAngularVelocity(); _RigidBody->setInterpol...
- Tue Sep 06, 2022 6:07 am
- Forum: General Bullet Physics Support and Feedback
- Topic: Squishy Physics?
- Replies: 12
- Views: 36394
Re: Squishy Physics?
I've been going through the ExampleBrowser and noticed the 'squishy physics' exist here too. If you open up the very first example, a 5x5x5 block of cubes drop and hit the ground. If you zoom in and restart the demo a few times, you can see that when two cubes collide, they 'squish' into each other ...
- Mon Sep 05, 2022 9:30 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: Synchronizing Client Server Physics
- Replies: 6
- Views: 22347
Re: Synchronizing Client Server Physics
So some progress.. This video demonstrates two clients: https://youtu.be/47fuT13mAjw I tried to line each client up as close as possible, each client does appear to be synchronized. Rigid bodies are instantly snapped/teleported to it's new location when receiving an update from the server, so some b...
- Mon Sep 05, 2022 5:59 am
- Forum: General Bullet Physics Support and Feedback
- Topic: Synchronizing Client Server Physics
- Replies: 6
- Views: 22347
Re: Synchronizing Client Server Physics
Some other forum posts I found about this same topic: https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=33699 https://pybullet.org/Bullet/phpBB3/viewtopic.php?t=11075 https://pybullet.org/Bullet/phpBB3/viewtopic.php?t=2370 https://pybullet.org/Bullet/phpBB3/viewtopic.php?t=9023 https://pybullet.org...
- Mon Sep 05, 2022 3:06 am
- Forum: General Bullet Physics Support and Feedback
- Topic: Synchronizing Client Server Physics
- Replies: 6
- Views: 22347
Re: Synchronizing Client Server Physics
8 years later, much learning, abandoned projects, some success, many failures. Here we are once again. I have gotten client/server physics running, but with some issues which I hope others can give me guidance on. Let me start with a video.. https://youtu.be/NzFPlARgWZ0 I have a simulation running o...
- Mon Dec 06, 2021 5:32 am
- Forum: General Bullet Physics Support and Feedback
- Topic: Issues with multi-threading and compound shapes
- Replies: 1
- Views: 7295
Re: Issues with multi-threading and compound shapes
I seem to be having this same issue however it's only happening on 1 of my 5 test machines.
- Fri Nov 26, 2021 3:14 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: btGeneric6DofConstraint - Weld/Parent
- Replies: 6
- Views: 16919
Re: btGeneric6DofConstraint - Weld/Parent
Never fully rigid I can deal with, considerable divergence and wobbliness however is unacceptable..
There must be some values that can be adjusted?
There must be some values that can be adjusted?
- Sat Nov 20, 2021 3:09 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: btGeneric6DofConstraint - Weld/Parent
- Replies: 6
- Views: 16919
Re: btGeneric6DofConstraint - Weld/Parent
Perhaps I'm going about the 'freeze' incorrectly...Instead of setting mass and inertias to 0, maybe I should apply a constraint to the world with all 6 degrees of freedom locked. EDIT: Yes that is much better, no more 'tornado'. There is still a wave that propagates through the constrained objects, ...
- Sat Nov 20, 2021 4:12 am
- Forum: General Bullet Physics Support and Feedback
- Topic: btGeneric6DofConstraint - Weld/Parent
- Replies: 6
- Views: 16919
Re: btGeneric6DofConstraint - Weld/Parent
Was able to dig through the forums and finally find a helpful post. // btVector3 parentAxis(1.f, 0.f, 0.f); btVector3 childAxis(0.f, 0.f, 1.f); btVector3 anchor(0.f, 0.f, 0.f); // btVector3 zAxis = parentAxis.normalize(); btVector3 yAxis = childAxis.normalize(); btVector3 xAxis = yAxis.cross(zAxis);...
- Fri Nov 19, 2021 4:09 am
- Forum: General Bullet Physics Support and Feedback
- Topic: btGeneric6DofConstraint - Weld/Parent
- Replies: 6
- Views: 16919
btGeneric6DofConstraint - Weld/Parent
Trying to create a btGeneric6DofConstraint between two rigid bodies. Attempting to restrict movement and rotation of the constraint in all 3 axis. I'm able to get the positioning of the rigid bodies correct, however rotations I'm not sure about... PrimaryNode->_RigidBody->activate(); SecondaryNode->...
- Thu Nov 18, 2021 11:38 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: Squishy Physics?
- Replies: 12
- Views: 36394
Re: Squishy Physics?
Okay, I've put the rendering of objects in the correct location and eliminated the 1frame delay between physics update->visual update. The residual 'squish' appears to be gone now. Do you have any comment on these last two issues? Video 1 - Many objects spawn quickly in the same location, at first t...
- Thu Nov 18, 2021 5:48 am
- Forum: General Bullet Physics Support and Feedback
- Topic: Squishy Physics?
- Replies: 12
- Views: 36394
Re: Squishy Physics?
I was thinking about this some more and agree it may be a purely visual artifact at this point, might need to look into changing exactly when the object is drawn or something else. Thanks for the info on stepSimulation, i'll look into this in depth a little more tomorrow. Not completely sure what th...
- Thu Nov 18, 2021 4:53 am
- Forum: General Bullet Physics Support and Feedback
- Topic: Squishy Physics?
- Replies: 12
- Views: 36394
Re: Squishy Physics?
Not sure if it is related but I also have two more examples of what I would say falls under the category of 'squishy physics'. Video 1 - Many objects spawn quickly in the same location, at first they all push out of each other and fall to the ground then spread out. As more and more objects spawn th...