Closed wangyian-me closed 1 year ago
We have upgraded VulkanRenderer
(now renamed SapienRenderer
) to include almost all functionalities of KuafuRenderer
. Currently it is a beta version but you can install via pip install sapien==2.2b3
. We should be able to release a stable version in the next few days. To use the new renderer, first create the VulkanRenderer
import sapien.core as sapien
engine = sapien.Engine()
renderer = sapien.SapienRenderer() # sapien.VulkanRenderer() still works
engine.set_renderer(renderer)
Next, add these lines to replace the original KuafuConfig. The key is to use the "rt" shader. These lines can be modified at any time to configure the next created camera. Each camera may use different settings (you can make 1 camera ray tracing and 1 rasterization)
sapien.render_config.camera_shader_dir = "rt"
sapien.render_config.viewer_shader_dir = "rt"
sapien.render_config.rt_samples_per_pixel = 32
sapien.render_config.rt_max_path_depth = 8
sapien.render_config.rt_use_denoiser = True # if NVIDIA driver > 522, some older driver may get lucky but it is not guaranteed
# other Kuafu parameters are no longer needed
Please let us know if there are still issues with this new renderer.
The stable version 2.2.0 has been released and the documentation is updated. Please reopen the issue if the problem persists.
System:
Describe the bug When I try to load an articulation object from partmobility, it reports
KF: Fail to load object: Failed to submit geometry because geometries buffer size has been exceeded.
To Reproduce Steps to reproduce the behavior (use pastebin for code):
Expected behavior
Additional context the detailed code of env.py is:
We can see that it will not cause any error when I load the object for the first time. But when I load it for the third time, it reports that buffer size has been exceeded. I guess there might be something wrong with
env.scene.remove_articulation()
, when working with KuafuRenderer. I've tried similar setting in VulkanRenderer and it works well.