Docker CLI: STEP/GLB color does not match 3D Viewer/GUI exporter
Description
GLB export from CLI docker image does not include colors (missing ~100bytes in example file) while CLI and GUI application export do.
Docker CLI | GUI/CLI |
---|---|
![]() |
![]() |
Steps to reproduce
Docker
- Download example project and Dockerfile into folder
- Unzip folder
- Run Dockerfile using
docker build --tag 'ki-test' .
- Run Docker image using
docker run ki-test
- Find container ID
docker container ps
- Find docker container IP using
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' {container id}
- SSH into container using username
kicad
and passwordpass
- CD to ~/SPACEDOS01/hw/sch_pcb
- Run
kicad-cli pcb export glb SPACEDOS01.kicad_pcb --subst-models --include-tracks --include-pads --include-inner-copper --include-silkscreen --include-soldermask --include-zones -f
- Exit
- SCP generated GLB out of container
scp kicad@{ip}:~/SPACEDOS01/hw/sch_pcb/SPACEDOS01.glb .
- Stop container
docker container stop ki-test
GUI
- Open latest 8.99 KiCad GUI
- Open project and export for GLB with same settings
CLI
- Run command on host machine (or find location of binary if not in PATH)
Compare outputs using https://gltf-viewer.donmccurdy.com/ Notice only docker CLI has no color while others dodoes.
KiCad Version
Application: KiCad PCB Editor x64 on x64
Version: 8.99.0-2303-g59575c19d8, release build
Libraries:
wxWidgets 3.2.5
FreeType 2.13.2
HarfBuzz 9.0.0
FontConfig 2.14.2
libcurl/8.8.0-DEV Schannel zlib/1.3.1
Platform: Windows 11 (build 22631), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: ATI Technologies Inc., AMD Radeon(TM) 760M, 4.6.0 Compatibility Profile Context 23.40.18.02.240222
Build Info:
Date: Sep 10 2024 08:00:01
wxWidgets: 3.2.5 (wchar_t,wx containers)
Boost: 1.85.0
OCC: 7.8.1
Curl: 8.8.0-DEV
ngspice: 42
Compiler: Visual C++ 1939 without C++ ABI
Locale:
Lang: en_US
Enc: UTF-8
Num: 1,234.5