scene.proto: add shadow_caster_material_name#179
Conversation
Motivated by gazebosim/gazebo-classic#3048. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Codecov Report
@@ Coverage Diff @@
## main #179 +/- ##
=======================================
Coverage 84.56% 84.56%
=======================================
Files 7 7
Lines 855 855
=======================================
Hits 723 723
Misses 132 132 Continue to review full report at Codecov.
|
|
one suggestion is to use a script for shadow caster: This allows users to specify a path to the material script in case it's not in the resource paths already. |
@WilliamLewww does that make sense to you? |
I think in this case, the string name would refer to the shadow caster material name and the string url would refer to the file that contains the material (just in case the material file is not in a default path) right? |
yeah, perhaps we should rename |
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
added the |
chapulina
left a comment
There was a problem hiding this comment.
I don't know if it would be a good idea to use it here, but I'll just point out that we already have a Material::Script message here:
proto/ignition/msgs/scene.proto
Outdated
| /// \brief Show/hide world origin indicator. | ||
| bool origin_visual = 12; | ||
|
|
||
| /// \brief Name of shadow caster material. |
There was a problem hiding this comment.
| /// \brief Name of shadow caster material. | |
| /// \brief Shadow caster material script. |
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
I've switched to using the existing |
|
The suggested changes have been made, I think that everyone is onboard with the current implementation. I'll merge this but speak up if you don't agree, we still have until the end of code freeze to revert it if needed. |
🎉 New feature
Motivated by gazebosim/gazebo-classic#3048.
Summary
We added a custom SDFormat parameter in gazebosim/gazebo-classic#3048 to allow specifying the name of a custom shadow caster material for a scene. Given that gazebo classic communicates scene information from the server to the client over a transport interface, it would have been convenient to add this field to the
scene.protomessage, but this would have broken ABI. As such, we added a separate ignition-transport service for this parameter.Before ABI freezes for fortress, I thought I would submit this change, in case we decide to use the parameter in ignition in the future.
cc @iche033 @WilliamLewww
Test it
It's not used yet; this is just in anticipation of a future use of this parameter.
Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge