Hello Clutter Team

Can someone please let me know  the answer to the "Image cropping" question 
mentioned in below mail

Regards
Dilip

--- On Mon, 20/10/08, dilip devaraj <[EMAIL PROTECTED]> wrote:
From: dilip devaraj <[EMAIL PROTECTED]>
Subject: Image cropping while using clutter on screen of 240 *320
To: "clutter" <[email protected]>
Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
Date: Monday, 20 October, 2008, 7:30 PM

Hello Clutter Team

I am using clutter-0.8 with vincent GLES .My screen dimensions is 240 (width) 
*320(height)

1)The attached png file original-image.png is the actual image file which can 
be displayed properly by a GLES/EGL program vincent-texture-only-gles-egl.cpp
2)The png file testimage_cropped_display_rgb.png is image displayed by a 
clutter program clutter_testimage_rgb_data.c
3)The png file image-disabled-slicing-zcamera-508.png is image with 
modifications I have done to bring in clutter library for same program 
clutter_testimage_rgb_data.c to get the original
 display

I am facing the following problems 
1)In gles/cogl.c  the original code for perspective is
  /*
   * camera distance from screen, 0.5 * tan (FOV)
   *
   * See comments in ../gl/cogl.c
   */
I have modified it to  * camera distance from screen, 0.508 * tan (FOV) 
(This ensures that image is not cropped)

2)In png file vincent-texture-only-gles-egl.cpp the image is being shown as 2 
non-continuous textures.This in spite of me including in my app
    actor[0] = g_object_new (CLUTTER_TYPE_TEXTURE,
            "disable-slicing", FALSE,
            NULL);

Hence I had to explicitly disabling slicing in cogl/gles/cogl-texture.c by 
specifying

  /* Negative number means no slicing forced by the user */
    tex->max_waste = -1;

I am not finding the followong issues however if screen size is 240(width) *480 
(height).

Can someone please tell if they face any similar issues with GLES /Clutter and 
screen size of 240 *320. 
I have attached the images and source code I am using
If needed I can file a bug as this issue is blocking .

Thanks  for the help 

Regards
Dilip






Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php


      Be the first one to try the new Messenger 9 Beta! Go to 
http://in.messenger.yahoo.com/win/

Reply via email to