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

Support gazebo convention for texture folder in model directory #171

Open
mxgrey opened this issue Aug 23, 2023 · 0 comments
Open

Support gazebo convention for texture folder in model directory #171

mxgrey opened this issue Aug 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mxgrey
Copy link
Collaborator

mxgrey commented Aug 23, 2023

Gazebo models use a non-standard convention for where textures are placed in a model directory. Instead of being placed next to the relevant .obj / mesh file, they are placed in a materials/textures/ folder. This creates problems for loading these assets because asset loaders meant for conventional usage cannot find the textures.

Here's an idea for how we can make this work:

  • Add a hook into bevy_obj that allows us to customize how textures are searched for
  • Fetch model directory layout information from gz-fuel so we can search efficiently for the actual URI of the texture
  • Fetch the texture

Another idea to consider is having bevy_obj support an option to use a fallback texture in cases where the texture file was not found.

@mxgrey mxgrey added the enhancement New feature or request label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant