NVIDIAGameWorks / PhysX

NVIDIA PhysX SDK
Other
3.11k stars 793 forks source link

Heightfield modification & PVD #621

Open zemlifr opened 1 year ago

zemlifr commented 1 year ago

Hello, I am using heightfield modification based on snippet provided here: https://gameworksdocs.nvidia.com/PhysX/4.1/documentation/physxguide/Manual/Geometry.html#heightfield-modification

It seem to work fine, however I don't see changes propagated to PVD which makes debugging a bit hard for me.

I can see there is some heightfield specific code in

void PvdMetaDataBinding::releaseAndRecreateGeometry(PvdDataStream& inStream, const PxShape& inObj, PxPhysics& /*ownerPhysics*/, PsPvd* pvd)

which is called, but it doesn't seem to work. Is there something that could be fixed in physx code, or there is issue on PVD side?

pdherasciec commented 1 year ago

Hello, heightfields get exported correctly both using PVD and OVD, would you mind sharing the code for the PVD setup? The samples are not automatically outputting to PVD nor OVD.

Here are some screens of using Kit and PVD2, to view heightfields from a heightfield UT heightfield_ut heightfield_ut_pvd

pdherasciec commented 1 year ago

Realizing you want to actually modify the heightfield. Need to check up on this. I think the OVD viewer in Kit does not allow, or rather does not take such modifications into account. Need to see if to make a ticket for this.

pdherasciec commented 1 year ago

Just FYI this is being worked on next. Thanks for exposing the issue!

zemlifr commented 1 year ago

So bug is on the side of PVD and there is nothing I can do to patch it myself?