Go to advanced search

by paddyg
Fri Aug 23, 2019 11:27 am
Forum: Python
Topic: STICKY: [announcement] python 2 end of life
Replies: 20
Views: 3706

Re: python 2 end of life

... the last to be tested with python2. The list includes virtually every common add-on module for python. I, for one, have already pushed testing pi3d with python2 to a low priority, cursory final check and most developers are desperate to ditch it completely!
by sapnho
Wed Aug 21, 2019 9:05 am
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 216
Views: 36673

Re: Image viewer with transition between images

... in portrait mode. The exif info is there, as gpicview is showing the images rotated correctly. Any idea how to fix this? As far as I understand, Pi3D does not look at the Exif data for the file orientation. But it still works fine here, so there may be another thing that causes this. @paddyg: ...
by Gavinmc42
Sun Aug 18, 2019 10:18 am
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

Re: Pi3D

Understanding the difference between VC4 and VC6 shaders is causing me trouble. So I'm going to see if using Python for quick testing will help. Water and clouds I nearly get, but procedural grass? Is it possible? From the WebGL samples it should be , these work on a Pi4. http://webglsamples.org/fie...
by paddyg
Sun Aug 18, 2019 9:02 am
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

Re: Pi3D

... that in the Rust version at the moment as it gives much more helpful error messages from faults in the shader code. I will port it over to python pi3d ASAP. So far as I can tell there is zero difference in execution speed for the same demo running as GL2.1 GLES2.0 or GLES3.0 but that's possibly ...
by Gavinmc42
Sun Aug 18, 2019 7:23 am
Forum: Python
Topic: Pi3D
Replies: 244
Views: 40247

Re: Pi3D

Been climbing the OpenGL learning curve since the Pi4 came out. Trying examples in a few languages, most work :D Then I remembered Pi3D. It works quite fast on a Pi4 now, even in large windows. It looks like Pi3D might be useful for learning without being annoyingly slow ;) Time to read ...
by aardvarkkrill
Tue Jul 30, 2019 8:44 am
Forum: Python
Topic: seeking 2D graphics engine for Python
Replies: 10
Views: 618

Re: seeking 2D graphics engine for Python

... make it think you're running on linux x11 system it probably possibly will (-SFML_OS_LINUX=1 kind of thing?). That's basically what I did to get pi3d to work. A few people have used pi3d for 2D stuff (despite the name) such as here , here or here also general video of the tests. It doesn't have ...
by sapnho
Mon Jul 29, 2019 5:46 pm
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 216
Views: 36673

Re: Image viewer with transition between images

Thanks to @paddyg, Pi3D now works on the Pi 4. I have updated my article to reflect the changes: https://www.thedigitalpictureframe.com/ ... sing-pi3d/
by paddyg
Fri Jul 26, 2019 9:21 pm
Forum: Python
Topic: seeking 2D graphics engine for Python
Replies: 10
Views: 618

Re: seeking 2D graphics engine for Python

... make it think you're running on linux x11 system it probably possibly will (-SFML_OS_LINUX=1 kind of thing?). That's basically what I did to get pi3d to work. A few people have used pi3d for 2D stuff (despite the name) such as here , here or here also general video of the tests. It doesn't have ...
by Gavinmc42
Fri Jul 26, 2019 1:41 am
Forum: Other programming languages
Topic: Baremetal + Rust - choosing the correct AArch64 build target
Replies: 3
Views: 1349

Re: Baremetal + Rust - choosing the correct AArch64 build target

... Assembler, C, C++, Pascal and Rust. The baremetal forum has links to those. Rust baremetal will be interesting if it can use Paddy's Pi3D Rust code. But learning those other baremetal versions will help porting to Rust. How much Rust RTL needs to be done depends on the application. ...
by sapnho
Thu Jul 25, 2019 5:09 pm
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 216
Views: 36673

Re: Image viewer with transition between images

Hi @DDIT, does it work in the Terminal when you enter

Code: Select all

 cd pi3d_demos 
 python3 PictureFrame.py
?
by DDIT
Thu Jul 25, 2019 4:36 pm
Forum: General discussion
Topic: Image viewer with transition between images
Replies: 216
Views: 36673

Re: Image viewer with transition between images

Hi, I have followed this thread and the excellent guide at www.thedigitalpictureframe.com! I'm 99% there, all is working, with the exception of the @reboot cron job and I'm stuck :cry: My cron line looks like this @reboot /home/pi/start_slideshow.sh >> /home/pi/cron.log 2>&1 The start_slideshow.sh s...
by Gavinmc42
Tue Jul 23, 2019 9:02 am
Forum: OpenGLES
Topic: RPi4 Problem drawing GL_POINTS anyone?
Replies: 30
Views: 5173

Re: RPi4 Problem drawing GL_POINTS anyone?

I also need to benchmark GL verses GLES. Subjectively there didn't seem any difference but maybe that's because I have restricted pi3d to ES compatible functions I'm pretty sure the VC6 hardware is OpenGLES not OpenGL which is emulated. But the OpenGLES is 3.0 at least, not sure if that ...
by paddyg
Tue Jul 23, 2019 8:15 am
Forum: OpenGLES
Topic: RPi4 Problem drawing GL_POINTS anyone?
Replies: 30
Views: 5173

Re: RPi4 Problem drawing GL_POINTS anyone?

... bench marks. I also need to benchmark GL verses GLES. Subjectively there didn't seem any difference but maybe that's because I have restricted pi3d to ES compatible functions
by paddyg
Mon Jul 22, 2019 1:45 pm
Forum: OpenGLES
Topic: RPi4 Problem drawing GL_POINTS anyone?
Replies: 30
Views: 5173

Re: RPi4 Problem drawing GL_POINTS anyone?

... Skillmans ship_demo. PeterO, I'm not sure about the documentation in the gl crate or how much hasn't been implemented, as I really just took the pi3d cytpes based code and changed gl.glCullFace(GL_FRONT) to gl::CullFace(gl::FRONT) etc and it just worked... or didn't in the same way. However I ...
by Gavinmc42
Mon Jul 22, 2019 9:26 am
Forum: OpenGLES
Topic: RPi4 Problem drawing GL_POINTS anyone?
Replies: 30
Views: 5173

Re: RPi4 Problem drawing GL_POINTS anyone?

... out a missing freeglut install fixed the mesa demos. Can now compare working C examples against Pascal OpenGL code. And once Paddy has his new Pi3D going, Rust versions. I wonder if we can get a a new OpenGL subsection now. Not sure if this should be buried in the OpeGLES section? The Terrain ...
by paddyg
Sun Jul 21, 2019 7:14 am
Forum: OpenGLES
Topic: RPi4 Problem drawing GL_POINTS anyone?
Replies: 30
Views: 5173

Re: RPi4 Problem drawing GL_POINTS anyone?

Yes that's exactly the reason (CW triangles as opposed to CCW). At some point in the past (I like to think before I was involved) the meshes in pi3d got defined as clockwise => forward but with matching normal vectors so was self consistent. At a later stage, the (probably my) hack to improve ...
by Paeryn
Sun Jul 21, 2019 12:09 am
Forum: OpenGLES
Topic: RPi4 Problem drawing GL_POINTS anyone?
Replies: 30
Views: 5173

Re: RPi4 Problem drawing GL_POINTS anyone?

Hi, found the problem. It was the line glCullFace(GL_FRONT) which I set as standard at the start of pi3d but which seems to stop rendering points and lines only on Raspberry Pi 4 - not sure if it's a feature! Phew.. now I need to update pi3d and push out the next version. ...
by paddyg
Sat Jul 20, 2019 7:34 pm
Forum: OpenGLES
Topic: RPi4 Problem drawing GL_POINTS anyone?
Replies: 30
Views: 5173

Re: RPi4 Problem drawing GL_POINTS anyone?

Hi, found the problem. It was the line

Code: Select all

glCullFace(GL_FRONT)
which I set as standard at the start of pi3d but which seems to stop rendering points and lines only on Raspberry Pi 4 - not sure if it's a feature!
Phew.. now I need to update pi3d and push out the next version.

Paddy
by paddyg
Sat Jul 20, 2019 8:01 am
Forum: OpenGLES
Topic: RPi4 Problem drawing GL_POINTS anyone?
Replies: 30
Views: 5173

Re: RPi4 Problem drawing GL_POINTS anyone?

... inside python. It is odd that it works OK (obviously just by chance) on other setups apart from the RPi4 and that the Rust translation of the pi3d code behaves the same way (probably means the error is inside an unsafe { } so that narrows it down a bit...).
by paddyg
Sat Jul 13, 2019 10:49 pm
Forum: OpenGLES
Topic: RPi4 Problem drawing GL_POINTS anyone?
Replies: 30
Views: 5173

RPi4 Problem drawing GL_POINTS anyone?

Has anyone either drawn points without any issues or run into problems with the same code that works OK on previous versions? If I put a buster SD card (which works fine in RPi3) into a RPi4 I'm missing the points. (If I switch to the legacy shader the rust code shows points but runs very slowly, th...
by lutzh86
Thu Jul 04, 2019 5:54 am
Forum: Automation, sensing and robotics
Topic: Looking for help with open smart home interface based on pi zero
Replies: 10
Views: 548

Re: Looking for help with open smart home interface based on pi zero

... 315/433/868 / 915Mhz and act as "CUL". The ATmega is flashable during operation and our basic software for the ATmega runs perfectly. Thanks to Pi3D, our GUI runs very smoothly -> https://www.youtube.com/watch?v=BQ9_d_OxGcY&t=4s The shown surveillance stream is FullHD and takes a bit time :-)
by paddyg
Wed Jul 03, 2019 10:07 pm
Forum: Python
Topic: PI3D - Rotating around local axis
Replies: 7
Views: 1743

Re: PI3D - Rotating around local axis

Chris & @cowminer27, I think setting absolute=True would make the rotation about y axis act on the world vertical axis and rotation about the x axis act on the horizonal axis (horizontal in world space, but rotated with camera rotation about vertical axis) To test this (in ForestWalk with absolute=T...
by cowminer27
Wed Jul 03, 2019 9:53 pm
Forum: Python
Topic: PI3D - Rotating around local axis
Replies: 7
Views: 1743

Re: PI3D - Rotating around local axis

Thanks, I've not messed with this project for a while (I realise now that I never replied to paddy). I suspect that parameter didn't exist back then, but if it did, I missed something super obvious, my bad. Either way, I believe I ended up solving it using Paddy's solution above, but I lost the code...
by chris-bunting
Wed Jul 03, 2019 7:53 pm
Forum: Python
Topic: PI3D - Rotating around local axis
Replies: 7
Views: 1743

Re: PI3D - Rotating around local axis

... each iteration, because these then apply to local camera coordinates, and not world coordinates. The code would look something like this: camera = pi3d.Camera(absolute=True) while display.loop_running(): camera.rotateY(angley) camera.rotateX(anglex)
by paddyg
Wed Jun 19, 2019 8:00 pm
Forum: Python
Topic: Problem with function set_background or set_material in pi3d
Replies: 3
Views: 421

Re: Problem with function set_background or set_material in pi3d

glad you sorted it. It is a bit inconsistent but the reason it evolved that way is because the GPU colour and alpha values are floats 0.0 to 1.0 so the numbers you feed into Display.create() just get passed on in opengles functions. Textures, however, generally get their values from image files or P...

Go to advanced search