Augmented Reality Tutorial No. 34: Screenshot of Augmented Reality View and Sharing it on Facebook

posted in: Augmented Reality | 53

Little by little we’re moving to https://www.ourtechart.com/augmented-reality/augmented-reality-facebook-sharing/

Download # Unity3D (download and install it, if you don’t have it already) (*.exe file)

Unity3D is also available to download from here

Download # Download and Import Vuforia for Unity3D Extension v5.0.5 (*.unitypackage file)

Unity3D extension is also available to download from here (there might be even be newer version)

Download # Print Euforia of Beauty Logo for Scene Augmentation and Create the Tracker  (*.jpg file)

Download # You Can Use Already Created Tracker Based on Euforia of Beauty Logo  (*.unitypackage file)

Download # C# Code for Taking a Screenshot and Share It  (*.cs file)

Download # Archived Buttons (Snapshot, Share and Close App)  (*.rar file)

Download # Download Android App and Install it to Your Device (the result to test it)  (*.apk file)

Download # Download Whole Augmented Reality Screenshot Sharing Tutorial Project Files (the result to test it)  (*.rar file)

Follow me:

53 Responses

  1. Joaquin

    Very Good

  2. Ketan D. Gaikwad

    Great tutorial…Thanks Please send complete info asap…

  3. Ketan D. Gaikwad

    Hi i have one query after taking screenshot this screen shot is not save into gallary.so is their any solution for this.

    • Yeah, it’s not in the gallery, but it’s somewhere in your device’s memory. If you know how to modify this code in order to send the pictures to the gallery, please, let us all know! So far I achieved this (saving pictures to gallery) only by using Unity3D assets/plugins, which comes with a price.

  4. Joaquin

    waiting for eager new tutorials. congratulations for the work done

  5. Joaquin

    waiting for the new tutorial 35 very good job. Greetings

  6. Hi,
    i’m and Interactive Developer using Unity3d, i sincerely need your help on how to integrate Vuforia and Googlecardboard sdk in Unity 3d for Architectural Visualizations.

    Great work with the tutorials.

    Thanks in Advance

    • Hello, John. Haven’t done anything on that yet. But I will soon, you can wait for a tutorial (2 to 3 months), but if you want it to be quicker it won’t be for free.

  7. hi,
    how can I take another snapshot and not to replace the older one.
    i want to create a snapshot gallery stored on SDcard.
    thanks.

  8. one more.

    now I’m develop ARVR app, is this snapshot button just to snap on-screen interface ?
    is this work on stereoscopic interface ? i want it just a monoscopic(single) image saved.

    *sorry for english

  9. Hi, first of all thank you for all of your tutorials.
    could you use cursor highlighted tool in your future tutorials?

  10. AdminAdmire

    Admin you my teacher and motivator…. i will donate you for sure….

  11. Sergii

    can you help with tutorial or any information about: User Defined Target(vuforia). ? thanks for advice

  12. android ultimate plugin lite seems not free but paid, you got a free asset android ultimate plugin lite for unity3d thanks

  13. andres

    Another excellent tutorial, android ultimate plugin now cost 5$ :(

    • Oh well, it’s not so much, but maybe you’ll find something for free, but you’ll need to modify some code.

  14. Great Tutorial thanks, but i want to ask question i developing a vuforia app,
    but when i taking a screenshot using your code my result is only white screen and the Augmented view only with white background can you help me pls?
    sorry for my bad english, thanks

    • I have a better “taking a picture” function, but I am not willing to share right now.

  15. thanks for this tutorials , But when i trying to copy your CS file to the Unity , this error appear , did you know why ?
    http://www.uppic.com/uploads/14531513431.jpg

    • I would guess that plugin was imported wrong, unless you downloaded whole project folder?

  16. why when i import on smartphone the canvas doesn’t appear?

    • On PC works everything perfectly?

      • yes man, on pc i can see the button and the panel, on phone it seems like they’re invisibile, when i tap randomly on the screen tapping them, they work but i can’t see them!

        • Hard to tell, I would need to look into project

          • Hide

            how can i send you? mail?

          • admin

            Sorry, I won’t have time to deal with it.

          • CALLO

            Hi, I downloaded your project, and when i exported it for android I can’t see the button on smartphone, but when i download your apk,works, what’s the problem?

          • admin

            I have restested just right now (exported the apk). Works great actually.

  17. Stu figlje e bucchin. thanks :)

  18. Thank you for your work, your tutorials are very helpful!

    I was wondering if it could be possible to show the panel only when the marker is tracked?

    • It is really possible, but I won’t go into details, google unity/vuforia forums.

      • Thanks, I’ve managed to find a solution on these forums! But I’m now facing another issue as I have multiple targets. It works great, until I click the camera button and track another target : the share button from the previous track still appear… Is there a way to restart/disable your script while on OnTrackingLost?

      • I ended up duplicating your script and calling the matching canvas for each ImageTarget. I don’t know if it’s the best thing to do but it is working! Sorry for the bother and thanks again for your tutorials!

  19. Hi, your tutorials are very helpful great job! Got one question is it possible to take a snapshot with interface graphic elements? In my case the snapshot is working but without augmented layer. I’m working on simple app with OpenCV ForUnity. Maybe I have to change the camera name in your script?
    Thank you and pleas keep your tutorials coming!

    • It’s possible with or without, doesn’t matter. Just dive into code, I’m hiding the UI elements.

  20. It’s an awesome tutorial,but i was undering if it is posible to add adition text to user’s one, for example: he/she wrote: I like this games,and in the end an stabil #CompanyName?

  21. crimson

    I am a newbie.Assets/SnapshotShare.cs(7,17): error CS0246: The type or namespace name `AndroidUltimatePluginController’ could not be found. Are you missing a using directive or an assembly reference?

    • You’re missing plugin. Did you tried archived project?

      • crimson

        I created a new project, and the plug-in is just downloaded. Is a plug-in date? Help me, I’m a student from China

      • crimson

        I can’t find ‘the class AndroidUltimatePluginController

      • crimson

        thanks,I find out is the class has changed

  22. crimson

    No sharing function after I completed all the steps,Where is it wrong?

  23. how to get android ultimate plugin ? because that’s not free

Leave a Reply