-
Notifications
You must be signed in to change notification settings - Fork 466
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
Line setColor getting ignored #820
Comments
Thanks for the report, it will be next week before I can look into this. |
@stonier I had look around the code and naively it looks like your suggestion could just be pushed down into the Have you had any time to look into it further or do you care to propose an exact change as a pull request? |
@wjwwood Yes, if I had to make a PR I would have also tried pushing into the line class. I refrained from making a PR this time however for the same reasons as yourself - I'm not super familiar with the Ogre API, as well as what is technically correct when setting up opengl lighting conditions. If it helps to go forward, we could naively make such a PR and add some comments in case some 'expert' revisits this in the future. How does this sound? |
If you get a chance to post your current idea for a patch that would be good. |
The
rviz::Line
class inogre_helpers/line.hpp
is not faithfully setting thesetColor
command. Currently if it gets drawn in rviz, but will always show as white. My current setup:setColor
on creation, or every time the visual gets updated doesn't matter too much.I might be missing some api usage though. One thing I found does work is to subclass the Line class and recreate my own setColor command setting diffuse and ambient (note the original only sets diffuse) colours.
The text was updated successfully, but these errors were encountered: