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
- 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
- View in KiCad's native 3D viewer → model orientation is correct
- Generate render using KiBot
render_3d or blender_export → model 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.
Description
When using
render_3dorblender_exportoutput types, some 3D STEP models appear rotated 90° compared to KiCad's native 3D viewer.Environment
ghcr.io/inti-cmnb/kicad9_auto_full:latestSteps to reproduce
R_0603.step)${KICAD8_3RD_PARTY}/3dmodels/com_github_CDFER_JLCPCB-Kicad-Library/JLCPCB.3dshapes/R_0603.step.kicad_pcb:(xyz 0 0 0)— no rotation appliedrender_3dorblender_export→ model is rotated 90° on the Z axisObservations
render_3dandblender_exportoutput types show the same incorrect rotationR_0603.stepwith KiCad's standardR_0603_1608Metric.stepfromkicad-packages3Dresults in correct orientation in KiBot renders.kicad_pcbrotation valuesExpected 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.