Go to advanced search

by Chinasaur
Tue Oct 23, 2012 5:27 pm
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

npope wrote:Just a thought, but maybe pygame could be a good choice (at least for the display part of what you are talking about). It seems to work without X.
Huh, good point; hadn't occurred to me; I'll take a look.
by Chinasaur
Tue Oct 23, 2012 7:14 am
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

It may be helpful to have a look at twmn. Cool, thanks very much. I think I've worked most of the kinks out of the actual text display on screen, but I don't have much experience writing Linux command-line programs in C, so this will be helpful. On the other end there are easy to use python librari...
by Chinasaur
Mon Oct 22, 2012 5:12 am
Forum: General discussion
Topic: Google Music
Replies: 14
Views: 12005

Re: Google Music

Finally got around to trying the chromium-browser package. I have Google music set to use HTML5 rather than Flash, but it still complained about not having Flash. The whole thing is very slow and completely locked up quickly. Will post if I get any farther. The Unofficial Google Music API by Simon W...
by Chinasaur
Thu Oct 18, 2012 6:09 pm
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

Nice work - I've been looking to create something similar. My goal goes more towards creating a server that accepts screen commands on a TCP connection. Wanna create really simple gauges/sliders/tables etc without the overhead of X11 and from whatever scripting language/programming language that su...
by Chinasaur
Wed Oct 17, 2012 8:37 pm
Forum: OpenVG
Topic: Cairo
Replies: 5
Views: 5976

Re: Cairo

Hmm, so the Cairo-VG-EGL bindings make PBUFFER sufaces; not sure if that will work with RasPi VC display to screen? All the examples I've seen use WINDOW surface that has to be initialized through DISPMANX. I'll probably try to make a new cairo binding to this standard RasPi WINDOW surface since it'...
by Chinasaur
Mon Oct 15, 2012 9:47 pm
Forum: OpenVG
Topic: Cairo
Replies: 5
Views: 5976

Re: Cairo

Still working on this. It builds okay with a few minor patches and once you work around the weird linking failure of EGL to GLESv2. I haven't worked up a basic example that successfully draws to the screen yet though; probably just need to run through the standard examples for EGL/VG/GLES stuff.
by Chinasaur
Sun Oct 14, 2012 7:59 pm
Forum: Graphics programming
Topic: libEGL missing/erroneous links to GLESv2
Replies: 2
Views: 5754

libEGL missing/erroneous links to GLESv2

Hey guys, as discussed at the bottom of this thread: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=68&t=7090&p=94769 when linking against libEGL you frequently run into a series of errors where you are missing things in libGLESv2, e.g. /opt/vc/lib/libEGL.so: undefined reference to `glxx_client_G...
by Chinasaur
Mon Oct 08, 2012 5:24 am
Forum: OpenGLES
Topic: Getting Started with EGL / OpenGL ES
Replies: 13
Views: 17711

Re: Getting Started with EGL / OpenGL ES

Okay, adding a link to GLESv2 seems to fix this, which makes a bit more sense. Not sure why Cairo was missing it.
by Chinasaur
Mon Oct 08, 2012 4:04 am
Forum: OpenGLES
Topic: Getting Started with EGL / OpenGL ES
Replies: 13
Views: 17711

Re: Getting Started with EGL / OpenGL ES

/opt/vc/lib/libEGL.so: undefined reference to `glxx_client_GetRenderbufferParameteriv' /opt/vc/lib/libEGL.so: undefined reference to `gl20_client_state_init' /opt/vc/lib/libEGL.so: undefined reference to `gl11_client_state_init' /opt/vc/lib/libEGL.so: undefined reference to `glintAttribPointer' /op...
by Chinasaur
Mon Oct 08, 2012 2:24 am
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

Fixes mentioned above have been pulled into raspberrypi/firmware so should now be included in new releases. I am still hoping to submit a few more small fixes.
by Chinasaur
Mon Oct 08, 2012 2:21 am
Forum: Graphics programming
Topic: Graphics Tutorial
Replies: 6
Views: 3665

Re: Graphics Tutorial

C code is generally valid C++ code, so you don't have to do anything special.
by Chinasaur
Mon Oct 01, 2012 4:57 am
Forum: OpenVG
Topic: Cairo
Replies: 5
Views: 5976

Re: Cairo

I see there is a version of conky with backend in cairo (i.e. conky-cairo). conky-cairo-openvg could be a nice chain to get working. Haven't had time to work on things but next few weeks maybe.
by Chinasaur
Mon Sep 24, 2012 9:09 pm
Forum: HATs and other add-ons
Topic: LIRC GPIO driver for homebrew adapter
Replies: 236
Views: 174561

Re: LIRC GPIO driver for homebrew adapter

Hey guys, I know you've done some nice work getting a GPIO version together, but since I'm not using my USB ports I wonder if anyone has tried something like: http://www.huitsing.nl/irftdi/
?

Will still probably need some LIRC patching, so seems worth keeping the threads together? Thanks!
by Chinasaur
Mon Sep 24, 2012 3:27 am
Forum: General programming discussion
Topic: Writing a display-board application for Raspberry Pi
Replies: 27
Views: 13895

Re: Writing a display-board application for Raspberry Pi

If you want to use OpenVG to render text you should take a look at the Raspbian example code in /opt/vc/src/libs/vgfont This includes vgft, which is an OpenVG/Freetype library to help you get fonts into VG. It's very primitive but should get you started. I have some bugfixes pending, and put togethe...
by Chinasaur
Mon Sep 24, 2012 3:08 am
Forum: Graphics programming
Topic: Graphics Tutorial
Replies: 6
Views: 3665

Re: Graphics Tutorial

Not sure; OpenVG does not seem to have much of a web presence. You should be able to write your C++ code and link in these C libraries though?
by Chinasaur
Sun Sep 23, 2012 4:47 pm
Forum: OpenVG
Topic: OSD (on screen display) w/o X
Replies: 4
Views: 3207

Re: OSD (on screen display) w/o X

Kind of, but yeah not so heavy as XBMC (requires X?) and not just a terminal client or interactive client like mpc or ncmpc. What I wanted was something that can run in the background and call "mpc current" and then display the result on screen in large letters regardless of what else was going on i...
by Chinasaur
Wed Sep 19, 2012 3:58 am
Forum: OpenVG
Topic: Example program to draw random shapes using the C compiler
Replies: 72
Views: 71528

Re: Example program to draw random shapes using the C compil

Chinasaur wrote:Hmm, but this brings up the question: wouldn't it be better to just cache one font size and use transformations to do the different sizes? I'm planning to dig into the font stuff a little anyway, so will take a look.
Oh right, the caching of different sizes is supposed to be for font hinting ...
by Chinasaur
Wed Sep 19, 2012 1:48 am
Forum: Graphics programming
Topic: Graphics Tutorial
Replies: 6
Views: 3665

Re: Graphics Tutorial

Anthony's library would also probably be a nice place to start: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=12575
by Chinasaur
Wed Sep 19, 2012 1:45 am
Forum: OpenVG
Topic: Example program to draw random shapes using the C compiler
Replies: 72
Views: 71528

Re: Example program to draw random shapes using the C compil

The real fast way to do things is to create paths for the shapes I want to use up front, then use transformations to translate / rotate / scale a path each time I want to draw one of it. Unfortunately this means doing almost everything manually with the OpenVG API instead of having the luxury of aj...
by Chinasaur
Wed Sep 19, 2012 1:43 am
Forum: OpenVG
Topic: Example program to draw random shapes using the C compiler
Replies: 72
Views: 71528

Re: Example program to draw random shapes using the C compil

Hmm, but this brings up the question: wouldn't it be better to just cache one font size and use transformations to do the different sizes? I'm planning to dig into the font stuff a little anyway, so will take a look.
by Chinasaur
Wed Sep 19, 2012 12:47 am
Forum: Graphics programming
Topic: Graphics Tutorial
Replies: 6
Views: 3665

Re: Graphics Tutorial

It's not exactly what you want, but if you build the examples in /opt/vc/src/hello_pi that will probably get you started. (Are you on Raspbian?)
by Chinasaur
Tue Sep 18, 2012 9:28 pm
Forum: OpenVG
Topic: Example program to draw random shapes using the C compiler
Replies: 72
Views: 71528

Re: Example program to draw random shapes using the C compil

The vgfont library provided in hello_pi handles fonts by building a memory cache of the different font sizes that have run so far; you could do a similar thing with shapes you want to use. The vgfont cache gets built on demand each time you use a new font size; I believe that's why in the hello_font...
by Chinasaur
Tue Sep 18, 2012 4:26 pm
Forum: General discussion
Topic: OSD (on screen display) w/o X
Replies: 44
Views: 13954

Re: OSD (on screen display) w/o X

Nice work - I've been looking to create something similar. My goal goes more towards creating a server that accepts screen commands on a TCP connection. Wanna create really simple gauges/sliders/tables etc without the overhead of X11 and from whatever scripting language/programming language that su...
by Chinasaur
Mon Sep 17, 2012 11:18 pm
Forum: OpenVG
Topic: Cairo
Replies: 5
Views: 5976

Re: Cairo

Okay, here it is. Says it has many issues but can be tested on supporting platforms. But the boilerplate includes seem to assume ShivaVG, which is built on OpenGL, or AmanithVG, which is a commercial software implementation. http://cgit.freedesktop.org/cairo/tree/boilerplate/cairo-boilerplate-vg.c h...
by Chinasaur
Mon Sep 17, 2012 11:11 pm
Forum: OpenVG
Topic: Cairo
Replies: 5
Views: 5976

Re: Cairo

Ah, sadly the OpenVG backend was announced in 2008 but doesn't appear to have been completed. Some parts of it appear to have made it into Cairo trunk, but I'll have to poke around more to see what the status is.

Go to advanced search