Log in or register to post comments

which part of Videoplayback cpp file load texture images

June 8, 2013 - 2:29am #1

Hi,

I want to show only play and busy icon for video after the image is detected in videoplayback sample, dont want to show VuforiaSizzleReel_1.png or like that.

I am using more the two images targets like (6 images), and i only want to show busy icon untill the video is prepared to play from URL else show the play icon

 

which part of Videoplayback cpp file load texture images

May 16, 2014 - 5:53am #5

I am working on videoplayback sample. I am detecting 5 images and playing 5 videos but while detecting image it showing overlapping image In texture. Can you give solution for this?

which part of Videoplayback cpp file load texture images

June 14, 2013 - 2:12am #4

Texture in C++ are created in the initApplicationNative function in VideoPlayback.cpp, see this code snippet:

// Register the textures
    for (int i = 0; i < textureCount; ++i)
    {
 
        jobject textureObject = env->CallObjectMethod(obj, getTextureMethodID, i);
        if (textureObject == NULL)
        {
            LOG("GetTexture() returned zero pointer");
            return;
        }
 
        textures[i] = Texture::create(env, textureObject);
    }
 
See also the Texture.cpp file where the Texture class is defined.
Last, once the textures are created as instances of the Texture class, the corresponding OpenGL textures are created in the _initRendering() function.
 

which part of Videoplayback cpp file load texture images

June 9, 2013 - 10:49pm #3

HI,, yes i can understand from java how the texture image are working, but i want to the know the part from where in CPP file texture images are loaded.

which part of Videoplayback cpp file load texture images

June 8, 2013 - 5:50am #2

Hi, the icons and other textures are loaded in the VideoPlayback.java, see this method:

private void loadTextures()
    {
        mTextures.add(Texture.loadTextureFromApk("VuforiaSizzleReel_1.png",
                getAssets()));
        mTextures.add(Texture.loadTextureFromApk("VuforiaSizzleReel_2.png",
                getAssets()));
        mTextures.add(Texture.loadTextureFromApk("play.png",
                getAssets()));
        mTextures.add(Texture.loadTextureFromApk("busy.png",
                getAssets()));
        mTextures.add(Texture.loadTextureFromApk("error.png",
                getAssets()));
    }
 You can adjust that to load different icons...
 
Log in or register to post comments