FreeCAD 0.21 and Raspberry Pi 4

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.21 and Raspberry Pi 4

Post by adrianinsaval »

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
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD 0.21 and Raspberry Pi 4

Post by -alex- »

adrianinsaval wrote: Thu Apr 27, 2023 9:34 pm raspberry pi 4 has vulkan support and to run opengl over vulkan
:o I was aware about Vulkan support but not about opengl over vulkan, thanks for pointing this out 8-)
I'll give it a try :D
User avatar
Jolbas
Posts: 327
Joined: Sat Mar 26, 2022 7:48 am
Location: Sweden

Re: FreeCAD 0.21 and Raspberry Pi 4

Post by Jolbas »

@-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.
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD 0.21 and Raspberry Pi 4

Post by -alex- »

Jolbas wrote: 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
Done.
It works like a charm! :D

NavCube_GL_LINE_LOOP_n_glPolygonOffset_RPI4_EmphaseColor_255.gif
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)
User avatar
Jolbas
Posts: 327
Joined: Sat Mar 26, 2022 7:48 am
Location: Sweden

Re: FreeCAD 0.21 and Raspberry Pi 4

Post by Jolbas »

-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.
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.21 and Raspberry Pi 4

Post by adrianinsaval »

just now merged on master, the problem should be fixed, thanks for your great work @Jolbas
User avatar
papy
Posts: 245
Joined: Sun Sep 09, 2018 10:00 am
Location: Moselle

Re: FreeCAD 0.21 and Raspberry Pi 4

Post by papy »

Hi,
Thank you to all the participants, for advancing freeCad in the world of Raspberry pi.
Post Reply