You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume for Ogre2 this would allow for PBR textures to be applied to the line, so you could very easily create lines with blurred edges, or dashed lines, etc. (similar to the fog albedo map for a particle emitter). That is nice!
Con:
It breaks behavior for somebody who is currently applying a scale to a line marker.
However here's an idea for a possible backwards-compatible implementation:
It is very unlikely that someone currently would specify a scale zero for both y and z (as that would imply projecting all line coordinates onto the X-axis). So the change could be implemented such that:
The new behavior explicitly requires scale:x to be non-zero and scale:y and scale:z both to be zero,
If that is not the case, the old behavior is kept,
So this is likely to be backwards compatible for any 'real life' application.
Alternatives considered
Draw a thick line by calculating the corner coordinates instead of just the start and end point, and drawing a TRIANGLE_LIST instead of a line
Pro:
This is currently possible, i.e. requires no change to gz-rendering,
Con:
Different behavior than RViz,
Extra burden to calculate the corner coordinates,
Not possible to add PBR textures, or at least not trivially, as I assume that some sort of UV mapping would be needed between the texture and the triangles?
The text was updated successfully, but these errors were encountered:
Environment
Description
I was expecting the LINE_STRIP and LINE_LIST markers to have the same behavior as their RViz counterparts:
However, in Gazebo the scale is an actual scale of the point coordinates, and the line is always very thin (1 pixel width?).
E.g. a thin line from
{0,0,0}
to{0,1,0}
is scaled byscale:{x:1,y:10,z:1}
into an equally thin line from{0,0,0}
to{0,10,0}
.(Note also that the RViz 'scale' has units, e.g.
scale.x == 0.05
implies a line width of 5 cm.)Test
Open an empty world that loads the MarkerManager plugin,
Run following command with different values for the scale and compare the output:
Proposed solution
Implement similar behavior to RViz
Pro:
Con:
scale:x
to be non-zero andscale:y
andscale:z
both to be zero,Alternatives considered
Draw a thick line by calculating the corner coordinates instead of just the start and end point, and drawing a TRIANGLE_LIST instead of a line
Pro:
gz-rendering
,Con:
The text was updated successfully, but these errors were encountered: