Hi,

Thank you for the answer. I have studied several times the doc for
Unfortunately clutter_stage_set_perspective() and cogl_perspective().
May be I wasn't able to understand it or it is just not enough
descriptive . But I spent some time with experimenting it. I think these
functions are not appropriate for the trick I need.

Let's see it a bit more close:
------------
void clutter_stage_set_perspective (ClutterStage *stage, gfloat fovy,
gfloat aspect, gfloat z_near, gfloat z_far);

Sets the stage perspective.
stage :
        A ClutterStage
fovy :
        the field of view angle, in degrees, in the y direction
aspect :
        the aspect ratio that determines the field of view in the x direction.
The aspect ratio is the ratio of x (width) to y (height)
z_near :
        the distance from the viewer to the near clipping plane (always 
positive)
z_far :
        the distance from the viewer to the far clipping plane (always positive)
------------

z_near, z_far and aspect is good as it is for me. fovy effectively
scales the viewport. This is not what I need.

cogl_perspective has the same parameter and thus it is also not what I
would need.

Thank you anyway,
Peter


Emmanuele Bassi írta:
> On Wed, 2008-09-24 at 17:17 +0200, Peter Csaszar wrote:
> 
>> Is there a way to change the perspective in clutter, even in cogl level?
> 
> you want to read the documentation for:
> 
>   clutter_stage_set_perspective ()
> 
> and, eventually:
> 
>   cogl_perspective ()
> 
>> The nicest would be to change it only for a given actor.
> 
> you can obviously only set the perspective on a per-stage basis, since
> the stage is the viewport.
> 
> ciao,
>  Emmanuele.
> 

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to