Add Opacity property for 3D models (lp:#1736956)
Original report created by m (easyw)
This is a topic to be added to a wishlist, more than a bug.
It would be very useful 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.
It could be implemented just adding only when opacity value is less than 1
an optional parameters to the footprint file format.
This would break back compatibility but ONLY if transparency is applied
(opacity less than 1).
Then there would no need to change all the footprint libraries, but it
would add a valuable feature to pcbnew application.
(model ${KISYS3DMOD}/mylib/mymodel.wrl
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
(opacity 0.25)
)
opacity field added to fp (and in the kicad_pcb file) ONLY if its value is
less than 100%
This will place KiCad closer to other well known ECAD software.
Here a related discussion
https://github.com/KiCad/kicad-packages3D/pull/182#issuecomment-349583260
and an image of the Gui to enable this feature
https://user-
images.githubusercontent.com/3032347/33661201-1fa5c34a-da87-11e7-9e14-4abf9c0a7244.png
Original tags: 3d 3d-viewer pcbnew