View Issue Details

IDProjectCategoryView StatusLast Update
0004206FreeCADBugpublic2022-01-25 18:55
Reporterotoien Assigned Tochennes  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLaptop PC with Nivida graphicsOSWindowsOS Version7
Target Version0.20Fixed in Version0.20 
Summary0004206: Transparency display lost on multicolored object when reloading file
DescriptionAfter saving a file, next time it is reloaded display of transparency is sometimes lost on more complicated objects but not the transparency parameter. I have been able to isolate this to a the simple case of an extruded object with multicolored faces where transparency display is always lost on file load.

It was tested with latest development version on Win7, but I have experienced these problems for a long time, also in stable ver. 0.18). It was confirmed by two forum member using Windows 10:
Link to discussion thread in Help forum
Steps To Reproduce1. Create a simple shape, for instance a rectangle and extrude it. Mark it and apply transparency under the view tab, for instance set it to 80% and observe correct display. Save and close file. Reload it and observe correct display of transparency.

2a. Mark object, right click, Set Colors, mark one of the faces and change color. Keep transparency. Transparency is still correctly displayed. Save file and close it. Reload file. Observe transparency display gone but color is correct, and on inspection the transparency parameter under the view tab is still at 80%.

2b. Close file without saving and reload again (transparency gone). Mark object and change color so that it gets a single color. Transparency is back again. Save file, close and reload. Transparency is now correct.

2c. Close file without saving and reload again (transparency gone). Change transparency (for instance to 81%). Observe correct transparency being displayed again. Save, close and reload. Transparency display is gone again.

The attached files show the results of the different tests 2a to 2c above.
Additional InformationCould the problems be related to this fairly recent change that can allow per face transparency to be set?
Link to per face transparency forum thread

Forum member wmayer in that thread noted that "The problem might be that the Transparency property was designed to affect the whole object and the possibility to set transparent color per face was added much later. So, it seems that the order of reading in the properties from the project matters."
Tags#tobeclosed, colors, transparency
FreeCAD InformationOS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18760 (Git)
Build type: Release
Branch: master
Hash: ef73ab5f3a330d3c44138f23290f8c9f7a334caf
Python version: 3.6.7
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)

(For the record I am using a Nivida graphics card)

Activities

otoien

2019-11-26 21:54

reporter  

Kunda1

2020-01-10 20:57

administrator   ~0014040

Confirmed and set to 0.19 target

otoien

2020-12-04 06:19

reporter   ~0015078

Still present in version 0.19.23141

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23141 (Git)
Build type: Release
Branch: master
Hash: 0eba78d40096720f7a637a9a73c382a08b820bca
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)

chennes

2020-12-05 21:22

administrator   ~0015084

I just tested this and in step 2a I lose the cube's transparency right away (no saving or reloading). As soon as I set a per-face color, all other faces lose their transparency. Though oddly, if I select a face it draws with the correct transparency.

OS: Windows 10 Version 2004
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23235 (Git)
Build type: Debug
Branch: master
Hash: bc3f90663e01bb26dd6d0a4bc816a42f020291de
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)

otoien

2020-12-06 01:05

reporter   ~0015091

Yes I see that too. In step 2a if transparency for the cube is set before color selection, all but the face where the color is changed looses transparency. However if one of those faces are selected, transparency temporarily comes back, but goes away again when the face is deselected. (no saving or re-loading).

Kunda1

2020-12-06 12:54

administrator   ~0015094

@DeepSOIC do you have some moments to look at this? Possibly fix before v0.19 release?

DeepSOIC

2020-12-06 20:47

developer   ~0015102

@Kunda1 sorry, i don't have FC compile environment set up yet. It's been so since my windows decided to destroy itself somewhere in late october. I will set it up eventually.

chennes

2021-12-29 04:54

administrator   ~0016157

I can no longer reproduce, tested in:

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.26667 +14 (Git)
Build type: Debug
Branch: addonManagerPrefPacks
Hash: b57f807ad5d58ef94c6a44215baf763cdeaef45a
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United States (en_US)
@otoien can you please re-test with a recent development build? I believe this has been resolved during the 0.20 development phase.

otoien

2022-01-04 02:32

reporter   ~0016194

I am confirming your finding, I can also no longer reproduce it
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.26761 (Git)
Build type: Release
Python version: 3.8.12
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/United States (en_US)

Issue History

Date Modified Username Field Change
2019-11-26 21:54 otoien New Issue
2019-11-26 21:54 otoien Tag Attached: colors
2019-11-26 21:54 otoien Tag Attached: transparency
2019-11-26 21:55 otoien File Added: Transparency-test001a.FCStd
2019-11-26 21:55 otoien File Added: Transparency-test001b.FCStd
2019-11-26 21:55 otoien File Added: Transparency-test001c.FCStd
2020-01-10 20:57 Kunda1 Status new => confirmed
2020-01-10 20:57 Kunda1 Target Version => 0.19
2020-01-10 20:57 Kunda1 Description Updated
2020-01-10 20:57 Kunda1 Steps to Reproduce Updated
2020-01-10 20:57 Kunda1 Additional Information Updated
2020-01-10 20:57 Kunda1 FreeCAD Information OS: Windows 7 SP 1 (6.1) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.18760 (Git) Build type: Release Branch: master Hash: ef73ab5f3a330d3c44138f23290f8c9f7a334caf Python version: 3.6.7 Qt version: 5.12.1 Coin version: 4.0.0a OCC ... => OS: Windows 7 SP 1 (6.1) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.18760 (Git) Build type: Release Branch: master Hash: ef73ab5f3a330d3c44138f23290f8c9f7a334caf Python version: 3.6.7 Qt version: 5.12.1 Coin version: 4....
2020-01-10 20:57 Kunda1 Note Added: 0014040
2020-12-04 06:19 otoien Note Added: 0015078
2020-12-05 21:22 chennes Note Added: 0015084
2020-12-06 01:05 otoien Note Added: 0015091
2020-12-06 12:54 Kunda1 Note Added: 0015094
2020-12-06 20:47 DeepSOIC Note Added: 0015102
2021-02-06 06:49 abdullah Target Version => 0.20
2021-12-29 04:54 chennes Assigned To => chennes
2021-12-29 04:54 chennes Status confirmed => feedback
2021-12-29 04:54 chennes Note Added: 0016157
2021-12-29 04:54 chennes Tag Attached: #tobeclosed
2022-01-04 02:32 otoien Note Added: 0016194
2022-01-04 02:32 otoien Status feedback => assigned
2022-01-25 18:55 Kunda1 Status assigned => closed
2022-01-25 18:55 Kunda1 Resolution open => fixed
2022-01-25 18:55 Kunda1 Fixed in Version => 0.20