Rviz Marker Triangle List: bad shader
Why if i create a Mesh triangle-by-triangle by using visualization_msgs::Marker (type=TRIANGLE_LIST) the shader doesn't take into account normals ? Surface shader is not working. See attached image:
Does it look like that from all angles? Sometimes the order of the points will determine the normal face, i.e. clockwise will give you a normal in one direction and counterclockwise will give you a normal in the opposite direction.
Yes! It looks like flat from every vantage point. Reversing order of triangle makes all mesh go away.
RViz will not show any material / texture if there is no valid transform from whatever Fixed Frame is set to and the value you have set in the
header.frame_id
field. Could you include a snippet of how you setup yourMarker
msg? And describe the rest of your TF tree?In this example is just a simple node with no TF tree behind. I just set frame_id as
"world"
and set "world" as base frame in Rviz.. so i think is an Identity transform... could this be the problem?If RViz is set to use
world
as the Fixed Frame, then things should be ok. Make sure RViz doesn't complain about anything.This looks like how a mesh shows up when it doesn't have any transforms. e.g. a RobotModel with no state publisher or tf publisher behind it