- Home /
Augmented Reality engine that can be feeded by default camera from Unity?
I would like to use the default camera in a Unity scene as source to detect the AR triggers instead the camera that come with the device. Vuforia at least can not do it. Does anyone here knows about another engine that support this feature? or another aproach?
Answer by CasperK · Oct 04, 2016 at 01:11 PM
I'm having trouble understanding your question,
what I'm getting from this is that you want to use a Unity camera in a Unity scene to "Detect" triggers like QR codes in the Unity scene, which doesn't make any sense to me.
Do you want to AR without the AR?
Sorry @Casperk, maybe I should explain a bit more my setup. I have already a unity scene playing a 360 live video strea$$anonymous$$g. So basically I'm in the center of an inverted sphere with a video projected on the object and stereo rendering, I'm trying to be able to detect markers inside the live video.
Answer by joker999 · Oct 04, 2016 at 02:24 PM
I usually just delete the default camera when I do AR. Note that the camera that Vuforia gives you is basically the default camera just has their AR API attached to it, so you could theoretically do the same.
But I recommend deleting the Main/Default camera then just under the "Tag" field of the Vuforia camera for example click the drop box and select MainCamera. Unless I also am not understanding your question.
Vuforia plugin reads the list of devices directly from the O.S. and you can only select the device camera to take the video input, so you are not allowed to inject video from any source different than a physical video device. I would like to inject in an AR Camera a Render Texture from a unity camera.
Answer by GeminiDeveloper · Oct 04, 2016 at 02:24 PM
I'm not experienced at AR but I'm assuming that AR works with image processing to detect "AR triggers". If you use the camera to detect the triggers, AR engine uses device camera's texture.
Basically you can manually send any camera's render texture to the AR engine, so it can process and detect the triggers as you mentioned. But not entirely sure if it will work. @JuanVR
That's the thing I'm looking for. But at least the AR engine I was using takes the texture to process directly from the device and doesn't let you inject a Render Texture.
Did you contact Vuforia for this issue? You can request to access the texture feeding function to use in your project. $$anonymous$$aybe it is possible.
Also you can convert RenderTexture to a Texture2D via script, then you can inject the texture to the AR engine. There are multiple threads how to do this. @JuanVR
Your answer
Follow this Question
Related Questions
Download prefab at runtime 2 Answers
ARCore - prefab doesn't spawn at correct position 0 Answers
Augmented Reality SDK for Unity that can compile in .exe for Windows 0 Answers
AR Foundation: Adding image to MutableRuntimeReferenceLibrary returns the status "ErrorUnknown" 0 Answers
how can i create a count down AR object that depends on a variable of remainnig stock? 1 Answer