tier4 / AWSIM

Open source simulator for self-driving vehicles
https://tier4.github.io/AWSIM/
Other
505 stars 96 forks source link

Add GPU skinning and update multi-return modes #353

Open PawelLiberadzki opened 1 month ago

PawelLiberadzki commented 1 month ago

This PR introduces two features that were also made on RGL side:

GPU skinning

Description: Previous CPU skinning (baking mesh on CPU and passing it to RGL) was replaced by GPU-based skinning - now only skinned mesh poses are passed into RGL, and vertex positions are recalculated internally, right before raytracing. This can only be observed as performance gain (compared to previous solution). User is not required to turn this on somehow - this feature is always enabled. Performance gain depends on the number of skinned meshes on the scene.

Testing: LidarSkinnedStress sample scene can be run to check the performance achieved. Comparing between current and previous approach may be done on the same scene, but will require switching branches.

Updated multi-return modes

Description: Previously user was able to select only not divergent rays, first return on last return, as in the image below: image After the updated this component changed to: image Where available return modes are: image Moreover, the switch was added to provide an option to instantly turn on/off laser beam divergence simulation (to keep previous ...NOT_DIVERGENT setting).

Testing: LidarMultiReturnSample scene may be used here. There are multiple wall in the scene - cloud point should be placed differently on wall edges depending on the selected return mode. Moreover, more points should be observed e.g. on the ground, when dual-return modes are selected.