google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.22k stars 606 forks source link

Augumented image is not getting dispalyed #845

Open newmluser opened 4 years ago

newmluser commented 4 years ago

I have a image and it is getting detected . than I am trying to place the augumented image on the top.It is not working,

adb log:
E/native: hit_test.cc:377 generic::internal: No point hit.
I/native: motion_analysis_calculator.cc:618 Analyzed frame 180
I/native: tracking.cc:3027 no history. confidence : 1.0
W/native: motion_tracking_context.cc:751 generic::failed_precondition: GetFeatureTracks is called, but FeatureTracks are unavailable.
D/ViewRootImpl@9bb0251[MainActivity]: ViewPostIme pointer 1
r 1
I/native: session_lite_c_api.cc:23 Deleting ArSession...

Code is :

   for (AugmentedImage augmentedImage : augmentedImages){
            if (augmentedImage.getTrackingState() == TrackingState.TRACKING){

                if (augmentedImage.getName().equals("airplane") && shouldAddModel){
                    placeObject(arFragment,
                            augmentedImage.createAnchor(augmentedImage.getCenterPose()),
                            Uri.parse("model.sfb"));
                    Log.d("I am in","I am inside");
                    shouldAddModel = false;

I am not getting why my image is not getting auguented. is there any issue with that error in logs?

umairabbasi12 commented 4 years ago

Hi i think your problem in sfb file

On Mon, Sep 2, 2019, 4:07 AM newmluser notifications@github.com wrote:

I have a image and it is getting detected . than I am trying to place the augumented image on the top.It is not working,

adb log: E/native: hit_test.cc:377 generic::internal: No point hit. I/native: motion_analysis_calculator.cc:618 Analyzed frame 180 I/native: tracking.cc:3027 no history. confidence : 1.0 W/native: motion_tracking_context.cc:751 generic::failed_precondition: GetFeatureTracks is called, but FeatureTracks are unavailable. D/ViewRootImpl@9bb0251[MainActivity]: ViewPostIme pointer 1 r 1 I/native: session_lite_c_api.cc:23 Deleting ArSession...

Code is :

for (AugmentedImage augmentedImage : augmentedImages){ if (augmentedImage.getTrackingState() == TrackingState.TRACKING){

            if (augmentedImage.getName().equals("airplane") && shouldAddModel){
                placeObject(arFragment,
                        augmentedImage.createAnchor(augmentedImage.getCenterPose()),
                        Uri.parse("model.sfb"));
                Log.d("I am in","I am inside");
                shouldAddModel = false;

I am not getting why my image is not getting auguented. is there any issue with that error in logs?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google-ar/sceneform-android-sdk/issues/845?email_source=notifications&email_token=AKH5KVZI475WUNZ25SHNWF3QHRDJPA5CNFSM4ISYILLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HIVMMTQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AKH5KVYBPYJJNHBNWMYK5YLQHRDJPANCNFSM4ISYILLA .

newmluser commented 4 years ago

Thank you for response. sfb is getting created . what could be the probem in sfb and how to debug that