Hi, what I want to achieve with omniverse is to drop some objects on a plane. In particular what I want to do is:
- I load some USD objects from disk
- I create/import a plane
- I drop the objects on the plane
- I render only the last frame along with the labels
I managed to achieve something, but not exactly what I want.
Using replicator I managed to drop the objects (using rep.physics.collider
and rep.physics.rigid_body
for the physics) but I have to render all the frames (I’m using the context manager rep.trigger.on_frame
). Rendering all the frames is very expensive compared to rendering just one frame.
Using isaac (I use the World
object and the RigidPrim
for the physics) I managed to render the last frame (after the physics simulation) but I don’t know how to set the plane as a passive rigid body (the plane fall together with the objects).
I tried to explicitly define the physics properties (with utils.setCollider
and setRigidBody
of omni.physx.scripts
), but the objects sometimes go through the plane, sometimes they fall on the plane.
I’m wondering if someone can help me and provide a solution or a minimal example on this problem that I’m facing.