This is something I already addressed in the past…
It would be very useful IMO to add the ability to assign an ‘opacity’ value to 3D models for the 3D viewer. This option could be just 4 values like 0,0.25,0.75,1 so to be able to specify the transparency of the 3D model (from invisible=0, to completely opaque=1).
This feature would be very useful for mechanical design involving for examples enclosures.
This is how it could be added to the 3D preferences dialog:
I think this would be a really useful feature. I have already had several other project where it could have been applied instead of making multiple versions of the pcb file.
Also put in a vote. Until this potentially gets implemented one can at least turn a model off and on by adding/removing a character (for instance an easily identifiable underscore) to the file name. The additional invalid model file name does not seem to cause any complaints when viewing the board in the 3D viewer (just tested).
I decided to re-suggest this feature only now because I noticed that recently it has been added a ‘bump’ in pcbnew version for an internal field of the footprint …
So I thought that it could be easy done an other small change for a nice improvement…
It could be something to be added only when opacity value less than 100% would be present …
this would break back compatibility but ONLY if transparency is applied (opacity less than 100%).
No need to change all the footprint libraries
something like:
Unfortunately with this trick you can only hide ALL Virtual 3D models and not only selected;
the transparency will be also toggled for all 3D models with a transparency attribute and not for selection…
As I said it is a workaround instead of the desired feature
Thanks so much, this is a great idea. By some reason, only the V hotkey works directly (tried both lower case and shifted keys), but the menu choices under material properties instead of D and A (which are not listed as hotkeys) still works. Perhaps the D and A hotkeys are recent changes that has not gotten into the latest unsigned windows nightly (2017-12-11 revision b395b55a2) yet?
Nice to be able to display the SignalGenerator project with the enclosure non-transparent (also turned off silkscreen on this one to remove the parts extending from the case):
The real life version cannot do the trick with the transparent case (a 1000uF electrolytic capacitor was added post design to slope down power slow enough to save settings on power down):
Oops I forgot that I added ‘A’ and ‘D’ shortcut to my personal build …
also the Virtual option for 3D models came from a previous my build that Mario gently added to the 3D code…
You can toggle the transparency only through the 3d-viewer menu ‘Render option’, ‘Material properties’, ‘Use all properties’ or ‘Use diffuse only’
Thanks for the clarification. Perhaps we could convince the developers to add those shortcuts in the nightly as the ‘V’ shortcut is already there and the D and A letters have not been used up?