Put Video Above the Image Target in Android AR - unity3d

I use Unity to create augmented reality app via vuforia, I want to replace the 3D object above the image target by playing a video playback.
how can I do that?

Login to the Vuforia developer portal and select Downloads -> Samples and scroll down to Advanced Topics. Download the Unity Package listed in this section, it has a sample scene of how to do video playback on an image target.
https://developer.vuforia.com/downloads/samples

I'm not sure if I understood you so I'm gonna give the 2 possibilities.
If you want to play a video instead of the 3dModel :
you can drag a Gameobject -- ex : plane with a MovieTexture) -- under you ImageTarget.
Or if you to play a video behind you 3DModel then :
On the ARCamera/WebcamBehavior : you can disable the "Playmode render video". the AR function will still trigger but you dont have the webcam render on the background. so you're free to playback whatever you want on the back.
now you are free to put what ever you want behind.

Related

Vuforia Ground Plane Detection doesn't work when using webcam (IP webcam using Iriun Webcam in android phone)

Thought of using Vuforia as it allows testing using a webcam. So, i downloaded Iriun Webcam (IP Webcam for android), and succesfully got the video stream inside the Unity Editor when i press "Play".
I created a minimal AR example, where my app would detect a plane and a tap would place an object.
My issue is that when I Build the apk and test it on my phone it works perfectly as it should, but when i do it using the play button inside the editor, the video stream is captured, but it won't do any AR stuff (like plane detection as it was supposed to do)
Please help me with any possible reason there could be, as I couldn't find any such issues faced by anyone else
I created a minimal AR example, where my app would detect a plane and a tap would place an object.
My issue is that when I Build the apk and test it on my phone it works perfectly as it should, but when i do it using the play button inside the editor, the video stream is captured, but it won't do any AR stuff (like plane detection as it was supposed to do)
As mentioned here https://library.vuforia.com/unity-extension/vuforia-play-mode-unity Ground Plane is not supported when using a webcam in Unity Play Mode. Ground plane relies on a robust device tracker and this is not available when using a webcam. However, to help development, it is possible to record a sequence on a device and then using this in play mode https://library.vuforia.com/platform-support/recording-and-playback. The other option is to emulate the Ground Plane behavior using an Image Target as discussed here https://library.vuforia.com/ground-plane/introduction-ground-plane-unity.

Unity For playermovement with imageFix

When I run my unity project and playerMovement Starts then image is also moving with player...I want to stop the image moving with playerMovement.
Im sharing the drive link where I uploaded the video of problem.
drive link : https://drive.google.com/drive/folders/0B1g-8FrnSuSRdWFKQWtiWHlPN3M?resourcekey=0-W0A1w2KqXZR1WaCAYhKfdA
ooof. Video in your google drive has no file extension, I renamed it "*.mp4" but the image is strangely stretched, also you filmed it sideways, in portrait mode... I had to turn my head. Then, there is this noise...
Can you at least record a proper video? And maybe upload it to imgur? It's just Drag&Drop - no account needed...
So, is the "linkedIn Logo" image attatched to your player or camera? I mean, is it a child of that? That would explain why it moves with it...

Hololens Video recording not showing UI elements

We're working with the Hololens 2 and sadly when recording a video, taking an image or going into the live-view, Unity UI elements are not shown in the image/video.
Does anybody know how we can make Unity UI elements appear in video & photo capture in Hololens?
Here is an example where below the title there is text present, but not captured in the image.
The title part uses a TextMeshPro component, while the text part uses a TextMeshProUGUI component (due to the scrolling window of the text.)
We're using Unity 2020.3.6f1, MRTK 2.7.2 with OpenXR backend.
Thanks for any help and recommendations.
For how to create mixed-reality photos and videos, you can use the Start gesture to go to Start, then select the Camera icon, for more information please refer to this link: Create mixed reality photos and videos.
If you want to seamlessly integrate mixed reality capture and insertion into your apps, you need to enable the Windows Mixed Reality Camera Settings provider in your MRTK profile and check Render from PV Camera.
The issue was that our Unity version was not updated, as hinted out in this github issue. Simply updating to the newest Unity version solved the problem.
https://github.com/microsoft/MixedRealityToolkit-Unity/issues/10155

Vuforia stop the video in the Background

I am building an AR project using Unity and Meta 2 glasses. I am using Vuforia to detect an object when I add the vuforia packages to the project and run it I see like a video in the background. It is so distracting and could not manage to disable it.
See a screenshot
Any clue how to disable it?
Unless the Vuforia version you have recognizes your specific AR device, Vuforia thinks it is a phone and renders the video background. All you have to do is not to render the video background.
Here you can find the exact instructions of how to disable the rendering of the background in Unity:
Disabling video background
The important code is this:
BackgroundPlaneBehaviour bgPlane = GetComponent<BackgroundPlaneBehaviour> ();
if (bgPlane.enabled) {
bgPlane.enabled = false;
}

Recording vr motion video

I want to record a vr motion video of my house using aframe so that I can show the demo view of the the house.What are the js files need to be included?How can I do it?
I assume you just want to record 360º video — if so, a 360º camera is the place to start. See: http://thewirecutter.com/reviews/best-360-degree-camera/
You may want to test things out on your device (Gear VR, Cardboard, Vive, whatever) before investing in a camera. Video playback in A-Frame may have some issues on mobile devices particularly.
Example: https://aframe.io/examples/showcase/videosphere/
hi kumar yes you use without using 360 camera by using normal mobile phone but to place that video you have to use latest version of unity that support not only 360 video format but also plane so where you can put that video as an medium.
or if you are using unity 4.6 to unity 5.3 then use have to use some packages like easy video texture in this package you have different options for placing video
https://github.com/maazirfan/Easy-Movie-Texture-for-Unity
and use where ever you want vr/gear vr / htc vive .