View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004744||FreeCAD||Bug||public||2021-09-11 00:06||2021-10-10 02:40|
|Summary||0004744: STEP Export/Import Colors Override|
|Description||In STEP file exported from FC colors are not the same as in original FCStd file. |
This can be verified when STEP file is opened with another program.
When this STEP file is opened with FC, colors look as they were in original FCStd.
So, colors are being changed in both Export and Import processes.
Discussed here: https://forum.freecadweb.org/viewtopic.php?f=3&t=62103&p=531837&hilit=step+export%2Fimport+colors#p531837
|Steps To Reproduce||Just export any model into STEP with colors and then open it with another program, for example, Open Cascade CAD Assistant: https://www.opencascade.com/products/cad-assistant/|
I use Altium Designer.
In attached picture Cubes_FreeCAD.png there are 3 cubes as they look on the FreeCAD screen.
The RGB values for each cube are as follows:
Grey: 128, 128, 128.
Orange: 210, 120, 20.
Blue: 0, 50, 160.
Then I export these 3 cubes into STEP file and open it in Altium Designer (adding them on the PCB surface).
In attached Cubes_AD.png there are 2 rows of cubes. Upper one is this STEP file from FreeCAD. In the bottom row are 3 cubes made in Altium Designer directly with the same RGB values.
Colors in upper row (FreeCAD) and bottom row (AD) are altogether different.
STEP model from FreeCAD looks much lighter (brighter). But it is not just lighter. In some cases relations between RGB components are changed (they are not simply multiplied by the same coefficient).
And similar color transformation occurs in reverse, when we import (open) in FreeCAD a STEP model made with another program. But in this case colors in FreeCAD, in opposite, become darker than they should be.
|Additional Information||This issue relates to FC 0.19 and 0.20, FC 0.18 does not have this issue.|
|Tags||No tags attached.|
|FreeCAD Information||OS: Windows 10 Version 2009|
Word size of FreeCAD: 64-bit
Version: 0.20.25645 (Git)
Build type: Release
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Russian/Russia (ru_RU)
it could be related to OCC release version...
[OCCT] 7.5.0 recently additions -> 0029902: Data Exchange, XCAF - provide extended Material definition for visualization purposes
||Potential fix in PR 5098 from @realthunder: https://github.com/FreeCAD/FreeCAD/pull/5098|
|2021-09-11 00:06||andr.syn||New Issue|
|2021-09-11 00:06||andr.syn||File Added: Cubes_FreeCAD.png|
|2021-09-11 00:06||andr.syn||File Added: Cubes_Altium.png|
|2021-10-02 09:10||easyw-fc||Note Added: 0015957|
|2021-10-10 02:39||chennes||Note Added: 0015963|
|2021-10-10 02:40||chennes||Assigned To||=> chennes|
|2021-10-10 02:40||chennes||Status||new => assigned|