Closed siddancha closed 3 months ago
Thanks for this!
At the moment, we can't accept the draco files, even as as separate *.gltf
files. We intended to use this repository to showcase the best practices for Drake's model files, and having duplicated *.gltf
files (depending on the mesh compression) is not a best practice.
Our medium-term aim with draco meshes is to have them as "extentionsUsed" but not "extentionsRequired" in the same gltf file as the uncompressed meshes. Then consumers that know about draco will use them, but consumers that don't will fall back to the uncompressed mesh. A kind of "graceful degradation" so that we don't need (for example) separately forked SDFormat files for the two mesh styles.
So I'll ask that for this first PR, please just keep the normal uncompressed meshes and git rm
the draco ones for now. Once we have more Drake capabilities and tooling related to draco meshes ready, we can start using draco here.
Makes sense @jwnimmer-tri . Removed all draco-related files.
@jwnimmer-tri I want to add that I tweaked some material parameters in the glTF files. For one, the original .obj files don't contain any material/color information. I copied the RGB values provided in RobotLocomotion/drake's iiwa_description URDF files. Since material properties in glTF files are more expressive (e.g. metallicFactor
, roughnessFactor
), I picked sensible values guided by how aesthetic the iiwas looked in meshcat.
Related: https://github.com/RobotLocomotion/drake/pull/21079
Changes
Replaces
iiwa7
andiiwa14
.obj mesh files (visual only, not collision) to.gltf
+.bin
files.link_0.obj
now becomeslink_0.gltf
+link_0.bin
.Also adds draco compressed versions of the files.For example,link_0.obj
also becomeslink_0.draco.gltf
+link_0.draco.bin
.Benefits
This resolves the issue of IIWA
*.obj
files being duplicated in static HTML: https://github.com/RobotLocomotion/drake/issues/21056This also helps reduce the size of
link_0.obj
(620 KB) tolink_0.gltf
(4 KB) +link_0.bin
(184 K) orlink_0.draco.gltf
(4 KB) +link_0.draco.bin
(20 KB)Visualization
Conversion process
and gltf-pipeline tools:This change is![Reviewable](https://reviewable.io/review_button.svg)