[render_client] Exports non-compliant glTF files #20151
Labels
component: geometry perception
How geometry appears in color, depth, and label images (via the RenderEngine API)
priority: medium
type: bug
What happened?
Drake uses a z-up world. glTF uses a y-up world. We use
vtkGLTFExporter
to generate a glTF file from the Drake geometry state. However, VTK is agnostic of what kind of world you live and writes out the state verbatim. That means thatRenderEngineGltfClient
is not creating a compliant glTF file (the scene is rotated 90 degrees).Short-term fix: this discrepancy should be documented.
Long-term fix: this should be fixed; we should simply output a compliant glTF file.
=====================================================
Notes on implementation:
RenderEngineGltfClient
requests so we know whether we've exported a y-up or z-up glTF.RenderEngineVtk::ImplementGltf
will no longer have to apply the rotation.internal_render_engine_gltf_client.cc
modify theSetRootPoses
to eliminate theR_GF
rotation (we don't need the 90 degree rotation anymore).drake_blender/sever.py
should rotate the import glTF conditionally based on version.Version
No response
What operating system are you using?
No response
What installation option are you using?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: