3D model export does not respect to board stack-up
Hi,
I had a problem in KiCad stable for a long time. If I exported my design as 3d model (VRML or STEP) it was exporting the model with default green soldermask even though the 3D viewer settings was different. This was probably an issue due to lack of color information in PcbNew. The information was carried just for 3D Viewer.
I checked the last status on the nightlies to see whether this has been fixed or not. I've seen that now we have a proper board design options including overlay and soldermask color. Nice.
But no matter wihch soldermask color is chosen, PCB New still exports 3D files with green soldermask.
I've tested this with complex_hierarchy demo project.
Steps to reproduce:
- Open complex_hierarchy project.
- Open layout file.
- Open board settings via File/Board Setup/Physical Stackup
- Change soldermask color for both of the sides other than classic green.
- Export 3D VRML model via File/Export/VRML
- Open newly created VRML file with FreeCAD
- You should be seeing a board with green soldermask.
I know this is a very simple issue to fix and I'd do it by myself if I knew enough of the KiCad internals. I fixed some of the VRML files with changing just one line.
Regards,
Application: Pcbnew
Version: 5.99.0-unknown-fa8c48675~104~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Platform: Linux 5.4.0-52-generic x86_64, 64 bit, Little endian, wxGTK, ubuntu, x11
Build Info:
Date: Nov 12 2020 10:18:04
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.71.0
OCE: 6.9.1
Curl: 7.68.0
ngspice: 31
Compiler: GCC 9.3.0 with C++ ABI 1013
Build settings:
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
KICAD_SCRIPTING_ACTION_MENU=ON
KICAD_USE_OCE=ON
KICAD_SPICE=ON