PhysxDiffuseParticlesAPI#
Spawns render-only diffuse particles (spray, foam, bubbles) from a particle set. Read in the particle-set parse only when the prim lists both this API and PhysxParticleSetAPI; an absent column reads as 0 (false for the enable flag), so nearly every absent column diverges from its USD fallback.
Applies to:
PointBased,PointInstancerRequires on the same prim:
PhysxParticleSetAPIRead only when listed in
usd-schemas.No builder:
ovphysx.populationandPopulation.hppdo not write this component; the consumer reads it when another population writes it.
Columns#
Raw fallback is the USD schema value. Producer writes is what ovstage population puts in the column for a USD stage. Parser default applies on the consumer when the column is absent, in stage units. diverges means writing the raw fallback literally parses differently from omitting the column (the parser default): USD population may well publish that very value for an unauthored attribute, so the marker is about the column being present, not about its value.
Column |
Type |
Units |
Raw fallback |
Producer writes |
Parser default |
If absent |
|---|---|---|---|---|---|---|
|
bool8 |
none |
true |
resolved USD value (authored, else raw fallback) |
false diverges |
false: no diffuse particles are spawned (the diffuse capacity is 0). USD’s fallback is true, so write the value. |
|
float32 |
none |
|
resolved USD value (authored, else raw fallback) |
0.0 diverges |
0: the diffuse capacity (particle capacity x multiplier) is 0, so no diffuse particles are spawned even when they are enabled. Write a negative value (USD’s -inf) for the default multiplier 1.5. |
|
float32 |
mass*length^2/s^2 |
0.01 |
resolved USD value (authored, else raw fallback) |
0.0 diverges |
0, passed to PhysX as the diffuse threshold (the potential above which a particle spawns diffuse particles). USD’s fallback is 0.01, so write the value. |
|
float32 |
s |
5.0 |
resolved USD value (authored, else raw fallback) |
0.0 diverges |
0, passed to PhysX as the diffuse particle lifetime. USD’s fallback is 5, so write the value. |
|
float32 |
none |
0.0 |
resolved USD value (authored, else raw fallback) |
0.0 |
0, passed to PhysX as the air drag; USD’s fallback is 0 too. |
|
float32 |
none |
0.5 |
resolved USD value (authored, else raw fallback) |
0.0 diverges |
0, passed to PhysX as the bubble drag. USD’s fallback is 0.5, so write the value. |
|
float32 |
none |
0.8 |
resolved USD value (authored, else raw fallback) |
0.0 diverges |
0, passed to PhysX as the buoyancy. USD’s fallback is 0.8, so write the value. |
|
float32 |
none |
0.01 |
resolved USD value (authored, else raw fallback) |
0.0 diverges |
0, passed to PhysX as the kinetic energy weight. USD’s fallback is 0.01, so write the value. |
|
float32 |
none |
1.0 |
resolved USD value (authored, else raw fallback) |
0.0 diverges |
0, passed to PhysX as the pressure weight. USD’s fallback is 1, so write the value. |
|
float32 |
none |
5.0 |
resolved USD value (authored, else raw fallback) |
0.0 diverges |
0, passed to PhysX as the divergence weight. USD’s fallback is 5, so write the value. |
|
float32 |
none |
0.5 |
resolved USD value (authored, else raw fallback) |
0.0 diverges |
0, passed to PhysX as the collision decay. USD’s fallback is 0.5, so write the value. |
Interactions#
PhysxParticleSetAPI: Read inside the particle-set parse; without PhysxParticleSetAPI the prim is not a particle set and nothing is read. Without this API the set’s diffuse settings are all 0 and diffuse particles are off.
Notes#
The PhysX diffuse parameters always come from these columns (0 when absent), never from PxDiffuseParticleParams’ own defaults (threshold 100, lifetime 5, …).
physxDiffuseParticles:useAccurateVelocity is declared by the schema but never read; PhysX keeps that setting false.
The runtime applies a live change of any column of this API to the set without checking that the API is listed. Applying or removing the API at runtime rebuilds or tears down the set’s diffuse buffers.