Go to advanced search

by Daniel Gessel
Fri Jan 31, 2020 11:27 pm
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 36755

Re: Future of raspberry pi - software related

Considering how "niche" 3D is in the education context I'm surprised they've put as much resource into openGLES, though I guess originally it came pretty much for free in the existing firmware on the earlier PIs. Hopefully, then, this represents a change and we’ll get some extra attention for 3D gr...
by Daniel Gessel
Fri Jan 31, 2020 10:39 pm
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 36755

Re: Future of raspberry pi - software related

Vulkan is coming: https://www.raspberrypi.org/blog/vulkan-raspberry-pi-first-triangle/ I guess it’s time to learn a new API! TBH I'd prefer they got openGLES finished first ! PeterO Define finished. The Pi4 is now compliant to GLES 3.1, and I suspect we'll bump mesa shortly to pick that up. There i...
by Daniel Gessel
Fri Jan 31, 2020 7:24 pm
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 36755

Re: Future of raspberry pi - software related

Vulkan is coming:

https://www.raspberrypi.org/blog/vulkan ... -triangle/

I guess it’s time to learn a new API!
by Daniel Gessel
Tue Jan 28, 2020 12:33 pm
Forum: Graphics, sound and multimedia
Topic: External MIDI hardware and Sonic Pi
Replies: 9
Views: 1554

Re: External MIDI hardware and Sonic Pi

Has anyone used Orca? https://github.com/hundredrabbits/Orca A very different sort of language! It looks like fun, and the new C99 implementation may be able to to control external MIDI synths on RPi. I haven’t tried (and have no external midi synths, only midi controllers). My personal interests le...
by Daniel Gessel
Mon Jan 27, 2020 7:15 pm
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 36755

Re: Future of raspberry pi - software related

What was the question? Oh, right, the value of SW features that reduce SD card wear: consider the Pi Zero. Often used in applications where most other storage devices are impractical (even a thumb drive would stick out like a sore... well, thumb). Little robots and music players and the like. So I’d...
by Daniel Gessel
Thu Jan 23, 2020 2:10 pm
Forum: OpenGLES
Topic: Where's my Triangle??
Replies: 44
Views: 5557

Re: Where's my Triangle??

I always use Legacy drivers and OpenGLES2.0 OpenGL is nice but there's a few things emulated that impact on performance, much better in my mind to use the systems the GPU was intended to use. Apologies, I wasn’t clear: I meant that getting GPU accelerated OpenGL or GLES in an X window requires usin...
by Daniel Gessel
Thu Jan 23, 2020 1:03 pm
Forum: OpenGLES
Topic: Where's my Triangle??
Replies: 44
Views: 5557

Re: Where's my Triangle??

When using dispmanx to create a surface for GL rendering, you get an overlay, which is a second framebuffer the scanout hardware composes with the standard X11framebuffer. This is different than using the GPU to composite X11 windows, which is done by xcompmgr via GL calls all in a single display fr...
by Daniel Gessel
Wed Jan 22, 2020 2:32 pm
Forum: OpenGLES
Topic: RPi4 Problem drawing GL_POINTS anyone?
Replies: 38
Views: 9307

Re: RPi4 Problem drawing GL_POINTS anyone?

I've tried it with GL_DEPTH_TEST on and off (generally I leave it off so the points are always visible), and I've tried glVertex3f with various z values that should work with no changes. It always works on my Pi3 but not on my Pi4. Previously I was using glDrawArrays(GL_POINTS,..... ) and ran into ...
by Daniel Gessel
Tue Jan 21, 2020 2:02 pm
Forum: C/C++
Topic: Mouse position in C++ Not with X11 but DispmanX
Replies: 45
Views: 2937

Re: Mouse position in C++ Not with X11 but DispmanX

There is NO hardware cursor support in dispmanx, it just draws what it is told - bitmaps. Sometimes, one of those bitmaps MIGHT be a cursor but dispmanx has no idea - it's just a bitmap it needs to display. So we can expect no support for e.g, drmModeSetCursor but maybe we could use a small plane w...
by Daniel Gessel
Tue Jan 21, 2020 11:39 am
Forum: C/C++
Topic: Mouse position in C++ Not with X11 but DispmanX
Replies: 45
Views: 2937

Re: Mouse position in C++ Not with X11 but DispmanX

Its my understanding, that Pi1,2,3 etc do not use X11 (I don't doubt that they can, I've just never tried it). The standard way to open a window on these systems is to use DispmanX. This is what I've been doing for a couple of years now. If you are running the Raspian GUI, you are running X11. What...
by Daniel Gessel
Tue Jan 21, 2020 11:17 am
Forum: C/C++
Topic: Mouse position in C++ Not with X11 but DispmanX
Replies: 45
Views: 2937

Re: Mouse position in C++ Not with X11 but DispmanX

well I don't instansiate an xwindow (except on Pi4 which is X11,), I create a dispmanx window on pi 1,2,3 ... no X11 in sight so no way to use XQueryPointer Edit: You need to open a connection to the X11 server. Probably sufficient to just call XOpenDisplay and use XDefaultRootWindow to have a wind...
by Daniel Gessel
Tue Jan 21, 2020 10:30 am
Forum: C/C++
Topic: Mouse position in C++ Not with X11 but DispmanX
Replies: 45
Views: 2937

Re: Mouse position in C++ Not with X11 but DispmanX

PeterO wrote:
Tue Jan 21, 2020 10:02 am
Daniel Gessel wrote:
Tue Jan 21, 2020 1:51 am
At some point I plan to tackle setting up a HW cursor and mouse input, but I haven’t looked into it (much) yet.
When you get round to it, this will be useful !
https://www.kernel.org/doc/html/v4.17/input/index.html
PeterO
Thanks! Bookmarked!
by Daniel Gessel
Tue Jan 21, 2020 10:29 am
Forum: C/C++
Topic: Mouse position in C++ Not with X11 but DispmanX
Replies: 45
Views: 2937

Re: Mouse position in C++ Not with X11 but DispmanX

On other X11 systems I can use XqueryPointer passing some X window info to get cursor pointers, but I'm struggling to find equivilents on Raspbian version on older Pi's (Pi4 uses X11). All the Pi’s use X11. VC4 based Pi’s, with the legacy drivers, require you create an overlay for GLES rendering (w...
by Daniel Gessel
Tue Jan 21, 2020 1:51 am
Forum: C/C++
Topic: Mouse position in C++ Not with X11 but DispmanX
Replies: 45
Views: 2937

Re: Mouse position in C++ Not with X11 but DispmanX

When X isn’t running, there’s still the path to a GUI with KMS (with or without GLES and gbm). At some point I plan to tackle setting up a HW cursor and mouse input, but I haven’t looked into it (much) yet. I believe there is a way to read keyboard and mouse events from /dev/something_or_other and t...
by Daniel Gessel
Fri Jan 17, 2020 2:38 pm
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 36755

Re: Future of raspberry pi - software related

Daniel Gessel, I wonder what focus is a priority for others? No idea really. I have lost track of all these accelerated graphics standards. I'm never likely to want to be using any such API directly anyway. But whatever makes webgl fly would be great. As used by libraries like THREEJS and Babylon.j...
by Daniel Gessel
Fri Jan 17, 2020 2:16 pm
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 36755

Re: Future of raspberry pi - software related

(A part of) The future of Raspberry Pi finally came to us today : Igalia just announced that the Pi 4 is now an official OpenGL ES 3.1 conformant product ! https://blogs.igalia.com/itoral/2020/01/17/raspberry-pi-4-v3d-driver-gets-opengl-es-3-1-conformance/ Nice work guys ;) Tweet from Eben https://...
by Daniel Gessel
Thu Jan 16, 2020 4:43 pm
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 36755

Re: Future of raspberry pi

Interesting. We want to move away from anything accessing the HW directly, so from C would recommend libgio (package gpiod). pigpio we install by default, but not sure how that access the pins - if it's not via libgpio then we should probably consider moving away from that. There is a python bindin...
by Daniel Gessel
Thu Jan 16, 2020 1:15 pm
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 36755

Re: Future of raspberry pi - software related

This is a nice to have feature(may be very difficult to implement), but how about a forum app that comes pre-installed on the raspberry pi. This way, pi users get exposed to the forum automatically and they get their questions cleared. The interface should be fairly easy to use, just like browser v...
by Daniel Gessel
Thu Jan 16, 2020 1:33 am
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 36755

Re: Future of raspberry pi - software related

emma1997 wrote:
Thu Jan 16, 2020 1:28 am
Hah... I think I see a tiny forth in there too.
But Lisp and Prolog are just floating in the clouds above...
by Daniel Gessel
Wed Jan 15, 2020 8:59 pm
Forum: Graphics, sound and multimedia
Topic: Novation Launchpad X
Replies: 0
Views: 241

Novation Launchpad X

Totally new to this. I’ve got a Novation Launchpad X and I’d like to get it to work on my Pi4. I guess my hope that midi devices were a bit like mice, standardized enough to use a common driver, was naive. From my reading so far, the lowest level check I can do is to use dmesg. Nothing new shows up ...
by Daniel Gessel
Wed Jan 15, 2020 5:57 pm
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 36755

Re: Future of raspberry pi - software related

Others have commented on the text UI, but with regard to Raspbian and GUI's on the lower power devices, it's difficult to see where they can be sped up. The browser is clearly slow, but that in all likelihood is because its just badly written in places and there is not much we can do to rewrite Chr...
by Daniel Gessel
Wed Jan 15, 2020 2:08 pm
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 36755

Re: Future of raspberry pi - software related

It has been noted that having the compositor on is a big hit for GL programs (maybe others, I haven’t benchmarked). For those of working with GL, it’s a concern that compositing is on by default (because we want our programs to run fast “out of the box”). Maybe there’s an alternative compositor (or...
by Daniel Gessel
Wed Jan 15, 2020 12:15 pm
Forum: General discussion
Topic: Future of raspberry pi - software related
Replies: 382
Views: 36755

Re: Future of raspberry pi - software related

It has been noted that having the compositor on is a big hit for GL programs (maybe others, I haven’t benchmarked). For those of working with GL, it’s a concern that compositing is on by default (because we want our programs to run fast “out of the box”). Maybe there’s an alternative compositor (or ...
by Daniel Gessel
Tue Jan 14, 2020 10:25 pm
Forum: Graphics, sound and multimedia
Topic: Pi4B dual displays
Replies: 4
Views: 412

Re: Pi4B dual displays

But that means, other than huge screenshots, there’s a ton of framebuffer being filled and not displayed? Or is the large framebuffer allocated and rendered only for the screenshot? Curious...
by Daniel Gessel
Tue Jan 14, 2020 9:55 pm
Forum: Graphics, sound and multimedia
Topic: Pi4B dual displays
Replies: 4
Views: 412

Re: Pi4B dual displays

Is the second case demonstrating a huge framebuffer, much of which is not displayed on either screen?

Go to advanced search