[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] Exact screen frequency
Hi Emmanuele, I already experimented with the repaint function. but the timestamps I get have some variance. So the only way I see to get a more or less accurate timing is to use an average time value over some hundred frames. By the way, I am just playing around with some FBO and shader routines. Since you don't suggest to mix Cogl with direct calls to GL, but I would like to have the possibility to have an FBO with multiple color targets I would like to know if you have any plans to extend the cogl offscreen API to use glDrawBuffers? E.g. sth like cogl_offscreen_add_texture(CoglHandle buffer, CoglHandle texture, guint layer); to be able to use glFragData[] in a fragment shader instead of glFragColor? bye, Roland On 05.04.2010, at 15:11, Emmanuele Bassi wrote: On Sun, 2010-04-04 at 09:50 +0200, Roland Peffer wrote: Is there an elegant way to get the exact screen frequency ( in microseconds or even more accurate ) within the clutter/cogl toolkit? no. in part because there is nothing elegant, in part because the vblank synch is part of how Clutter works. if we have the right extension, on GLX we default to getting an asynchronous notification of a buffer swap; lacking that, we check if glXSwapBuffers() will block and use that delay to time our animations and scene redraws. lacking that, we fall back to a hard timer which may or may not be the same rate of the vblank. if you want to tap into the redraw rate you can install a repaint function using clutter_threads_add_repaint_func(); the function is guaranteed to be called each time Clutter redraws the Stages. ciao, Emmanuele. -- Emmanuele Bassi, Open Source Software Engineer Intel Open Source Technology Center -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
Re: [clutter] Clutter Basics Question
On Mon, 5 Apr 2010, Rakesh Kumar wrote: d) I wanted to load binary shader using OpenGL ES 2.0. So does it supports binary shaders?. Cogl doesn't currently 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?. Once you have the data in a CoglVertexBuffer you can render it as part of an actor by implementing the paint signal. This is exactly what the ClutterPLY library does. - Neil -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
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
[clutter] Using cogl without clutter
Hi, would it be possibile to use cogl without clutter, on a gl context created with gtkglext? If so, a small example or some hints would be very useful. Thanks O. -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com
Re: [clutter] Using cogl without clutter
On Tue, 2010-04-06 at 11:59 +0200, Oscar Lazzarino wrote: would it be possibile to use cogl without clutter, on a gl context created with gtkglext? no. ciao, Emmanuele. -- Emmanuele Bassi, Open Source Software Engineer Intel Open Source Technology Center -- 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
Re: [clutter] Using cogl without clutter
Excerpts from Oscar Lazzarino's message of Tue Apr 06 10:59:11 +0100 2010: Hi, would it be possibile to use cogl without clutter, on a gl context created with gtkglext? If so, a small example or some hints would be very useful. Hi, The long term goal is for Cogl to become a standalone 3D graphics API and we are incrementally working towards this goal. Cogl will also have a window system abstraction (only as far as framebuffer management is concerned, I don't mean anything relating input events etc) that could make it possible to integrate tightly with GTK in one way or another. Integrating with a GL context not owned by Cogl adds additional complexity but theoretically it would be possible to create a Cogl winsys that allowed this. Sorry that doesn't really help you, but you might be interested to know it may be possible one day. kind regards, - Robert Thanks O. -- Robert Bragg, Intel Open Source Technology Center -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com