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 Texture to shape #594

Closed
costashatz opened this issue Jan 22, 2016 · 3 comments
Closed

Add Texture to shape #594

costashatz opened this issue Jan 22, 2016 · 3 comments

Comments

@costashatz
Copy link
Contributor

Hello,

I was wondering if it's possible to add texturing to a dart shape (e.g. BoxShape).

@mxgrey
Copy link
Member

mxgrey commented Jan 22, 2016

Textures are definitely possible with MeshShapes. Are you using the native DART renderer, or are you using a wrapper, like Gazebo? I don't know offhand whether Gazebo supports the textures in DART's MeshShape class.

If you're using DART's native rendering, then I think the following approach should work (although I haven't tested it):

  1. Create a textured box mesh in a 3D modelling program such as Blender
  2. Load and add the mesh as a visualization shape for the BodyNode
  3. Construct a BoxShape primitive and add it as a collision shape for the BodyNode

That should let you get the visual results that you want while still having good performance when it comes to collision detection.

@stale
Copy link

stale bot commented Feb 13, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 13, 2018
@costashatz
Copy link
Contributor Author

I think this is solved with #973 ...

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

No branches or pull requests

2 participants