Log in or register to post comments

lazy loading of textures

October 31, 2012 - 11:58pm #1

In VideoPlack sample we are loading textures in onCreate method with following method before updateApplicationStatus(APPSTATUS_INIT_APP);


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()));

    }

What if I want to load textures after downloading them from internet? What should I do? If I simply add texture to mTextures array then it is not loaded since we have to load textures in cpp file as well.

lazy loading of textures

May 28, 2013 - 9:04am #14

Sounds like you are trying to load some Dataset from an XML / DAT database, but perhaps those files are not present.

 

lazy loading of textures

May 28, 2013 - 1:38am #13

how can i get that QCAR be loaded or not

 

 

 

 

when run in device its shows failed load tracker data 

lazy loading of textures

May 28, 2013 - 1:18am #12

Hi, that error (Failed to initialize) typically occurs if QCAR has already been initialized and you try to init again.

Make sure your code does not perform initialization twice...

 

agumentedreality

May 28, 2013 - 12:31am #11

hi

i get the libQCAR.so file,thank you

 

now i get the error like 

 

InitQCRTask::onPostExcute:FailedInitializeQCAR.Exiting

 

please give me the solution as early as possible

thanks

Malleswari.D

augmented reality

May 27, 2013 - 1:41am #10

Hi 

i set all

 

 
VideoPlayback.java:-
 
private static final String NATIVE_LIB_SAMPLE       = "VideoPlayback";
private static final String NATIVE_LIB_QCAR         = "QCAR";
 
Android.mk:
 
 
LOCAL_MODULE    := VideoPlayback
LOCAL_SRC_FILES := Ecognosys.cpp
 

 

but still i get the same  error libQCAR.so not loaded

augmented reality

May 27, 2013 - 1:41am #9

Hi 

i set all

 

 
VideoPlayback.java:-
 
private static final String NATIVE_LIB_SAMPLE       = "VideoPlayback";
private static final String NATIVE_LIB_QCAR         = "QCAR";
 
Android.mk:
 
 
LOCAL_MODULE    := VideoPlayback
LOCAL_SRC_FILES := Ecognosys.cpp
 

 

but still i get the same  error libQCAR.so not loaded

lazy loading of textures

May 27, 2013 - 1:17am #8

Hi, two things to pay attention to are"

in CloudReco.java (or VideoPlayback.java or anyway in your main activity file), you should see these lines:

private static final String NATIVE_LIB_SAMPLE = "CloudReco";
private static final String NATIVE_LIB_QCAR = "QCAR";
 
And in android.mk (under the /jni folder) you should see a line like:
 
LOCAL_MODULE := CloudReco
 
(or LOCAL_MODULE := VideoPlayback)
 
Make sure that the LOCAL_MODULE name in android.mk and the NATIVE_LIB_SAMPLE value in Java are the same.
 
 

augmentedreality

May 27, 2013 - 12:56am #7

Hi  

i compile the my project and get  the below statments in console of eclipse IDE

13:10:20 **** Incremental Build of configuration Default for project Ecognosys ****

"G:\\Android\\android-ndk-r8e\\ndk-build.cmd" all 
Install        : libEcognosys.so => libs/armeabi/libEcognosys.so
 
13:10:21 Build Finished (took 888ms)
 
 
In Logcat i  get the following errors:
 

        1. The library llibQCAR.so couldnot be loaded.

         2.Fatal Exception:main

            java.lang.unstatisfiedLinkErrors:onResume nativemethod not found.

                    at com.qualcomm.QCAR.QCAR.onResume(NativeMethod)

   at com.example.ecognosys.Vedioplayback.onResume(VedioPlayback.java)

at android .app.Instrumentation.callActivityonResume.

lazy loading of textures

May 22, 2013 - 8:52am #6

Hi, I would recommend to read this FAQ, as your problem can probably be one of those explained here:

https://developer.vuforia.com/forum/faq/android-how-do-i-fix-my-compile-or-runtime-errors

 

Unstatisfied error

May 21, 2013 - 11:58pm #5

Hi thank you for replaying

 

 

I get the error  in video playback agumented reality app 

                                 java.lang.unsatisfiedLinkError:onReume native method ot found.

                                    at com.qualcomm.QCAR.QCAR.onResume(NativeMethod)

                                 at.com.example.ecognosys.VideoPlayback.onResume(NativeMethod)

                                  at android.app.Instrumentation.callActivityOnReume.

 

 

Malleswari.D

lazy loading of textures

May 21, 2013 - 7:01am #4

Hi Malleswari,

what error are you referring to ?

 

java.lang.UnsatifiedLinkError:onResume

May 21, 2013 - 2:40am #3

how  can i slove thiss error

lazy loading of textures

November 1, 2012 - 1:36am #2
Log in or register to post comments