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

Material colours assigned to primitives in UI are not saved correctly #2730

Open
joshnewans opened this issue Jan 25, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@joshnewans
Copy link
Contributor

Environment

  • OS Version: Ubuntu 24.04
  • Source or binary build? Binary 9.0.0

Description

  • Expected behavior: Material data for primitives is saved in the world
  • Actual behavior: Values are reset to grey

Steps to reproduce

  1. Create a primitive (e.g. box or sphere) in the empty world.
  2. Assign some colour values to the visual material
  3. Save the world
  4. Look at the SDF and note that the values seem to be default grey and not the colours you set
  5. Load up your SDF and look at your sad grey world. 😥

Output

World before saving:
Image

Snippet from saved SDF:

        <visual name='sphere_visual'>
          <geometry>
            <sphere>
              <radius>0.5</radius>
            </sphere>
          </geometry>
          <material>
            <ambient>0.300000012 0.300000012 0.300000012 1</ambient>
            <diffuse>0.699999988 0.699999988 0.699999988 1</diffuse>
            <specular>1 1 1 1</specular>
          </material>
        </visual>
@joshnewans joshnewans added the bug Something isn't working label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Inbox
Development

No branches or pull requests

1 participant