User avatar
MattPurland
Posts: 57
Joined: Fri Apr 13, 2012 7:37 pm

Re: Clutter (OpenGL/OpenGL ES GUI Library)

Fri Apr 27, 2012 3:55 pm

Something which I'd like to look into doing is writing some nice user interfaces outside of X using OpenGL ES, and Clutter seems like the perfect option for the RasPi:

http://www.clutter-project.org/

It's open source (GPL) and designed for mobile application.

Unfortunately my coding experience is limited and porting this myself would be impossible - would this be something a more experienced coder would like to do?

tufty
Posts: 1456
Joined: Sun Sep 11, 2011 2:32 pm

Re: Clutter (OpenGL/OpenGL ES GUI Library)

Fri Apr 27, 2012 4:06 pm

I don"t see any reason why it shouldn"t compile "out of the box"

Simon.

User avatar
MattPurland
Posts: 57
Joined: Fri Apr 13, 2012 7:37 pm

Re: Clutter (OpenGL/OpenGL ES GUI Library)

Fri Apr 27, 2012 11:07 pm

I was hoping that'd be the case, I'll give it a go once I've got my Pi in a couple of weeks

benosteen
Posts: 28
Joined: Mon Jan 02, 2012 6:10 am

Re: Clutter (OpenGL/OpenGL ES GUI Library)

Tue Jul 24, 2012 3:56 pm

It should compile fine, but it likely won't be able to get a EGL surface to render onto as it tries to get one via Xlib. It would need to be ported to use the direct access route, or for someone to port X to handle EGL windows.

ppumkin
Posts: 82
Joined: Tue May 29, 2012 10:22 pm

Re: Clutter (OpenGL/OpenGL ES GUI Library)

Sat Aug 04, 2012 10:11 am

Have you managed to get this working?

webguy
Posts: 4
Joined: Sat Aug 04, 2012 9:01 pm

Re: Clutter (OpenGL/OpenGL ES GUI Library)

Sat Aug 04, 2012 9:03 pm

Tried this today using the clutter-1.0 package in raspbian. Unfortunately it renders verrrry slowly, the nyancat sample found here https://github.com/clutter-project/toys ... er/nyancat compiles and runs but at 2-5 FPS. As mentioned above, seems it can't get an EGL window. What would be involved in porting this?

johang
Posts: 1
Joined: Thu Sep 06, 2012 8:16 pm

Re: Clutter (OpenGL/OpenGL ES GUI Library)

Thu Sep 06, 2012 8:21 pm

I've managed to get cogl and clutter running. You need a couple of hacks though. I can post build instructions later if you guys want.

I've pushed my changes to github

https://github.com/johang/cogl/commits/raspberrypi
https://github.com/johang/clutter/commits/raspberrypi

The nyancat demo gets 15 FPS when running at 1680x1050.

BTW, I need "export G_SLICE=always-malloc" before launching on Raspbian, or else glib crashes.

djdeath
Posts: 1
Joined: Fri Sep 07, 2012 4:32 pm

Re: Clutter (OpenGL/OpenGL ES GUI Library)

Fri Sep 07, 2012 4:37 pm

webguy wrote:Tried this today using the clutter-1.0 package in raspbian. Unfortunately it renders verrrry slowly, the nyancat sample found here https://github.com/clutter-project/toys ... er/nyancat compiles and runs but at 2-5 FPS. As mentioned above, seems it can't get an EGL window. What would be involved in porting this?
The nyancat example is really poorly written and trigger relayouts for every frame (quite costly).
Would you consider give a try to this version : https://github.com/djdeath/toys
It requires Clutter master or 1.11.14 though.

Thanks.

Skinkie
Posts: 18
Joined: Sat Sep 15, 2012 8:18 am

Re: Clutter (OpenGL/OpenGL ES GUI Library)

Sat Sep 15, 2012 8:22 am

Thank you very much for pursuing this. I wonder, should we also make some drop in replacement for clutter-gst, so the Pi can use video acceleration?

okr
Posts: 1
Joined: Mon Oct 01, 2012 5:15 am

Re: Clutter (OpenGL/OpenGL ES GUI Library)

Mon Oct 01, 2012 5:21 am

johang wrote:I've managed to get cogl and clutter running. You need a couple of hacks though. I can post build instructions later if you guys want.

I've pushed my changes to github

https://github.com/johang/cogl/commits/raspberrypi
https://github.com/johang/clutter/commits/raspberrypi

The nyancat demo gets 15 FPS when running at 1680x1050.

BTW, I need "export G_SLICE=always-malloc" before launching on Raspbian, or else glib crashes.
Hi johang, can you post the build instructions? ... I would like use clutter on the raspberry.

justinh
Posts: 2
Joined: Sun Dec 09, 2012 10:08 am

Re: Clutter (OpenGL/OpenGL ES GUI Library)

Sun Dec 09, 2012 10:12 am

I too would really appreciate having the build instructions. I've done my best by cloning johang's cogl and clutter source and trying to build it, but I'm obviously doing something wrong because I can't get them to compile.

Return to “Graphics programming”