Re: [clutter] Considering Clutter for Toonloop

2010-07-29 Thread Alexandre Quessy
Hello Emmanuele and everyone,

2010/7/28 Emmanuele Bassi eba...@linux.intel.com:
 I'm currently out of office to a conference, so I'm going to answer very
 quickly...


Thanks for replying so quickly! You are much dedicated, as we can see
on the IRC and the mailing list. :)

 On Tue, 2010-07-27 at 10:21 -0400, Alexandre Quessy wrote:
 2) My second requirement, is that we can set the actor (the plane on
 which we draw the texture) can be automatically resized when the
 window is resized. (the units are in pixels in Clutter, which is not
 what I am used with) I know this is possible in Clutter.

 it's possible. you can set the stage to be resizable and then use
 notification on allocation changes. in Clutter 1.4 there will be a
 ClutterBindConstraint and a ClutterAlignConstraint which allows to match
 position/size and align actors depending on normalized (0.0 → 1.0)
 values.

These will only be in version 1.4: I see. I'll find a way, meanwhile,
peeking in the code of those new tools.

 4) Fourth requirement: be able to use shaders with two textures fed to
 it. The idea is to blend two images together using the overlay mode.
 (the live input + the animation playback) That's what I am not sure at
 all about.

 ClutterShader allows that - just create a ClutterTexture, get the
 CoglMaterial out of it and set two CoglTextures as two separate material
 layers. the layer number is also the texture sampler id.

It's nice that the library provides tools to do that. There are many
project which need that.

 the interactive test suite has a lot of code that deals with the API;
 some high level GL concepts are mapped in an object oriented way, but
 they are relatively the same.

Yes, there will be plenty of stuff to dig into. Of course, it's always
possible to dig and play in the guts of low-level OpenGL stuff.

Thanks again!

-- 
Alexandre Quessy
http://alexandre.quessy.net/
--
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



[clutter] Considering Clutter for Toonloop

2010-07-27 Thread Alexandre Quessy
Hello!

I am considering Clutter (v/s GtkGlExt) for the OpenGL scene in the
next version of Toonloop. (1.9)
Toonloop is a live animation software that is free, and a lot of fun
to play with.

Below are my four requirement for an OpenGL engine. I am trying to
improve my Clutter prototype, but I find the documentation rather
scarce. Before I choose to simply use GtkGlExt (and maybe regret it
later when I need higher-level functionnality), I tought I would ask
here if anyone has some examples/prototypes for one of the
requirements that are listed above.

1) My first requirement is that we can set the texture data using a
pointer to char*, like in
http://github.com/aalex/proto-toonloop/blob/proto-gtkglext/src/gui.cpp
on line 368. (that's where the interesting Toonloop development is
hidden these days!)

2) My second requirement, is that we can set the actor (the plane on
which we draw the texture) can be automatically resized when the
window is resized. (the units are in pixels in Clutter, which is not
what I am used with) I know this is possible in Clutter.

3) Third requirement: be able to resize the window, make it
fullscreen, embed it in GTK+. Should be OK too in Clutter.

4) Fourth requirement: be able to use shaders with two textures fed to
it. The idea is to blend two images together using the overlay mode.
(the live input + the animation playback) That's what I am not sure at
all about.

So far, GtkGlExt meets them all. For Clutter, they are probably all
possible too, but it's not so obvious. The good point for Clutter, is
that using GLSL shaders is quite easy with it. It wraps the low-level
OpenGL calls in an elegant manner.

Thanks!
--
Alexandre Quessy
http://alexandre.quessy.net/
-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



[clutter] Clutter GST example?

2010-02-24 Thread Alexandre Quessy
Hello everyone,
I am considering using Clutter for (free) my software Toonloop since:
 * It is free
 * I love OpenGL
 * I could use high-level animation tools in Clutter, and contribute
mine to Clutter, instead of just reinventing the wheel again, alone. I
have a set of motion tween tools in an old repository, that would be
easy to port to Gobject. (see [1])

Now, my main interest is using live video input in OpenGL with
Gstreamer. I cannot get the example in
gst-plugins-gl/tests/examples/clutter/cluttershare.c to work, (see [2])
since it requires clutter-0.8 and it seems like pkg-config fails to give
me the cflags and libs for clutter-1.0. I am using Ubuntu 9.10 Karmic.

Here's the output of pkg-config, looking for Clutter:

$ pkg-config --cflags --libs clutter-1.0
Package gl was not found in the pkg-config search path.
Perhaps you should add the directory containing `gl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gl', required by 'Clutter', not found

Here is my question:
Can someone point me to a working example with Gstreamer and Clutter,
with autoconf, if possible? Otherwise, how can I fix this and make that
example work?

Thanks !
Alex

[1]: My Tween old class is actually pure C, not C++:
http://code.google.com/p/libinteract/source/browse/trunk/trunk/general/Tween/Tween.cpp
It's a port to C or R. Penner's equations.

[2]: You can get the latest gst-plugins-gl examples by checking it out:
$ git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-gl
See http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/
-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com