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

The ATLAS robot COLLADA/DAE models have invalid texture references. #200

Open
keskival opened this issue Sep 8, 2019 · 0 comments
Open

Comments

@keskival
Copy link

keskival commented Sep 8, 2019

tero@LeCun:~/git/roboschool/roboschool/models_robot/atlas_description/meshes_unplugged$ grep png *
l_foot.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
l_lglut.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
l_lleg.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
l_talus.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
ltorso.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
l_uglut.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
l_uleg.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
mtorso.dae:    <image id="Map #0-image" name="Map #0"><init_from>../materials/textures/torso_diffuse.png</init_from></image>
r_clav.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
r_foot.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
r_lglut.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
r_lleg.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
r_scap.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
r_talus.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
r_uarm.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
r_uglut.dae:    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
tero@LeCun:~/git/roboschool/roboschool/models_robot/atlas_description/meshes_unplugged$ ls ../materials/textures/*.png
ls: cannot access '../materials/textures/*.png': No such file or directory

Additionally the texture references from inside diffuse tags reference the images in the library directly:

            <diffuse>
              <texture texture="Map #3-image" texcoord="CHANNEL0">

referencing directly to these element ids:

  <library_images>
    <image id="Map #2-image" name="Map #2"><init_from>../materials/textures/extremities_diffuse.png</init_from></image>
    <image id="Map #3-image" name="Map #3"><init_from>../materials/textures/extremities_diffuse_unplugged.jpg</init_from></image>
  </library_images>

This seems to be against COLLADA spec, as per this comment here: KhronosGroup/OpenCOLLADA#92 (comment)

The above two problems make it impossible to import the DAE model files to Blender. Fixing the above problems by removing the invalid texture references by hand makes the import possible without the textures of course.

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

1 participant