ros-visualization / rviz

ROS 3D Robot Visualizer
BSD 3-Clause "New" or "Revised" License
792 stars 459 forks source link

RVIZ render point efficently question #1782

Closed peter5232 closed 1 year ago

peter5232 commented 1 year ago

Describe your issue here and explain how to reproduce it. I want to ask a question. I use glVertex3f when I use the QOpenGLWidget to call the OpenGL command to render the point cloud. But when I render nearly 100 million points, the whole program gets stuck. What measures does Rviz use to render the point cloud, and has it been thinned?

rhaschke commented 1 year ago

I use glVertex3f when I use the QOpenGLWidget to call the OpenGL command to render the point cloud.

Are you talking about an rviz-independent program to render a point cloud?

But when I render nearly 100 million points, the whole program gets stuck.

Which program? rviz? Your own?

What measures does Rviz use to render the point cloud, and has it been thinned?

Are you asking for advice to improve your own program or are you complaining about poor performance of rviz? There were some recent attempts to improve rviz rendering performance. See #1725 and #1733. Unfortunately they were not finished, mainly due to issues with old Ogre, which is used for rendering under the hood. So, if you want advice for your own program: Have a look into Ogre. rviz uses vertex shaders to render point clouds.

rhaschke commented 1 year ago

Closing due to inactivity.