Go to advanced search

by JeDy111
Wed Apr 08, 2020 8:13 pm
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1180

PI3D - specify the HDMI port to use

Hello, In PI3D, is it possible to specify the HDMI port to use? I have two monitors and my python script should display a video on HDMI-0 and PI3D on HDMI-1. Please apologize if the answer is obvious, but I have not been able to find this information in the documentation nor in the examples. I guess...
by JeDy111
Fri Dec 20, 2019 5:03 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

Yes, I use Fake KMS when I run the test on the Pi3, dtoverlay=vc4-fkms-v3d
I agree keeping dispmanx would make things easier.

Thanks for your reply and the link to the other thread. I will probably follow the ffplay path.
by JeDy111
Fri Dec 20, 2019 11:13 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

Hello Paddyg, I have made intensive tests on the 'use_glx=True' option. It seems that it discards the 'layer' option on the Pi4. The code below specifies layer 2 for the omxplayer video and layer 10 for the Pi3D display, thus the Pi3D display should be above the video. It is working fine on a Pi3. H...
by JeDy111
Fri Nov 08, 2019 4:04 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

Very interesting. The Blender offers a wide range of possibilities.
by JeDy111
Fri Nov 08, 2019 9:59 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

Hi paddyg, Zero alpha Plane objects are interesting to dedicate a surface free of Pi3D shapes. Good to know. In my case, it is really glScissor that makes the trick since I want the Pi3D shapes to disappear when they leave a rectangular surface. Based on the pi3d.sprite.ScissorBall example, here is ...
by JeDy111
Thu Nov 07, 2019 9:45 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

Great! In my use case, some portions of the screen should not be overlayed by the Pi3D shapes. The Pi3D shapes must be limited to a rectangular surface. For a seamless integration, this rectangular surface cannot have visible boundaries. Just like it was with Pi3D on DispmanX. I think that a full sc...
by JeDy111
Wed Nov 06, 2019 9:14 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

Hi paddyg, Opaque background with glx is indeed surprising! Can be fixed by disabling glx if alpha=1. I think it is preferable than activating automatically glx if alpha<1 because there could issues on RPI3 on which xcompmgr is not needed. Thanks for the insights and ideas for composition features. ...
by JeDy111
Tue Nov 05, 2019 10:18 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

Test ok on my side on RPI4. Thanks again. For compositing purposes of Pi3D along with others applications such as a video player on the screen, is there a simple way to create the Pi3D Display without the window borders and title which now appears when specifying w and h attributes (when no full scr...
by JeDy111
Mon Nov 04, 2019 9:09 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

I have not succeeded in getting it to work. In order to replace the pi3d and the pyxlib python3 modules, I have renamed their folders in /usr/local/lib/python3.x/dist-packages and copied the pi3d and pyxlib folders from https://github.com/tipam/pi3d/archive/develop.zip to /usr/local/lib/python3.x/di...
by JeDy111
Mon Nov 04, 2019 7:52 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

\o/ Great! Thanks a bunch paddyg, and also 6by9

Does it use libliftoff?
is it possible to create the display with dimensions and position on the screen? If so, is it in a window?

Looking forward playing with it on a PI4 :D
by JeDy111
Fri Nov 01, 2019 11:18 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

I have looked for pointers on how to use DispmanX with OpenGL/ES but my searches lead to the same conclusions as yours. It seems that DispmanX is being replaced by KMS/DRM. Regarding KMS/DRM, there is a thread on which 6by9 mentions https://gitlab.freedesktop.org/mesa/kmscube/ as a starting point: h...
by JeDy111
Fri Nov 01, 2019 9:24 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

What about using DispmanX ?
by JeDy111
Sun Oct 27, 2019 1:44 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

I confirm that I need transparency on the background only, not on shapes. If needed, transparency on some shapes can still be obtained with the set_alpha() method. For compositing purposes, an option to display or hide the window frame (title bar and borders) would be great. It would allow for the s...
by JeDy111
Sun Oct 27, 2019 11:02 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

Thanks a lot Paddy for working this out :)

Let me know if I can help you.
by JeDy111
Fri Oct 25, 2019 9:31 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

I have asked on their github https://github.com/pi3d/pi3d_demos/issues/9 Regarding mechanisms to allow for alpha blended window, I have tried to compile the EGL SDK minimal exemple of creating an RGBA-format window but I am struggling with meson errors to build the EGL SDK and gcc compilation error ...
by JeDy111
Thu Oct 24, 2019 4:08 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

Thanks a lot for your insight 6by9 :)

I guess the next step for solving the issue is to ask the Pi3D project team.
by JeDy111
Thu Oct 24, 2019 2:09 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

Does it mean the issue comes from EGL itself or the way Pi3D uses EGL?

EGL is supposed to handle alpha, if I refer to minimal example of creating an RGBA-format window that allows rendering with OpenGL ES on https://www.khronos.org/registry/EGL/sdk
by JeDy111
Wed Oct 23, 2019 7:07 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

I get the same behavior on x86 as on Pi2 and Pi4 with the MESA driver : windowed when not full screen, and black background. I get EGL errors when I try to run Pi3D from the console on Pi2 and Pi4, MESA driver enabled. The Pi3D FAQ mentions: From RPi4 onwards you have to use the fake KMS driver and ...
by JeDy111
Wed Oct 23, 2019 5:45 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

With legacy GLES ( #dtoverlay=vc4-fkms-v3d ) https://pasteboard.co/IDkH8yB.jpg => no window borders and title => transparency With MESA ( dtoverlay=vc4-fkms-v3d ) https://pasteboard.co/IDkGm5u.jpg => displayed in a window with borders and title => no transparency Sorry for the poor picture quality -...
by JeDy111
Wed Oct 23, 2019 4:29 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

For both pi2 and pi4, the background has no alpha when "dtoverlay=vc4-fkms-v3d" is present.
by JeDy111
Wed Oct 23, 2019 4:20 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

Hi 6by9, Thanks for your reply. I think it is related to the v3d driver. I have run these two tests on a pi2. The only difference is uncommenting the #dtoverlay=vc4-fkms-v3d line in /boot/config.txt [all] #dtoverlay=vc4-fkms-v3d gpu_mem=128 => (0,0,0,0) RGBA background is transparent [all] dtoverlay...
by JeDy111
Wed Oct 23, 2019 12:58 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Re: Pi3D transparent background on Pi4

Hi, It seems the mesa-v3d-VC6 will soon get updates on alpha support: Gitlab - mesa / src / gallium / drivers / v3d - 21 Oct - Revert "v3d: do not report alpha-test as supported" In the meantime, do you know if there is a workaround? Maybe using an other graphic library? Just to be sure the issue is...
by JeDy111
Sat Oct 19, 2019 8:27 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 88
Views: 12659

Pi3D transparent background on Pi4

Hi, The transparent background of a Pi3d display, such as in the Raspberry_Rain.py example, works fine on my Pi2 and on my Pi3. However, when I run the same Pi3D script on my Pi4, the background is black, whether or not I activate the "Open GL driver with fake KMS" in raspi-config and allocate 128 M...
by JeDy111
Wed Sep 11, 2019 9:35 pm
Forum: Graphics, sound and multimedia
Topic: Overlay a video layer with per pixel transparency / alpha blending
Replies: 5
Views: 1184

Re: Overlay a video layer with per pixel transparency / alpha blending

Thanks a lot for your detailed answer. I very much appreciate your help. I can use yuva420p instead of webm VP8. I am new to DRM, MMAL video_render, and I discovered DispmanX recently while working on this issue. Is DispmanX the easiest way to go among the three? Do you have any guidance on how to p...
by JeDy111
Wed Sep 11, 2019 1:23 pm
Forum: Graphics, sound and multimedia
Topic: Overlay a video layer with per pixel transparency / alpha blending
Replies: 5
Views: 1184

Re: Overlay a video layer with per pixel transparency / alpha blending

Thanks 6by9 for your reply. The per-pixel alpha source could be a webm VP8 encoded video file like those used in https://simpl.info/videoalpha/ . By the way, for some reason, this URL freezes Chromium and FirefoxESR on my PI4. The per-pixel alpha source could also one listed on Video Codecs and Imag...

Go to advanced search