Having trouble installing or compiling FreeCAD? Get help here.
adrianinsaval
Veteran
Posts: 5541 Joined: Thu Apr 05, 2018 5:15 pm
Post
by adrianinsaval » Thu Apr 27, 2023 9:34 pm
You can also try to see how it works with opengl over vulkan. From what I've been reading raspberry pi 4 has vulkan support and to run opengl over vulkan you just set the env variable
Code: Select all
export MESA_LOADER_DRIVER_OVERRIDE=zink
before running FreecAD
-alex-
Veteran
Posts: 1856 Joined: Wed Feb 13, 2019 9:42 pm
Location: France
Post
by -alex- » Fri Apr 28, 2023 7:45 am
adrianinsaval wrote: ↑ Thu Apr 27, 2023 9:34 pm
raspberry pi 4 has vulkan support and to run opengl over vulkan
I was aware about Vulkan support but not about opengl over vulkan, thanks for pointing this out
I'll give it a try
Jolbas
Posts: 327 Joined: Sat Mar 26, 2022 7:48 am
Location: Sweden
Post
by Jolbas » Fri Apr 28, 2023 10:52 am
@-alex- If you could test the updated code on my branch
https://github.com/Jolbas/FreeCAD/tree/ ... sable_drag that would be great and I'll be sure it's an improvement before making a PR.
I have replaced glPolygonMode() and GL_POLYGON with GL_LINE_LOOP which should stop drawing the border color all over the faces.
I replaced the use of glDepthRange() with glPolygonOffset() which hopefully removes the Z fighting (clipping) on your computer.
-alex-
Veteran
Posts: 1856 Joined: Wed Feb 13, 2019 9:42 pm
Location: France
Post
by -alex- » Sat Apr 29, 2023 7:32 pm
Done.
It works like a charm!
NavCube_GL_LINE_LOOP_n_glPolygonOffset_RPI4_EmphaseColor_255.gif (195.36 KiB) Viewed 829 times
Thanks for your efforts to fix this issue, much appreciated!
Code: Select all
OS: Debian GNU/Linux 11 (bullseye) (LXDE/LXDE-pi)
Word size of FreeCAD: 64-bit
Version: 0.21.0.32998 (Git)
Build type: Unknown
Branch: Navicube_disable_drag
Hash: e3b6c8e4957f65d41788975f80116729ea35e853
Python 3.9.2, Qt 5.15.2, Coin 4.0.0, Vtk 7.1.1, OCC 7.5.1
Locale: French/France (fr_FR)
Jolbas
Posts: 327 Joined: Sat Mar 26, 2022 7:48 am
Location: Sweden
Post
by Jolbas » Mon May 01, 2023 4:57 am
-alex- wrote: ↑ Sat Apr 29, 2023 7:32 pm
Done.
It works like a charm!
Great. Thanks for the testing. I will post a PR soon. Need to solve another issue first.
adrianinsaval
Veteran
Posts: 5541 Joined: Thu Apr 05, 2018 5:15 pm
Post
by adrianinsaval » Thu May 04, 2023 9:41 pm
just now merged on master, the problem should be fixed, thanks for your great work @Jolbas
papy
Posts: 245 Joined: Sun Sep 09, 2018 10:00 am
Location: Moselle
Post
by papy » Thu May 04, 2023 9:48 pm
Hi,
Thank you to all the participants, for advancing freeCad in the world of Raspberry pi.