Skip to content
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

Add material to GeometryObject #2119

Merged
merged 12 commits into from
Dec 14, 2023

Conversation

jorisv
Copy link
Contributor

@jorisv jorisv commented Dec 13, 2023

This PR solve #2084.

I have added GeometryObject::meshMaterial attribute to store different kind of material with a boost::variant.

Right now, only two material type exists : GeometryNoMaterial and GeometryPhongMaterial.
But more complex ones can be added in the future.

The boost::variant Python binding is working well and can maybe be ported to manage the Model::joints.

meshcat_visualizer.py use this new feature BUT meshcat-python Phong material is not implemented.
I had to patch my meshcat-python to be able to display specular et emissive light.

Before merging I have to add an example but I would like to have a technical review before going further.

@jorisv jorisv self-assigned this Dec 13, 2023
@jorisv jorisv force-pushed the topic/add_geometry_material branch from 6e03cc9 to cfdc74a Compare December 13, 2023 14:21
jcarpent
jcarpent previously approved these changes Dec 13, 2023
Copy link
Contributor

@jcarpent jcarpent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

jcarpent
jcarpent previously approved these changes Dec 13, 2023
@jcarpent jcarpent enabled auto-merge December 13, 2023 16:33
@jcarpent
Copy link
Contributor

The CI failure seems to be independent of the content of this PR. Let's move on.

@jcarpent jcarpent merged commit 2a15772 into stack-of-tasks:devel Dec 14, 2023
14 of 16 checks passed
@jorisv jorisv deleted the topic/add_geometry_material branch July 23, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Material in pinocchio::GeometryObject
2 participants