Skip to content

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
Screenshot_2024-09-10_150235 Screenshot_2024-09-10_150218

Steps to reproduce

SPACEDOS01.zip Dockerfile

Docker

  1. Download example project and Dockerfile into folder
  2. Unzip folder
  3. Run Dockerfile using docker build --tag 'ki-test' .
  4. Run Docker image using docker run ki-test
  5. Find container ID docker container ps
  6. Find docker container IP using docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' {container id}
  7. SSH into container using username kicad and password pass
  8. CD to ~/SPACEDOS01/hw/sch_pcb
  9. 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
  10. Exit
  11. SCP generated GLB out of container scp kicad@{ip}:~/SPACEDOS01/hw/sch_pcb/SPACEDOS01.glb .
  12. Stop container docker container stop ki-test

GUI

  1. Open latest 8.99 KiCad GUI
  2. Open project and export for GLB with same settings

CLI

  1. 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