ros-visualization/rviz

RVIZ render point efficently question

peter5232 opened this issue · 2 comments

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?

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.

Closing due to inactivity.