Hello,
I try to run a simulation where I have a cloth composed of a particle system.
I have set up a physics_context and enabled the gpu but I have the following error
2022-10-21 15:03:50 [53,093ms] [Error] [omni.physx.plugin] Particles feature is only supported on GPU. Please enable GPU dynamics flag in Property/Scene of physics scene!
2022-10-21 15:03:50 [53,093ms] [Error] [omni.physx.plugin] Particle Cloth feature is only supported on GPU. Please enable GPU dynamics flag in Property/Scene of physics scene!
2022-10-21 15:04:18 [81,353ms] [Error] [omni.physicsschema.plugin] Rigid Body of (/World/SimpleCase/brush_handle_v4/component1/component1) missing xformstack reset when child of rigid body (/World/SimpleCase/brush_handle_v4/component1) in hierarchy. Simulation of multiple RigidBodyAPI’s in a hierarchy will cause unpredicted results. Please fix the hierarchy or use XformStack reset.
2022-10-21 15:04:18 [81,446ms] [Warning] [omni.physx.plugin] Scene reference from prim /World/SimpleCase/ParticleSystem could not be found. Using the default physics scene.
2022-10-21 15:04:18 [81,464ms] [Warning] [omni.hydra] Mesh /World/SimpleCase/brush_handle_v4/component2/component2 update topology/point without updating normal, fallback to smooth normal.
Here my piece of code that I try to run
scene_usd_path = “/home/btabia/git/virtual_sweeping/first_trial/cube_brush_scene.usd”
scene_prim_path = “/World/SimpleCase”class Environment():
def init(self, scene_usd_path=“None”, scene_prim_path=“None”):
# instanciate the world
self.world = World(device = “GPU”, physics_prim_path = “/World/SimpleCase/PhysicsScene”)
self.usd_path = scene_usd_path
self.prim_path = scene_prim_path
# Set physics scene to use gpu physics
self.physics_context = PhysicsContext(prim_path = “/World/SimpleCase/PhysicsScene”)
self.physics_context.enable_gpu_dynamics(True)
# integrate the scene
self.env = add_reference_to_stage(usd_path = self.usd_path, prim_path = self.prim_path)
self.world.reset()