[clutter] How to dump an actor to buffer?

2010-03-19 Thread Rubric
HI all.

I'm using clutter-0.8.8 with eglx backend.

I wish to dump specific region of clutter actor to normal buffer at
current state.

in example, after rotate or scale an actor (actually ClutterTexture),
I'd like to capture that shape of the actor.
and I should capture some region of the actor. (actor will be too big).
since there are other actors on the actor, I couldn't capture the screen.

Plz help me...

Thanks~
-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com



Re: [clutter] Performance comparison between OpenGL ES 1.1 2.0 for OMAP 3430

2009-12-30 Thread Rubric
Hi Mustaf.

As far as I know,
SGX530 which is a GPU on OMAP3430 was optimized for GLES 1.1 instead of 2.0.

therefore, in OMAP3430, gles 1.1 performance  is better.

Thanks.

BR.
Rubric.


2009/12/17 Mustafizur Rahaman mustaf.h...@gmail.com

 Hi,

 I am using clutter 0.8.0 with eglx backend on OMAP 3430 board. I have
 found that there is a 4-5 FPS drops in performance when I am using
 OpenGL ES 2.0 compared to OpenGL ES 1.1.

 Normally, GLES 2.0 should give me better performance compared to GLES
 1.1, but I am observing the opposite result here.

 Did any one take any such performance figure? Can any one throw a
 light on why performance drops on GLES 2.0?

 Regs,
 Mustaf.
 --
 To unsubscribe send a mail to 
 clutter+unsubscr...@o-hand.comclutter%2bunsubscr...@o-hand.com




[clutter] How can I avoid _clutter_do_pick at motion event?

2009-12-23 Thread Rubric
Hi there.

I encountered a problem of rendering performance
when I drag the pointer on a touch device during clutter application
is playing.

In case of embedded system, since glReadPixel has terrible performance,
I wish to avoid _clutter_do_pick at motion event in my clutter application.

Is there any method?

Thank you.


[clutter] Leak of colormap in gtk-clutter-embed

2009-08-05 Thread Rubric
Hi All,

Maybe there is a memory leak when gtk-clutter-embed widget creates.

gtk-clutter-embed widget creates new gdk colormap object from clutter visual

visual = gdk_x11_screen_lookup_visual (gtk_widget_get_screen (widget),
   xvinfo-visualid);
colormap = gdk_colormap_new (visual, FALSE);
gtk_widget_set_colormap (widget, colormap);


I think it need to be unref after setting colormap to widget.

However, I have tried unref colormap there, colormap object still remain
after a gtk-clutter-embed widget destroyed.

And I'm not sure why it can't use default colormap.


Is there any one who have any idea?



Thank you.

BR. Rubric.


[clutter] div 0 problem in the cogl_perspective

2009-07-07 Thread Rubric
Hi All.

I'm using clutter 0.8.8 with eglx backend and gles 1.1 on an embed system.

Sometimes, but I see crashed situation when it set up viewport.

Below code of cogl_perspective function causes div 0 when y == 0

#define m ctx-inverse_projection
  M(0, 0) = CFX_QDIV (CFX_ONE, x);
  M(1, 1) = CFX_QDIV (CFX_ONE, y);
  M(2, 3) = -CFX_ONE;
  M(3, 2) = CFX_QDIV (CFX_ONE, d);
  M(3, 3) = CFX_QDIV (c, d);
#undef m


I got some more infomation from gdb.
They are passed values to cogl_perspective function from
cogl_setup_viewport.

(gdb) p fovy
$13 = 1124509916
(gdb) p aspect
$14 = 1355920
(gdb) p z_near
$15 = -1095977652
(gdb) p z_far
$16 = 1124134704

I have no idea why calculated y will be 0.


Please let me know whether can I add exception handling when y becomes 0.

Thank you.

BR. rubric.


Re: [clutter] Where is set_pixbuf method in clutter.Texture?

2009-05-13 Thread Rubric
Hi All.

I used clutter_texture_set_from_rgb_data with CLUTTER_TEXTURE_RGB_FLAG_BGR
flag in order to set bitmap data from gdk pixbuf.

But texture has reversed color since CLUTTER_TEXTURE_RGB_FLAG_BGR means
COGL_BGR_BIT internally.

In my opinion, clutter texture should support more ClutterTextureFlags like
CLUTTER_TEXTURE_RGB_FLAG_RGB.


Isn't there anyone who is using clutter texture from gdk pixbuf?


Thank you.

BR. Rubric.


2009/5/11 Kan-I Jyo cecilhs...@gmail.com

 Dear Jianchun,

 2009/5/11 Jianchun Zhou jianchun.z...@gmail.com:
 
  I found in pyclutter version 0.8.0, the method set_pixbuf in
 clutter.Texture
  is removed, why?

 It looks like that this is a result of API change for ClutterTexture is
 capable
 of loading images without exposing GdkPixbuf API since 0.8.

 You may want to take a look a look at Bassi's comment in the following
 mail.

 http://lists.o-hand.com/clutter/1937.html

 --
 Sincerely,

 Jyo
 --
 To unsubscribe send a mail to 
 clutter+unsubscr...@o-hand.comclutter%2bunsubscr...@o-hand.com




Re: [clutter] Where is set_pixbuf method in clutter.Texture?

2009-05-13 Thread Rubric
Dear Yaser,

I had not thought other value except pre-defined type.

I also checked it works fine when I passed 0 to ClutterTextureFlags.


Thank you for your comment.

BR. Rubric



2009/5/13 Yaser Hameed (RBEI/ECA3) yaser.ham...@in.bosch.com

  Hi

 This works for me


 ClutterActor *newTexture = clutter_texture_new( );

 // pixbuf_icon is the gdkpixbuf

 clutter_texture_set_from_rgb_data (CLUTTER_TEXTURE(
 newTexture),
 gdk_pixbuf_get_pixels(pixbuf_icon),
 gdk_pixbuf_get_has_alpha(pixbuf_icon),
 gdk_pixbuf_get_width(pixbuf_icon),
 gdk_pixbuf_get_height(pixbuf_icon),
 gdk_pixbuf_get_rowstride(pixbuf_icon),
 gdk_pixbuf_get_n_channels(pixbuf_icon),
 0,
 error);

 *Yaser Hameed*
 --
 *From:* Rubric [mailto:rubri...@gmail.com]
 *Sent:* Wednesday, 13. May 2009 1:01 PM
 *To:* Kan-I Jyo
 *Cc:* Jianchun Zhou; clutter@o-hand.com
 *Subject:* Re: [clutter] Where is set_pixbuf method in clutter.Texture?

 Hi All.

 I used clutter_texture_set_from_rgb_data with CLUTTER_TEXTURE_RGB_FLAG_BGR
 flag in order to set bitmap data from gdk pixbuf.

 But texture has reversed color since CLUTTER_TEXTURE_RGB_FLAG_BGR means
 COGL_BGR_BIT internally.

 In my opinion, clutter texture should support more ClutterTextureFlags like
 CLUTTER_TEXTURE_RGB_FLAG_RGB.


 Isn't there anyone who is using clutter texture from gdk pixbuf?


 Thank you.

 BR. Rubric.


 2009/5/11 Kan-I Jyo cecilhs...@gmail.com

 Dear Jianchun,

 2009/5/11 Jianchun Zhou jianchun.z...@gmail.com:
 
  I found in pyclutter version 0.8.0, the method set_pixbuf in
 clutter.Texture
  is removed, why?

 It looks like that this is a result of API change for ClutterTexture is
 capable
 of loading images without exposing GdkPixbuf API since 0.8.

 You may want to take a look a look at Bassi's comment in the following
 mail.

 http://lists.o-hand.com/clutter/1937.html

 --
 Sincerely,

 Jyo
 --
 To unsubscribe send a mail to 
 clutter+unsubscr...@o-hand.comclutter%2bunsubscr...@o-hand.com





[clutter] How to fit an actor to full window?

2009-05-13 Thread Rubric
Hi All.

I'd like to enlarge an actor to fit full window size.
so, I assigned full window size to actor (i.e. clutter_actor_set_size)

But, actor was shown twisted shape in the window.
It means I could see stage color out of actor shape.

The results between clutter_actor_get_size and
clutter_actor_get_transformed_size were different.

I encountered this problem in embed H/W (It has OMAP graphic accelerator).
And I checked same code works fine for desktop (It has nVidia graphic card).


How to resolve this problem?

Please let me know.

Thank you.

B.R. Rubric.