RobotLocomotion / models

Shareable model files (urdf/sdf + meshes, etc) for our robotics projects
27 stars 23 forks source link

[ycb] Convert meshes to gltf #45

Closed jwnimmer-tri closed 6 months ago

jwnimmer-tri commented 6 months ago

Towards #44.

Example command line:

bazel run //models/tools:obj2gltf -- \
  -s --inputUpAxis=Z \
  -i $(pwd)/../models/ycb/meshes/005_tomato_soup_can_textured.obj \
  -o $(pwd)/../models/ycb/meshes/005_tomato_soup_can_textured.gltf

bazel run //models/tools:gltf_add_ktx2 -- \
  --overwrite --input ../models/ycb/meshes/005_*.gltf

This change is Reviewable

jwnimmer-tri commented 6 months ago

+@SeanCurtis-TRI for both reviews, please.

I figure we'll do convert and review one directory to check the process, then my next PR can be converting many directories at once.

jwnimmer-tri commented 6 months ago

Urgh, my mistake in not opening the Drake twin PR sooner (https://github.com/RobotLocomotion/drake/pull/21227). I thought "surely this will be fine", but there's some extra fixing required in Drake. I'll work on that now.