×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    80

    Can't able to animate .gif file using to iTexturemamanger

    Hi,

    I m trying to open a .gif file. and try to use follwing method:

    Added

    Imageconversion.lib and animation.lib

    #include "Utils3d.h"
    #include "Glutils.h"
    #include "Mathutils.h"
    #include "Textureutils.h"


    void CMina::AppInitL( void )
    {
    iTextureManager = CTextureManager::NewL ( iScreenWidth, iScreenHeight,FRUSTUM_TOP, FRUSTUM_BOTTOM, FRUSTUM_RIGHT, FRUSTUM_LEFT, FRUSTUM_NEAR,this );


    _LIT(KHubbleTexture, "3dtext_3545.gif");
    iTextureManager->RequestToLoad(KHubbleTexture, &iNasaHubble );
    iTextureManager->DoLoadL();

    }

    void CMina::AppCycle( TInt aFrame )

    {

    static GLubyte front[] = {0,1,2,3};
    static GLfloat vertices[] = {-50.0, -50.0, 0.0, 50.0, -50.0, 0.0, 50.0, 50.0, 0.0, -50.0, 50.0, 0.0};
    ..............
    ..............


    glBindTexture( GL_TEXTURE_2D, iNasaHubble.iID );
    glVertexPointer(3, GL_FLOAT, 0, vertices);
    glTexCoordPointer(2, GL_FLOAT, 0, texCoords);
    glDrawElements(GL_TRIANGLE_FAN, 4, GL_UNSIGNED_BYTE, front);


    }

    i already complie successfully and install my phone.But this 3dtext_3545.gif display as a still image not animated in my phone.but if i open 3dtext_3545.gif normal nokia default picture viewer then its animate....

    Then what's the problem of my coding or any other way to display animated gif using the like this way? plz suggest me...

    Thanks
    Mina

  2. #2
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: Can't able to animate .gif file using to iTexturemamanger

    Where is CTextureManager defined, doesnot seem to be from Symbian SDK. To animate GIF check these links

    http://wiki.forum.nokia.com/index.ph...edition_phones

    http://wiki.forum.nokia.com/index.ph...GIF_animations

  3. #3
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    80

    Re: Can't able to animate .gif file using to iTexturemamanger

    Quote Originally Posted by kamalakshan View Post
    Where is CTextureManager defined, doesnot seem to be from Symbian SDK. To animate GIF check these links

    http://wiki.forum.nokia.com/index.ph...edition_phones

    http://wiki.forum.nokia.com/index.ph...GIF_animations

    iTextureManager has defined in Textureutils.h. iTextureManager can load the any format of picture for textureing. gif also can load but not animate.So im not sure trick will work or not..

  4. #4
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: Can't able to animate .gif file using to iTexturemamanger

    So if it's your own class then you should know better how to work with it.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: Can't able to animate .gif file using to iTexturemamanger

    CTextureManager is a common utility of OpenGL examples in the SDK, S60Ex\OpenGLEx\Utils. And I doubt that it would support animated bitmaps. In terms of texturing, an animated bitmap is not a single texture, but a series of different textures, but CTextureManager is prepared to load a single bitmap only, which is going to be the first frame of the animation in this case.
    You can find articles (in the Wiki) / threads (in the DiBo) related to animated .gif files, and CTextureManager is available in source code, so you can extend its functionality to create a series of textures when it encounters an animated .gif file.

Similar Threads

  1. Error : Cannot find file : for DUMMIES
    By PACALA_BA in forum Symbian
    Replies: 7
    Last Post: 2008-07-06, 13:18
  2. Problem with pyobfuscate
    By JOM in forum Symbian
    Replies: 3
    Last Post: 2008-06-20, 22:47
  3. Obfuscate python code
    By bercobeute in forum Symbian
    Replies: 20
    Last Post: 2008-02-26, 20:06
  4. problem when importing from carbide c++ to vs 2003!
    By misfit.physics in forum Symbian Tools & SDKs
    Replies: 12
    Last Post: 2008-02-19, 09:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×