webaverse / app

Web metaverse client
https://app.webaverse.com
MIT License
344 stars 207 forks source link

App: support physx bake parameters #1568

Closed avaer closed 3 years ago

avaer commented 3 years ago

We should support configuring the physx baking parameters in the physics component of apps: https://github.com/webaverse/app-wasm/blob/765dd6d42bef750a295bb64fd5c70f119027d990/physics.cc#L22

This would allow apps to have finer control over the physics mesh that's generated for them.

PhysX cooking documentation: https://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/apireference/files/structPxCookingParams.html

Many of the cooking parameters are of interest to us:

avaer commented 3 years ago

This would require re-building app-wasm, our physx build, to support passing in the new parameters.

avaer commented 3 years ago

This is only high priority if exposing and configuring these physx properties is required to get good performance

avaer commented 3 years ago

This is not needed right now, because the performance problems we were encountering were related to the skybox-anime component, not PhysX.