-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lines display strangely #1287
Comments
Could you provide a bag file and rviz config to easily reproduce this issue? |
I got the sample problem.
LINE_STRIP marker is published and displayed in Rviz. In the "Move Camera" mode in Rviz, the marker disappears when changing the viewpoint. In the "Interact" mode, the marker disappears but it reappear if the mouse cursor goes close to the marker. My environment: Ubuntu16.04.1 / ROS Kinetic. Rviz is built from source and its version is 1.13.12. I also install ogre from source to fix this issue and its version is 1.9.1. |
I tried with the melodic-devel (the following catkin workspace) and the same problem still happens..
|
Ok. Need to find a machine with older Xenial + Kinetic to test this tomorrow. But, I'm afraid the problem is related to your OpenGL lib. Could you please provide info on that (e.g. from rviz cmdline output). |
|
I still cannot reproduce the issue, even on a Xenial/Kinetic setup. I guess, we have to blame a different version of OpenGL libs. |
Sorry, then I don't have any more ideas. |
Any progress on this? or workarounds? I have a simple visualization with LINE_LIST Markers and I can only see the lines in Rviz from some viewpoints. From other viewpoints the lines are not rendered, despite they should be visible. |
I wasn't able to reproduce the effect so far. I you can in Noetic, please provide a yaml or rosbag with a corresponding marker message to reproduce the issue. |
I attach a zipped rosbag. If you unzip it you have: if you play it with -k and add the marker in rviz, set fix frame to /world, then I can see the line in green from some angles but not from others. |
Another weird effect I've just realised: This is for another drawing with multiple lines. The lines don't render from certain view angles, but if I pass the mouse pointer over the unrendered lines while having the "interact" or "focus camera" tools selected the l lines under the mouse pointer are then redrawn and I can see them. This doesn't happen with "move camera" or "select" tools, ie. even if I move the cursor over the unrendered lines the line don't get drawn. This suggest to me that it may be an issue with the drawing event logic. |
I see the LINE_LIST markers are drawn as flat tapes!! for a moment I thought that was because I was only setting scale.x and ignoring scale.y and scale.z. But after setting these nothing changed. In fact in the documentation says: "Line lists also have some special handling for scale: only scale.x is used and it controls the width of the line segments.". With width here I interpreted thickness of the line (as if the line was a cylindrical tube), but it's literally width of the tape, with thickness being apparently zero. I think the disappearing lines issue is because the visibility of the tape is fine when looking orthogonal to the width of the tape but when looking from the side the tape has zero thickness and it disappears. Could the LINE_LIST be reimplemented as a cylindrical tube rather than a flat (zero thickness) tape? |
Maybe related #987 |
I have the same issue. on some view angles the line is not rendered. |
I am able to reproduce the issue. All line strips essentially employ rviz/src/rviz/selection/selection_manager.cpp Line 749 in d8df909
|
|
Trying to reproduce the issue once again, I first failed. Looks like the issue only occurs if the marker is not published regularly. |
This issue was fixed in OGRE 13.4.1: OGRECave/ogre#2493 One can work around the issue by regularly updating the line strip marker. |
experiencing this issue as well with ros noetic |
After I publish strip lines to rviz, the lines sometimes are blurry until the cursor slide over them. Is that a bug of rendering? There is a video in the zip. It's obviously at the beginning and end.
Looking forward to any replies. Thanks a lot.
slide over.zip
The text was updated successfully, but these errors were encountered: