Go to advanced search

by paddyg
Thu Nov 14, 2019 10:22 am
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 216
Views: 36672

Re: Image viewer with transition between images

... get installed for root and then there are subsequent permission issues. The best way (that I have found) is to use --user. i.e. $ pip3 install pi3d --user and subsequently $ pip3 install pi3d --upgrade --user Also if the EXIF reading occasionally goes wrong with PIL using the version that comes ...
by sapnho
Thu Nov 14, 2019 9:55 am
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 216
Views: 36672

Re: Image viewer with transition between images

I can answer that myself. I need to sudo pip3 install pi3d --upgrade Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting pi3d Downloading https://files.pythonhosted.org/packages/ed/1e/a9ce342e89305c444494dc1be5054bc9646dc10128177f418a5f18c649ac/pi3d-2.33-py2.py3-none-any.whl ...
by sapnho
Thu Nov 14, 2019 9:55 am
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 216
Views: 36672

Re: Image viewer with transition between images

I can answer that myself. I need to sudo pip3 install pi3d --upgrade Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting pi3d Downloading https://files.pythonhosted.org/packages/ed/1e/a9ce342e89305c444494dc1be5054bc9646dc10128177f418a5f18c649ac/pi3d-2.33-py2.py3-none-any.whl ...
by sapnho
Thu Nov 14, 2019 9:52 am
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 216
Views: 36672

Re: Image viewer with transition between images

@paddyg, when I enter

Code: Select all

[email protected]:~ $ sudo pip3 install pi3d
I still get 2.32
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pi3d in /usr/local/lib/python3.7/dist-packages (2.32)
Anything I am doing wrong?
by Gavinmc42
Thu Nov 14, 2019 1:40 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

Had trouble with this line display.set_opacity(0.9); Probably need to update the rest of the code/library, I used my existing version But once commented out it compiled and worked. Ok, display.rs has changed Yep raymarching is slow., but still cool. Thanks Paddy- now have Rust shader code to have fu...
by paddyg
Wed Nov 13, 2019 11:27 pm
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 216
Views: 36672

Re: Image viewer with transition between images

... The second thing would be the EXIF rotation functionality but at the moment that is only in PictureFrame_rotate.py in the develop branch of pi3d so less likely to be that unless you're being adventurous (though I'm going to push out a new version of pi3d tonight and it will go live then!) ...
by twowheelrose
Wed Nov 13, 2019 7:54 pm
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 216
Views: 36672

Re: Image viewer with transition between images

I am leveraging Pi3D for a digital photo frame capability and I am having issues displaying portrait images.. I am running Buster on a RPI4 the OS as well as Pi3D are fresh bits as of today. I followed the instructions on https://www.thedigitalpictureframe.com/how-to-add-crossfading-slide-transitions-to-your-digital-picture-frame-using-pi3d/ ...
by paddyg
Wed Nov 13, 2019 3:19 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

Gavin, I was going to say no - the direct entry of shader code as strings hasn't been added to rust_pi3d... But when I looked it seemed I had left the functions public to do just that. So I just copy pasted from my earlier pi3d example and it worked straight off . On this ...
by Gavinmc42
Wed Nov 13, 2019 2:42 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

... without a noticeable difference from high. In water and cloud shaders with perlin noise and fbm it does not seem to matter about precision. Rust Pi3D seems ok for the short time I played with it.
by paddyg
Tue Nov 12, 2019 12:30 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

Just tried https://github.com/paddywwoof/rust_pi3d on gentoo64 and it seems to render fine. The Rust version uses SDL2 so that looks to be the simplest option - to crank pi3d over to SDL. That will probably be a fairly major mod (though non-breaking ...
by 6by9
Tue Nov 12, 2019 12:12 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

So is EGL used in VC6 OpenGL or dispmanx used instead? Those layers confuse me. Hard to believe someone understands that V3D drm code, not sure where EGL fits in that lot. But if dispmanx is being used for compositing were is that happening? In drm/vc4? Still clueless :oops: https://www.khronos.org...
by Gavinmc42
Tue Nov 12, 2019 9:50 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

There isn't a 64bit Raspbian, only a 64bit kernel that you can run underneath the 32bit userspace. Whoops noobie mistake, kernel is not OS. Raspbian python will still be 32bit? But Python3 int is same as long int from Python2? Ok, I'm clueless now. Dispmanx is very close to EGL I'm not sure I'd cla...
by 6by9
Tue Nov 12, 2019 7:44 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

There isn't a 64bit Raspbian, only a 64bit kernel that you can run underneath the 32bit userspace. Debian supports 64bit ARM, but you may have to jump through a couple of hoops to get it running on a Pi. eg Raspbian is running a more recent version of mesa than Debian. I did notice dispmanx is still...
by Gavinmc42
Tue Nov 12, 2019 2:06 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

I did notice dispmanx is still used in fkms mode. I don't think kms mode is bug free yet on Pi4's. Dispmanx is very close to EGL? vcgencmd dispmanx_list display:2 format:XRGB8888 transform:0 layer:-127 2560x1024 src:0,0,1280,1024 dst:0,0,1280,1024 cost:801 lbm:0 display:7 format:XRGB8888 transform:0...
by Gavinmc42
Tue Nov 12, 2019 1:59 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

... had to change much example code to get it to work. Still looking for a nice 64bit OS with Wayland instead of x11 to test OpenGL in that. Getting Pi3D to work in Gentoo opens it up to other OS's. Ubuntu is coming along. The Pi4 with 64bit OS's are going to be popular once the bugs are worked out. ...
by paddyg
Mon Nov 11, 2019 11:13 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

... is on. So maybe I should use that. If pygame with pyopengl works on gentoo that might be a possibility. If it works then I might boil the pi3d pygame option down to SLD instead. Hmm... PPS just started genup: predicting 12,000 seconds! I will leave it till the morning.
by Gavinmc42
Mon Nov 11, 2019 9:22 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

Just a thought, have you tried on 64bit Raspbian Buster?
by Gavinmc42
Mon Nov 11, 2019 9:03 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

... have Aurora and Chromium open with 20+ tabs and compiling. I will see if I can use my setup to make the transparent Raspberry demo. yikes, pi3d everywhere in it ;) Edit libx11.so etc are in /usr/lib64/ not sure if that makes a difference, I noticed Gentoo uses the lib64 folder Integer problem? ...
by paddyg
Mon Nov 11, 2019 3:07 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

Gavin, There's a script in pi3d/experiments/ that I've used for finding leaks in python in the past. GPU is much harder as the python GC won't tidy it up - you just have to keep track and destroy things. I've eliminated a few reasons why ...
by Gavinmc42
Sun Nov 10, 2019 12:34 pm
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

PyOpenGL and Pyglet work on Gentoo64. I got ambitious and compiled Panda3d, which made a deb install somewhere, which is useless on Gentoo? Only took 3+hours to compile :o Needed something with a simple game engine. Which Panda is not but the demos look cool It would be nice to get P3D working, but ...
by paddyg
Sun Nov 10, 2019 8:31 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

... a python int is fed into a c function. Also it uses ctypes.c_int in quite a few places which probably should be c_int32 or other way round! But pi3d works fine on 64b Ubuntu laptop. libbcm isn't available in RPi4 so those calls won't do anything. So RASPBERRY_PI4 isn't needed it's just another ...
by Gavinmc42
Sun Nov 10, 2019 4:17 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

Ok, just guessing now but it look like Pi4 is x11 so use this"xlib.XOpenDisplay"
need to add

Code: Select all

elif PLATFORM == PLATFORM_PI4
But pygame worked too?

bcm.bcm_host _init gave error
by Gavinmc42
Sun Nov 10, 2019 4:03 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

... it out. This pops open a pygame window. Interesting it says my screen width is 2560, which in my dual system is both 1280 screen. Now to swap pi3d for pygame #!/usr/bin/env python import ctypes import platform import time import sys import pygame def main(args): print('hello world') pygame.init() ...
by Gavinmc42
Sun Nov 10, 2019 3:26 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

I have the Mesa demos compiled eglinfo reports stuff like this X11 platform: EGL API version: 1.4 EGL vendor string: Mesa Project EGL version string: 1.4 EGL client APIs: OpenGL OpenGL_ES last lines Device platform: eglinfo: eglInitialize failed but xeglgears works, so do most of the others, eglkms ...
by paddyg
Sun Nov 10, 2019 1:05 am
Forum: Graphics programming
Topic: Pi3D transparent background on Pi4
Replies: 72
Views: 3019

Re: Pi3D transparent background on Pi4

Had a look at this and for some reason the egl functions don't work properly around here Almost certainly the wrong kind of pointer annoying as the same code works ok other places 32 or 64 bit. The egl.h is rather opaque and the pyopengl code also pretty hard to figure - but I suppose I will have to...

Go to advanced search