Skip to content

Resolve ambiguity around RPC glTF importing #39

@jwnimmer-tri

Description

@jwnimmer-tri

We apply a 90 degree rotation after importing the glTF we got over RPC. It is not sufficiently clear why we do this.

Is Blender importing the file incorrectly? Or is its importer documentation unclear about applying extra rotations that we need to undo? Or is Drake exporting the scene incorrectly? It has to be one or those, so we need figure out which one and (at least) write it down. If it's Drake doing it wrong, we'll also need to fix that.

Sean's comment from review:

        bpy.ops.transform.rotate(
            value=math.pi/2, orient_axis='X', orient_type='GLOBAL'
        )

Does this feel like a defect in VTK's glTF exporter? glTF is documented as y-up. Blender is z-up. If we need to rotate positive 90 degrees around the x-axis, it's because blender applied, correctly, the negative 90 degree rotation to go back from y-up to z-up. Admittedly, as long as the server knows about the idiosyncracies of the client's glTF flavor, they can form a coherent whole. But it does mean we're producing non-compliant glTF files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions