Go to advanced search

by paddyg
Sun Nov 03, 2019 11:30 pm
Forum: Python
Topic: class Texture
Replies: 2
Views: 357

Re: class Texture

Yes the docs FAQ probably needs some additional info about big Textures. Before the RPi4 it was possible to run two instances of pi3d using the old bcm driver and split a texture, but with the latest model and Fake KMS you can do 4K OK, so the extra parameter to Texture() sneaked in. The ...
by paddyg
Sun Nov 03, 2019 11:04 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

Yoohoo, result! pi3d X11 window (on ubuntu laptop but should transfer to Pi4)
scrshot.jpg
scrshot.jpg (111.61 KiB) Viewed 715 times
by Paeryn
Sun Nov 03, 2019 10:29 pm
Forum: Python
Topic: class Texture
Replies: 2
Views: 357

Re: class Texture

It looks as those widths are to work around limitations of the original VC4 hardware (max width was 2048 and from the notes it looks like Pi3d had issues with widths other than those listed). You can override Pi3d's scaling to those widths by adding automatic_resize=False to the arguments when ...
by FLapique
Sun Nov 03, 2019 7:39 pm
Forum: Python
Topic: class Texture
Replies: 2
Views: 357

class Texture

I'm using pi3d to display 4K images ( PictureFrame.py). Is there a way of using large image ?
Allowed widths 4, 8, 16, 32, 48, 64, 72, 96, 128, 144, 192, 256, 288,
384, 512, 576, 640, 720, 768, 800, 960, 1024, 1080, 1920
by paddyg
Fri Nov 01, 2019 1:41 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

Interesting. Will definitely follow up.
by 6by9
Fri Nov 01, 2019 1:01 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

I have recently learnt of the existence of libliftoff and liboutput as lightweight helper libraries for setting stuff up in DRM/KMS. I haven't used either of them myself, but they might warrant a little investigation.
by paddyg
Fri Nov 01, 2019 12:20 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

Yes, that probably is the case :( The KMS,DRM route leads to the C example on my earlier post... but converting that to python ctypes looks pretty tough. However the use of libGLX seems a bit more feasible and the C version seemed reasonably easy to get working on the RPi4 so I will try to use that ...
by JeDy111
Fri Nov 01, 2019 11:18 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

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 paddyg
Fri Nov 01, 2019 10:27 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

@JeDy111, that is exactly what I would like to be able to do as if follows what pi3d did on previous versions of the RPi. The code was started from the examples in /opt/vc/ which showed how to use the libELG.so and libGLESv2.so libraries for fast 3D rendering. However ...
by JeDy111
Fri Nov 01, 2019 9:24 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

What about using DispmanX ?
by paddyg
Thu Oct 31, 2019 10:08 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

... in a terminal produces some weird disapearing windows and error messages it does make the demo work. So all I have to do is get it working from pi3d.
by paddyg
Thu Oct 31, 2019 8:29 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

... C version working with a transparent background and a solid cube! Then the ordeal of getting it to do the same from python. The option of using pi3d without X11 desktop is actually preferable for some dedicated apps where the frame rate gets a boost from lightening the CPU overhead. Thanks again.
by 6by9
Thu Oct 31, 2019 4:39 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

... done by taking a snap of what was on the screen then using it as background for the window. However this is unsatisfactory if the stuff behind the pi3d window is changing (a video say). Not my area of expertise, but does https://stackoverflow.com/questions/40676229/linux-x11-transparent-opengl-object-on-transparent-window-with-solid-backgroun ...
by paddyg
Thu Oct 31, 2019 4:10 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

... done by taking a snap of what was on the screen then using it as background for the window. However this is unsatisfactory if the stuff behind the pi3d window is changing (a video say). The alternative approach would be to have a system using KMS like this https://www.raspberrypi.org/forums/viewtopic.php?t=243707#p1499181 ...
by JeDy111
Sun Oct 27, 2019 1:44 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

... window frame (title bar and borders) would be great. It would allow for the same behavior as with the legacy driver, which is well suited to mix Pi3D rendering and others layers.
by paddyg
Sun Oct 27, 2019 11:58 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

It's something that's been niggling for a while.

Just to check; for your purposes is it no use making the whole window partly transparent (as attached) as opposed to the background only?
scrshot.jpg
scrshot.jpg (104.9 KiB) Viewed 1483 times
by JeDy111
Sun Oct 27, 2019 11:02 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

Thanks a lot Paddy for working this out :)

Let me know if I can help you.
by paddyg
Sat Oct 26, 2019 9:42 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

OK the rust_pi3d transparency works on my laptop and was easy enough to do. But it's setting the opacity of the whole window not just the background. I will have another think about this.
by paddyg
Sat Oct 26, 2019 8:49 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

Hi, Yes it's a pity about the transparent background that used to be available with the old bcm display surface. For the RPi4 I get pi3d to check /proc/modules for vc4 https://github.com/tipam/pi3d/blob/1478c2d4961b870e99713b9ae43e03cb3dbc1f1f/pi3d/constants/__init__.py#L81 and if it's there ...
by JeDy111
Fri Oct 25, 2019 9:31 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

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 ...
by 6by9
Thu Oct 24, 2019 4:41 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

JeDy111 wrote:
Thu Oct 24, 2019 4:08 pm
I guess the next step for solving the issue is to ask the Pi3D project team.
I would. I believe there are mechanisms to allow for alpha blended windows, but I don't know what they are.
by JeDy111
Thu Oct 24, 2019 4:08 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

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 6by9
Thu Oct 24, 2019 3:25 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

Re: Pi3D transparent background on Pi4

If x86 does the same as the Pi via Mesa, then that sounds like it is the way Pi3d is driving EGL. My understanding of EGL is the same as yours in that it should be possible to render to a window with alpha, but X may block that. The reference to fake KMS in the ...
by JeDy111
Thu Oct 24, 2019 2:09 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3064

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: 72
Views: 3064

Re: Pi3D transparent background on Pi4

... 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 start the ...

Go to advanced search