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

Convert models with material scripts #10

Closed
osrf-migration opened this issue Jan 28, 2019 · 1 comment · Fixed by #2269
Closed

Convert models with material scripts #10

osrf-migration opened this issue Jan 28, 2019 · 1 comment · Fixed by #2269
Assignees
Labels
enhancement New feature or request

Comments

@osrf-migration
Copy link

Original report (archived issue) by Nate Koenig (Bitbucket: Nathan Koenig).


Summary

Models that contain <script> tags currently do not work with Ogre1, and may never work with ogre2. For example see https://app.ignitionrobotics.org/openrobotics/fuel/models/Textured%20Shapes

Motivation

It would be nice to support automatic conversion of old scripts to new scripts. Not sure if this is feasible.

@azeey
Copy link
Contributor

azeey commented Dec 11, 2023

The current plan is to incorporate the Material parser from https://github.com/osrf/gzweb/blob/master/gzbridge/OgreMaterialParser.cc into gz-sim to parse the default gazebo.material script so that material names for solid colors, such as Gazebo/Red can be supported. i.e, The first step would be to parse diffuse, ambient, emisive, and specular values from the material script. In the future, we might add support for textures and .material script files provided by users.

Note that The gazebo.material script will have to be installed with gz-sim.

cc @iche033

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
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants