Skip to content

render_3d and blender_export: 3D model rotation incorrect for some STEP files #912

@julienboriasse

Description

@julienboriasse

Description

When using render_3d or blender_export output types, some 3D STEP models appear rotated 90° compared to KiCad's native 3D viewer.

Environment

  • KiBot 1.8.5
  • KiCad 9.0.7
  • Docker image: ghcr.io/inti-cmnb/kicad9_auto_full:latest

Steps to reproduce

  1. Use a footprint with a 3D model from the CDFER JLCPCB library (R_0603.step)
    • Model path: ${KICAD8_3RD_PARTY}/3dmodels/com_github_CDFER_JLCPCB-Kicad-Library/JLCPCB.3dshapes/R_0603.step
    • Rotation in .kicad_pcb: (xyz 0 0 0) — no rotation applied
  2. View in KiCad's native 3D viewer → model orientation is correct
  3. Generate render using KiBot render_3d or blender_exportmodel is rotated 90° on the Z axis

Observations

  • KiCad native 3D viewer renders the component correctly (screenshot attached shows correct orientation in Footprint Properties)
  • Both render_3d and blender_export output types show the same incorrect rotation
  • Replacing the JLCPCB R_0603.step with KiCad's standard R_0603_1608Metric.step from kicad-packages3D results in correct orientation in KiBot renders
  • This suggests the issue is in how KiBot interprets the STEP model's native orientation/coordinate system, not in the .kicad_pcb rotation values

Expected behavior

3D model orientation in KiBot renders should match KiCad's native 3D viewer.

Workaround

Using KiCad's standard library 3D models instead of third-party STEP files produces correct orientation.

Metadata

Metadata

Assignees

Labels

needs more infoFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions