Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transparent lines #786

Open
wohltat opened this issue Aug 21, 2021 · 2 comments
Open

transparent lines #786

wohltat opened this issue Aug 21, 2021 · 2 comments

Comments

@wohltat
Copy link

wohltat commented Aug 21, 2021

according to the FreeCAD documentation there is currently no support for transparent lines.
https://wiki.freecadweb.org/Std_SetAppearance

Is this maybe "easily" possible now after the changes to the renderer?
This would be a nice addition for things like the Optics Workbench (https://github.com/chbergmann/OpticsWorkbench).
This is not really important but if it is just like "flipping a switch"/ setting some flags then it might be worth it.


OS: Linux Mint 20.1 (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2021.717.24301 +3842 (Git) AppImage
Build type: Release
Branch: LinkDaily
Hash: 44be6d539871be4083e83f428e8fcfbcf38408ef
Python version: 3.9.6
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.2
Locale: English/United States (en_US)
@wohltat
Copy link
Author

wohltat commented Aug 21, 2021

Transparent lines already work. Can be set under View -> Line Material -> Transparency. Although it is more an Opacity because 0 is transparent and 255 is fully opaque. A 0 - 100 percentage transparency would be more consistent, but so far i'm pretty happy that it is possible.

The "Ctrl + D" (Display Properties) "Line Transparency" is not yet connected though. Shouldn't be too difficult i guess.

The result could look like that. Thanks to the OpticsWorkbench.
image

@wohltat
Copy link
Author

wohltat commented Aug 24, 2021

I just noticed that the the Line Color is not used. Transparency works but its always a transparent yellow line, that looks white if it is very transparent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants