Archive for January 17th, 2019

Old NovodeX Monster Truck video

Thursday, January 17th, 2019

I used the new reduced coords articulations for a vehicle in my recent Youtube video but we already had a multibody vehicle using Featherstone articulations back in 2002.

https://www.youtube.com/watch?v=QJVra8LGDeE

PhysX tip: torsional friction

Thursday, January 17th, 2019

PhysX tip: in 4.0 there is support for torsional friction, to help robots grasp objects. See PxShape::setTorsionalPatchRadius() and PxShape::setMinTorsionalPatchRadius().

PhysX tip: PxConstraintFlag::eENABLE_EXTENDED_LIMITS

Thursday, January 17th, 2019

PhysX tip: in 4.0 some joints support a higher limit range than before. For example revolute joints could previously only support a PI*2 range. But it’s been extended. See PxConstraintFlag::eENABLE_EXTENDED_LIMITS. Thank you quaternion double-cover :)

PhysX tip: pos vs vel iterations

Thursday, January 17th, 2019

PhysX tip: “position” iterations and “velocity” iterations are not equally important. My rule of thumb as a user: don’t bother increasing the velocity iters, leave it to 1. Focus on the position iter only. 4 for regular bodies and 16 or 32 for jointed objects give good results.

PhysX tip: PxSceneDesc::dynamicTreeRebuildRateHint

Thursday, January 17th, 2019

PhysX tip: speaking of fetchResults(), don’t forget PxSceneDesc::dynamicTreeRebuildRateHint. Increasing that value can make fetchResults() faster. YMMV here but you can often increase this to 10x the default value without issues.

PhysX tip: PxSceneQueryUpdateMode

Thursday, January 17th, 2019

PhysX tip: are you calling simulate() multiple times per frame? Maybe for sub-stepping? Then you can use the newly introduced PxSceneQueryUpdateMode enum to only update the SQ system in the last substep. That can make “fetchResults” faster for the N-1 first substeps.

PhysX tip: use a scratch memory block

Thursday, January 17th, 2019

PhysX tip: pass a scratch memory block to the simulate() function! Even if it’s just 16 or 32K, it will help reducing the amount of temporary allocations. Just do it. Now.

PhysX tip: contact distance for joint limits

Thursday, January 17th, 2019

PhysX tip: beware of the default “contact distance” param for joint limits. By default it’s setup for performance rather than sim quality, and it ignores limit-related constraints until you’re about to reach them. Instead, set them up so that limits are always “active”.

PhysX tip: D6 or dedicated joints?

Thursday, January 17th, 2019

PhysX tip: D6 or dedicated joints? The dedicated joints like PxRevoluteJoint can be a wee bit faster on the CPU because their “solver prep” functions are simpler. But only D6 joints are fully-accelerated (joint shaders running on the GPU). Minor bit of trivia that you can ignore.

shopfr.org cialis