RE: [clutter] How to mask two texture
Thanks for your quick reply.I have just given a thought We are modulating the two images so any way it will get Color of both image.I have tried alpha test also but its not worked. I think I should try some different method. Rakesh Kumar wrote: Hi Samuel, Sorry for late reply I was on vacation. You have asked for two images dummy.png and dummy1.jpg. So for your reference I am attaching two images and Also I am attaching the final out put. Please comment on this. RK. Your dummy.png is quite wholly transparent, that's why the resulting image is also transparent. Here is how it works: the two images are *combined* together, so the RGBA value of the composed image is the 'multiplication' of the two images. (the two images are not displayed one *over* the other). It means that the final image gets the transparency of dummy.png. dummy.png should be a mask : white where your want to see dummy1.png, fully transparent where you want to see the background. (and half-transparent where you want to *add* transparency to dummy1.png) These four lines I didn't understand. Do you understand ? (my english is not very good...) -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
RE: [clutter] How to mask two texture
Hi Samuel, Now I am getting the masking but its also blended With the stage color. Stage color is coming on masked Image. Any help will be appreciated. Regards, RK. Rakesh Kumar wrote: Hi Neil, I have done like this but I am not getting masking in my program. Code Snippet:In the loading image Load_Image() { gchar **files; files = g_new (gchar*, 1); files[0] = g_build_filename (/home/rakeshk4/Development/Pictureflow/, Dummy_Alpha_Path.png, NULL); //path I am geeting from argument ClutterActor *actor = clutter_texture_new_from_file (path, NULL); CoglHandle alpha_mask_texture = cogl_texture_new_from_file (files[0],COGL_TEXTURE_NONE, COGL_PIXEL_FORMAT_ANY,error); Coglhandle material = clutter_texture_get_cogl_texture (CLUTTER_TEXTURE (actor)); cogl_material_set_layer (material, 1, alpha_mask_texture); cogl_material_set_layer_combine (material, 1, RGBA = MODULATE (PREVIOUS, TEXTURE), error); I am getting this warning meassage: cogl_material_set_layer_combine: assertion `cogl_is_material (handle)'failed I am using this sample. http://github.com/pmarti/clutter-tutorial/tree/50679e5eb5ebeb9cbfaab99ceacd9e85deabf3bb/examples/full_example Regards, RK Hi Rakesh Kumar rakesh.ku...@kpitcummins.com wrote: I have two texture one is rectangular texture and other one contains alpha texture that is non rectangular texture ,from this i would like to mask two texture and create new shape texture. How we can do this in clutter. You should be able to do this with a custom material on a ClutterTexture using multi-texturing. Assuming you have your alpha mask texture in a CoglHandle and your base texture in a ClutterTexture you can do something like this: ClutterActor *base_texture = ...; CoglHandle alpha_mask_texture = ...; CoglHandle material; /* Get the material from the Clutter texture */ material = clutter_texture_get_cogl_texture (CLUTTER_TEXTURE (base_texture)); maaterial = clutter_texture_get_cogl_material (CLUTTER_TEXTURE (base_texture)); that could fix the error, afaik... /* Add the alpha mask as a second texture layer */ cogl_material_set_layer (material, 1, alpha_mask_texture); /* Set the combine function so that the base texture is modulated by the alpha component of the mask texture */ cogl_material_set_layer_combine (material, 1, RGBA = MODULATE (PREVIOUS, TEXTURE[A]), NULL); If you need picking to work as well then you would need to subclass ClutterTextue and override the pick method so that it draws a solid rectangle masked by the alpha texture in a similar way. You may want to take a look at Mutter¹ which does a similar thing to support shaped windows. - Neil ¹ http://ho.io/ck29 -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
RE: [clutter] How to mask two texture
Hi Neil, I have done like this but I am not getting masking in my program. Code Snippet:In the loading image Load_Image() { gchar **files; files = g_new (gchar*, 1); files[0] = g_build_filename (/home/rakeshk4/Development/Pictureflow/, Dummy_Alpha_Path.png, NULL); //path I am geeting from argument ClutterActor *actor = clutter_texture_new_from_file (path, NULL); CoglHandle alpha_mask_texture = cogl_texture_new_from_file (files[0],COGL_TEXTURE_NONE, COGL_PIXEL_FORMAT_ANY,error); Coglhandle material = clutter_texture_get_cogl_texture (CLUTTER_TEXTURE (actor)); cogl_material_set_layer (material, 1, alpha_mask_texture); cogl_material_set_layer_combine (material, 1, RGBA = MODULATE (PREVIOUS, TEXTURE), error); I am getting this warning meassage: cogl_material_set_layer_combine: assertion `cogl_is_material (handle)'failed I am using this sample. http://github.com/pmarti/clutter-tutorial/tree/50679e5eb5ebeb9cbfaab99ceacd9e85deabf3bb/examples/full_example Regards, RK Hi Rakesh Kumar rakesh.ku...@kpitcummins.com wrote: I have two texture one is rectangular texture and other one contains alpha texture that is non rectangular texture ,from this i would like to mask two texture and create new shape texture. How we can do this in clutter. You should be able to do this with a custom material on a ClutterTexture using multi-texturing. Assuming you have your alpha mask texture in a CoglHandle and your base texture in a ClutterTexture you can do something like this: ClutterActor *base_texture = ...; CoglHandle alpha_mask_texture = ...; CoglHandle material; /* Get the material from the Clutter texture */ material = clutter_texture_get_cogl_texture (CLUTTER_TEXTURE (base_texture)); /* Add the alpha mask as a second texture layer */ cogl_material_set_layer (material, 1, alpha_mask_texture); /* Set the combine function so that the base texture is modulated by the alpha component of the mask texture */ cogl_material_set_layer_combine (material, 1, RGBA = MODULATE (PREVIOUS, TEXTURE[A]), NULL); If you need picking to work as well then you would need to subclass ClutterTextue and override the pick method so that it draws a solid rectangle masked by the alpha texture in a similar way. You may want to take a look at Mutter¹ which does a similar thing to support shaped windows. - Neil ¹ http://ho.io/ck29 -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
[clutter] How to mask two texture
Hi List, I have two texture one is rectangular texture and other one contains alpha texture that is non rectangular texture ,from this i would like to mask two texture and create new shape texture. How we can do this in clutter. Regards, RK. -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
[clutter] How to mask two texture
Hi List, I have two texture one is rectangular texture and other one contains alpha texture that is non rectangular texture ,from this i would like to mask two texture and create new shape texture. How we can do this in clutter. Regards, RK. -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
[clutter] Help for MX using clutter
Hi List, I have just downloaded current version of MX GUI tool KIT and I don't know How to compile it on linux. Please help me on this issue. I have searched in clutter Archive mail but I didn't get any info .I am a newbie for clutter using MX. Regards, RK.
[clutter] Some 3D sample Using Cogl
Hi list, I am trying to draw some 3D object(Like Sphere), but I Am not getting any sample. Please provide Some sample or link. Thanks for any help. Regards, Rk
RE: [clutter] Some 3D sample Using Cogl
Thanks Neil for your quick reply. I will go through this link. RK. -Original Message- From: Neil Roberts [mailto:n...@linux.intel.com] Sent: Tuesday, April 06, 2010 3:13 PM To: Rakesh Kumar; clutter@o-hand.com Subject: Re: [clutter] Some 3D sample Using Cogl On Tue, 6 Apr 2010, Rakesh Kumar wrote: I am trying to draw some 3D object(Like Sphere), but I Am not getting any sample. Please provide Some sample or link. Thanks for any help. Cogl doesn't currently have any primitives to help draw a sphere so the only way to do it is to generate the vertices yourself and use the CoglVertexBuffer API. There is an example actor which can do that here: http://ho.io/b3wt - Neil -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
RE: [clutter] Clutter Basics Question
Hi Emmanuele, Is any 2D UI tool is there using clutter. I am trying to figure out capability of Clutter for UI tools. Thanks for your reply. Regards, RK. On Mon, 2010-04-05 at 12:30 +0530, Rakesh Kumar wrote: a) Is clutter can load collada file format no, it can't. or we can use collada dom parser inside clutter and pass data to Clutter API. this is probably the safest approach; we have an external library loading a scene from PLY, I guess you can look at how it's implemented to write a Collada loader: http://git.clutter-project.org/cgit.cgi?url=toys/tree/clutter-ply b) Is Clutter has a built in API for Basic primitive like Cylinder , Cone ,Sphere no. Clutter's primitives set are 2D, not 3D. c) Is any 3D HMI tool is available using Clutter HMI? you mean a 3D design tool? no. d) Clutter support is there or not for binary format binary format of what? you mean compressed textures? no, though it's planned for 1.4. e) Can be load 3d modeling data(like collada or .3ds) as a actor so we can easily identify mouse click on actor. again, Clutter can use a simple external library to load PLY files; nothing prevents you from writing a Collada or 3D Studio Max loader. ciao, Emmanuele. -- Emmanuele Bassi, Open Source Software Engineer Intel Open Source Technology Center -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
[clutter] Clutter Basics Question
Hi List, I am planning to make 3D Visualization tools using clutter. I wanted to ask some basics information about clutter. a) Is clutter can load collada file format or we can use collada dom parser inside clutter and pass data to Clutter API. b) Is Clutter has a built in API for Basic primitive like Cylinder , Cone ,Sphere c) Is any 3D HMI tool is available using Clutter d) Clutter support is there or not for binary format e) Can be load 3d modeling data(like collada or .3ds) as a actor so we can easily identify mouse click on actor. Any help will be highly appreciated. Regars, RK.
[clutter] Clutter License
Hi List, Can I create my own application for commercial purpose using Clutter as a library, without any licensing issues. Is it LGPL(Lesser General Public License)?. Regards, RK.
[clutter] Clutter Basics Question
Thanks for your reply. c) HMI means Human Machine Interface. Sorry for sort form. d) I wanted to load binary shader using OpenGL ES 2.0. So does it supports binary shaders?. e) I wanted to load 3d objects and provide data to cogl_vertex_ buffer_draw().So can we some how connect this 3D object with actor?. So we can easily handle user input. Regards, RK. On Mon, 2010-04-05 at 12:30 +0530, Rakesh Kumar wrote: a) Is clutter can load collada file format no, it can't. or we can use collada dom parser inside clutter and pass data to Clutter API. this is probably the safest approach; we have an external library loading a scene from PLY, I guess you can look at how it's implemented to write a Collada loader: http://git.clutter-project.org/cgit.cgi?url=toys/tree/clutter-ply b) Is Clutter has a built in API for Basic primitive like Cylinder , Cone ,Sphere no. Clutter's primitives set are 2D, not 3D. c) Is any 3D HMI tool is available using Clutter HMI? you mean a 3D design tool? no. d) Clutter support is there or not for binary format binary format of what? you mean compressed textures? no, though it's planned for 1.4. e) Can be load 3d modeling data(like collada or .3ds) as a actor so we can easily identify mouse click on actor. again, Clutter can use a simple external library to load PLY files; nothing prevents you from writing a Collada or 3D Studio Max loader. ciao, Emmanuele. -- Emmanuele Bassi, Open Source Software Engineer Intel Open Source Technology Center -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
[clutter] Page flipping Question
Hi List, I wanted to implement page flipping for my actor in clutter. The way it has been implemented in IPhone. Can it is possible. Please provide me some link if its there. Thanks for reply. RK.
RE: [clutter] Page flipping Question
Hi Neil, Thanks for your quick reply .I have seen this video I have to do some thing like this. I will go through this link . RK -Original Message- From: Neil Roberts [mailto:n...@linux.intel.com] Sent: Friday, March 26, 2010 4:22 PM To: Rakesh Kumar; clutter@o-hand.com Subject: Re: [clutter] Page flipping Question Hi, On Fri, 26 Mar 2010 03:23:37 -0700, Rakesh Kumar wrote: I wanted to implement page flipping for my actor in clutter. The way it has been implemented in IPhone. Can it is possible. Please provide me some link if its there. I'm not sure exactly what the page flipping animation is like but have you looked at using Mx? It's a widget library on top of Clutter and it has a class called MxTextureDeform which can be used to morph textures in those kinds of ways. Chris has a nice video demonstrating it here: http://chrislord.net/blog/Software/mx-deform-texture.enlighten The mx source is available here: http://git.moblin.org/cgit.cgi/mx/snapshot/mx-0.9.0.tar.bz2 - Neil -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
RE: [clutter] How to build clutter on ARM board OMAP 3530
Thanks Amit and Yogesh for your quick Reply. I will check it out according to Your given link. -Original Message- From: Amit Pundir [mailto:pundira...@gmail.com] Sent: Thursday, March 18, 2010 11:35 AM To: Rakesh Kumar Cc: clutter@o-hand.com Subject: Re: [clutter] How to build clutter on ARM board OMAP 3530 On Wed, Mar 17, 2010 at 7:03 PM, Rakesh Kumar rakesh.ku...@kpitcummins.com wrote: Hi List, i am using clutter for arm, but i can't get the pangocairo lib. While configuring cairo for cross compiling I am getting this error configure: error: C compiler cannot create executables Any link will be very helpful. Use Open-Embedded + Ångström: http://wiki.openembedded.net/index.php/Main_Page http://www.angstrom-distribution.org/building-angstrom regards, Amit Pundir Regards, RK -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
[clutter] How to rotate Actor about some point
Hi List, I would like to mimic the opengl concept in Clutter. Like in OpenGL. First we rotate the object and then translate. So it will rotate around some point . I am able to do rotation around actor but how To do about some given point. Please help me on this. [cid:image001.jpg@01CAC08B.02589F70] inline: image001.jpg
RE: [clutter] How to make texture transparent
One way I can see all the API in .h file of That Corresponding stuff(like in actor.h see all API Related to CullterActor). -Original Message- From: Neil Roberts [mailto:n...@linux.intel.com] Sent: Thursday, March 04, 2010 4:06 PM To: Rakesh Kumar Cc: clutter@o-hand.com Subject: Re: [clutter] How to make texture transparent Rakesh Kumar rakesh.ku...@kpitcummins.com writes: How we can create texture transparent or blending. I am using clutter_new_texture_from_file and want to make That texture transparent. If I understand your question correctly then you just need to do something like: ClutterActor *texture = clutter_texture_new_from_file (...); clutter_actor_set_opacity (texture, 128); That will make the texture 50% transparent. - Neil -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
[clutter] How to make texture transparent
Hi list, How we can create texture transparent or blending. I am using clutter_new_texture_from_file and want to make That texture transparent. And I am going to make some carousel sample using clutter, Please provide me some link or sample like that so I can take learn From that sample. RK.
RE: [clutter] FW: Basics Help
I have downloaded OAH ,but when I trying to install this It is asking for VS 2008.I am working on VS 2005,how I can Overcome on this issue. -Original Message- From: Haakon Sporsheim [mailto:haakon.sporsh...@gmail.com] Sent: Friday, February 19, 2010 8:19 PM To: Roman Yazmin Cc: Rakesh Kumar; clutter@o-hand.com Subject: Re: [clutter] FW: Basics Help On Fri, Feb 19, 2010 at 1:17 PM, Roman Yazmin roman.yaz...@gmail.com wrote: Hi, You can use OAH Build System to build clutter for VS 2005. https://launchpad.net/oah Well, OAH have .vcproj build files for VS2008, but I guess backporting all .vcproj files to VS2005 should be possible. Since I'm sort of the guy behind OAH and HSBuild, I would recommend to use HSBuild, but if you really really want to use VS2005 and VCBuild (read: .vcproj files), you should either go for backporting using OAH or do it yourself, including all dependencies! Which btw are Pixman, Cairo, Pango, GLib (opt: GDK pixbuf, zlib and glib-json) if I'm not mistaken. Take a look here: https://answers.launchpad.net/oah/+question/79001 Or get binary here: https://launchpad.net/oah/+download https://launchpad.net/oah/clutter/0.8.8 FYI: These binaries were built with VS2008 using the CRT for that toolchain. I'm not sure if that will be of any inconvenience, but be aware! And yeah, 0.8.8 is probably not what you are after!? -Roman On Fri, Feb 19, 2010 at 1:40 PM, Rakesh Kumar rakesh.ku...@kpitcummins.com wrote: Hi List, I am trying to compile in VS 2005 by putting all the .c and .h file taken from Clutter folder. Have included all header file. But I am missing clutter-marshal.h in folder but its added in so many .c file,that's why it is showing error. Please help me on this issue. Regards, Rakesh. From: Rakesh Kumar Sent: Wednesday, February 17, 2010 9:26 AM To: 'clutter@o-hand.com' Subject: Basics Help Hi List, I am new to Clutter. I just Downloaded clutter 1.0.0.I don't know How to build in Windows because no make file is there., so I can Create solution file in Visual studio. Please help me guys. -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
RE: [clutter] FW: Basics Help
HI, Thanks every one I will try as you people Suggested and will do update soon. -Original Message- From: Haakon Sporsheim [mailto:haakon.sporsh...@gmail.com] Sent: Friday, February 19, 2010 8:19 PM To: Roman Yazmin Cc: Rakesh Kumar; clutter@o-hand.com Subject: Re: [clutter] FW: Basics Help On Fri, Feb 19, 2010 at 1:17 PM, Roman Yazmin roman.yaz...@gmail.com wrote: Hi, You can use OAH Build System to build clutter for VS 2005. https://launchpad.net/oah Well, OAH have .vcproj build files for VS2008, but I guess backporting all .vcproj files to VS2005 should be possible. Since I'm sort of the guy behind OAH and HSBuild, I would recommend to use HSBuild, but if you really really want to use VS2005 and VCBuild (read: .vcproj files), you should either go for backporting using OAH or do it yourself, including all dependencies! Which btw are Pixman, Cairo, Pango, GLib (opt: GDK pixbuf, zlib and glib-json) if I'm not mistaken. Take a look here: https://answers.launchpad.net/oah/+question/79001 Or get binary here: https://launchpad.net/oah/+download https://launchpad.net/oah/clutter/0.8.8 FYI: These binaries were built with VS2008 using the CRT for that toolchain. I'm not sure if that will be of any inconvenience, but be aware! And yeah, 0.8.8 is probably not what you are after!? -Roman On Fri, Feb 19, 2010 at 1:40 PM, Rakesh Kumar rakesh.ku...@kpitcummins.com wrote: Hi List, I am trying to compile in VS 2005 by putting all the .c and .h file taken from Clutter folder. Have included all header file. But I am missing clutter-marshal.h in folder but its added in so many .c file,that's why it is showing error. Please help me on this issue. Regards, Rakesh. From: Rakesh Kumar Sent: Wednesday, February 17, 2010 9:26 AM To: 'clutter@o-hand.com' Subject: Basics Help Hi List, I am new to Clutter. I just Downloaded clutter 1.0.0.I don't know How to build in Windows because no make file is there., so I can Create solution file in Visual studio. Please help me guys. -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
RE: [clutter] FW: Basics Help
Thanks for quick reply. My idea was to add .h and .c file And whichever .lib and header file required we will keep Adding according to error.Because I am not getting clear Idea how to proceed on that. Please suggest me should I proceed In this way or I have to use cygwin or mingW(No idea about both The compiler that's why I m using VS 2005).Any Link will be appreciated On cygwin,I mean how to proceed using cygwin. -Original Message- From: Piñeiro [mailto:apinhe...@igalia.com] Sent: Friday, February 19, 2010 4:21 PM To: Rakesh Kumar Cc: clutter@o-hand.com Subject: Re: [clutter] FW: Basics Help From: Rakesh Kumar rakesh.ku...@kpitcummins.com Hi List, I am trying to compile in VS 2005 by putting all the .c and .h fil= e taken from Clutter folder. Have included all header file. But I am missing clutter-marshal.h = in folder but its added in so many .c file,that's why it is showing error. clutter-marshal.h is being generated by glib-genmarshall, using the file clutter-marshal.list as source. I don't know how you would use that using VS. Probably, as previously advised, you could try to use cygwin to compile clutter. BR === API (apinhe...@igalia.com) -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com