Go to advanced search

by paddyg
Mon Apr 20, 2020 5:35 pm
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1398

Re: PI3D - specify the HDMI port to use

Sven, from James' comment it sounds like there might be issues with that. At some stage I will get a second screen set up and do some experiments... Meanwhile have you managed to get two instances of the PictureFrame app running at the same time? Does it run OK? There might be problems with memory i...
by /tmp/sven
Mon Apr 20, 2020 4:50 pm
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1398

Re: PI3D - specify the HDMI port to use

Creating the pi3d window on the second screen works just fine with: DISPLAY = pi3d.Display.create(x=1920, y=0, w=1920, h=1080, .. Might be off topic now but is there a way to disable the screen spanning having 2 screens (:0.0, :0.1) ...
by paddyg
Mon Apr 20, 2020 1:45 pm
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1398

Re: PI3D - specify the HDMI port to use

... back. OK back now. What I can do on my ubuntu laptop - which sounds like it's the way rasbian might be set up - is to start a second instance of pi3d running, and in that one move the display off to one side. If I make the x position equal to the screen width it goes right off and appears on ...
by /tmp/sven
Mon Apr 20, 2020 1:31 pm
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1398

Re: PI3D - specify the HDMI port to use

Indeed, performance is quite non-existing.

Any other hint to get access to the screens individually in Xorg by 0.0 and 0.1?
by jamesh
Mon Apr 20, 2020 1:22 pm
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1398

Re: PI3D - specify the HDMI port to use

Hey Paddy, thank you for guiding me into the right direction. To get both displays running I can't use 'dtoverlay=vc4-fkms-v3d'. But having this commented out vc4 module isn't loaded. I loaded it by hand and all of a sudden everything just works fine. To sum things up: config.txt [pi4] # dtoverlay=...
by /tmp/sven
Mon Apr 20, 2020 12:43 pm
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1398

Re: PI3D - specify the HDMI port to use

Hey Paddy, thank you for guiding me into the right direction. To get both displays running I can't use 'dtoverlay=vc4-fkms-v3d'. But having this commented out vc4 module isn't loaded. I loaded it by hand and all of a sudden everything just works fine. To sum things up: config.txt [pi4] # dtoverlay=v...
by paddyg
Sun Apr 19, 2020 9:09 am
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1398

Re: PI3D - specify the HDMI port to use

... (using raspi-config/advanced/GLdriver) to Fake KMS. I checked that does indeed toggle the existence of the vc4 line in /proc/modules. So for pi3d to work on RPi4, PLATFORM has to be PLATFORM_LINUX (i.e. 3). (Also the X11 server has to be running, using boot to desktop, startx or xinit etc) ...
by paddyg
Sat Apr 18, 2020 10:47 pm
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1398

Re: PI3D - specify the HDMI port to use

Sven, thanks for having a look at this for me. I'm not sure what you mean by "running any pi3d templates..." have you managed to run any of the pi3d_demos scripts OK before trying to get both screens working? I will have a look on my RPi in the morning and see what's ...
by /tmp/sven
Sat Apr 18, 2020 2:39 pm
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1398

Re: PI3D - specify the HDMI port to use

... is ":0.0" and right display is ":0.1". To answer paddygs question: l /tmp/.X11-unix/ total 0 srwxrwxrwx 1 root root 0 Apr 18 15:44 X0 Running any pi3d templates will result in python to freeze at import 'pi3d' # <_frozen_importlib_external.SourceFileLoader object at 0xb668ecd0> Trying to work ...
by paddyg
Tue Apr 14, 2020 9:07 am
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 265
Views: 51305

Re: Image viewer with transition between images

Chris, glad that your problem seems to be sorted. But it is rather strange! The font being used for displaying with pi3d shouldn't make any difference: In python strings are created by putting characters between quotation marks where the opening and closing quotes are the same. The ...
by paddyg
Sun Apr 12, 2020 1:04 pm
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1398

Re: PI3D - specify the HDMI port to use

... should get something like X0) 2. With two displays ``ls /tmp/.X11-unix`` don't know what you will get but hopefully something additional 3. Edit pi3d/util/DisplayOpenGL.py which will either be in /usr/local/lib/python3.7/dist-packages/ or if you clone the github repository, wherever that is (normally ...
by wcasey
Sun Apr 12, 2020 4:43 am
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1398

Re: PI3D - specify the HDMI port to use

I think I'm looking for the same thing. I want to modify the pi3d PictureFrame.py demo script to simultaneously drive two different displays (HDMI1 and HDMI2) so each frame displays pix from a different subfolder from the other. Can't see how I might specify ...
by paddyg
Sat Apr 11, 2020 10:00 pm
Forum: Graphics programming
Topic: PI3D - specify the HDMI port to use
Replies: 14
Views: 1398

Re: PI3D - specify the HDMI port to use

Hi, it's not obvious! I will play around with this tomorrow and see if I can figure it out. (It will need to have the option added to the arguments of Display.create() as you say.)

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

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 ...
by kaphu
Fri Mar 27, 2020 2:59 pm
Forum: Graphics programming
Topic: Cross-compiling Rust programs that use OpenGLES2
Replies: 7
Views: 1330

Re: Cross-compiling Rust programs that use OpenGLES2

Thanks for the replies. As I was afraid, since the cross-compiling seems not to be trivial at this point, I have little interest in starting a project that would have to be compiled on rpi every time. "cargo check" sounds like a reasonable improvement over traditional c/c++ building cycle, but I don...
by paddyg
Sat Mar 21, 2020 11:13 pm
Forum: Graphics programming
Topic: Cross-compiling Rust programs that use OpenGLES2
Replies: 7
Views: 1330

Re: Cross-compiling Rust programs that use OpenGLES2

Feel free to rummage through https://github.com/paddywwoof/rust_pi3d/ It's an attempt by me to get to grips with Rust by programming something I understood reasonably. I've subsequently tried to add on a pyo3 wrapper to make it back into a python module! PS it works reasonably vanilla on ubuntu lapt...
by paddyg
Tue Mar 17, 2020 10:12 pm
Forum: Beginners
Topic: "canvas" type graphical library?
Replies: 5
Views: 734

Re: "canvas" type graphical library?

pi3d canvas is a bit of a cheat really. pi3d uses OpenGL functionality which is very fast but the 2Dness is simply rendering 3D points, lines and triangles with no perspective. Which is 2D I suppose but things like filled ...
by PiGraham
Tue Mar 17, 2020 12:47 pm
Forum: Beginners
Topic: "canvas" type graphical library?
Replies: 5
Views: 734

Re: "canvas" type graphical library?

... https://www.pygame.org/docs/ref/draw.html tkinter has Canvas with create_line etc https://kite.com/python/docs/Tkinter.Canvas The same is in SDL2 pi3D, which I think can be used for 2D, has canvas https://pi3d.github.io/html/_modules/pi3d/shape/Canvas.html Ditto Qt If you look into most GUI libraries ...
by paddyg
Mon Mar 16, 2020 4:39 pm
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 265
Views: 51305

Re: Image viewer with transition between images

... SD card life and avoiding corruption. PS not tried any of this so it would be interesting to hear if/how it works with python and PictureFrame PPS pi3d subscribes to the MIT license which pretty much says you can do what you want with it but has the potential issue, that you have to pass that on ...
by chris9753
Sun Mar 15, 2020 11:05 pm
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 265
Views: 51305

Re: Image viewer with transition between images

... start_slideshow.sh executed so that wasn’t the problem. But that got me thinking, why did I need a slideshow script at all, why couldn’t I start Pi3d/PictureFrame directly from the crontab? I then deleted the start slideshow script and entered start pi3d/pictureframe directly into the crontab. ...
by chris9753
Sun Mar 15, 2020 3:11 am
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 265
Views: 51305

Re: Image viewer with transition between images

... at the end. That would mean my pi would receive exactly the same input as i was putting in terminal. I've shown this the screenshot below. Sadly, PI3D didn't launch automatically at reboot. The best laid plans .... IMG_0002.jpg Thanks again for your help, Chris
by chris9753
Sat Mar 14, 2020 10:12 pm
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 265
Views: 51305

Re: Image viewer with transition between images

I guess you checked here already (https://www.thedigitalpictureframe.com/how-to-autostart-and-monitor-the-pi3d-image-viewer-on-your-raspberry-pi-2-3-or-4-with-systemd/). Thanks again Wolfgang and yes I have tried to implement this. I was able to correctly install the file, ...
by chris9753
Sat Mar 14, 2020 9:44 pm
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 265
Views: 51305

Re: Image viewer with transition between images

Morning Paddy (or is it evening there? I’m in Australia) and thanks again for your amazingly quick response and help. To answer your questions The model pi I have is a 3b+ Memory = 128 MB Driver = legacy GPU (GL driver is disabled) I have added screenshots to confirm this. IMG_0014.jpg IMG_0016.jpg ...
by chris9753
Sat Mar 14, 2020 10:43 am
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 265
Views: 51305

Re: Image viewer with transition between images

... the ExecStart command straight into terminal. I will describe the effect of this to Paddy as it seems more his area of expertise. Paddy, I do have Pi3d installed and in the correct place. Because PictureFrame crashed when it hits line 19 (Import Pi3d) I had assumed, incorrectly, that it either ...
by paddyg
Fri Mar 13, 2020 10:36 pm
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 265
Views: 51305

Re: Image viewer with transition between images

Chris, you will definitely need to have pi3d installed and PictureFrame definitely needs to import it for the program to run. The standard way is to use pip3 as described on Wolfgang's comprehensive instructions. That process 'simply' copies ...

Go to advanced search