Im noob at Vuforia, so Vuforia can't recognize my image? - unity3d

First of all I'm noon at Vuforia and Unity. I want to make memorybook to my girlfriend. We have photograph album and I want to use them as target images and want to show videos in program. I have downloaded core package, and tried imagetarget works like charm. But when I change target image to my database pictures it cannot recognize. Also Vuforia give 5 stars to my images. I don't know what am I missing? Can you help me?

You need to change the AR Camera's settings. One of them deals with what databases the camera has loaded.
I believe it's called "Active databases" or "Loaded databases," its been a while since I've messed around with Vuforia, so I can't remember the exact name.
You need to make sure to include your database in the list of active/loaded ones.

Related

How do I create a test app to create many screenshots in UE4?

I'd like to create a test application for my Unreal Engine based game to create screenshots. I'd like to place many (possibly thousands) of cameras throughout the maps and then have my test application enumerate them all and take a screen capture at each camera location.
I came across Taking Screenshots, but wanted to first check to see if this isn't already built into UE4 in the editor, or some tool. I'm also aware of the Screenshot Comparison Tool, but that doesn't seem to be what I need because I don't really want to use UE4 to do the image matching, but instead just want a directory full of images that I can do with what I want.
Any suggestions?
This is not directly what you want to do but I found this article very interesting: https://www.unrealengine.com/en-US/blog/capturing-stereoscopic-360-screenshots-videos-movies-unreal-engine-4?sessionInvalidated=true
It explains how people at Ninja Theory Ltd proceeded to produce their 360 video trailer which is, in the end, producing two 360 screenshots per frame.
So what they did was having everything exported in a folder (as a sequence of images) and then did what they wanted with it. (In this case put them all together with ffmpeg to make a video)
They used a plugin, I do not know if it can be tweaked not to make 360 captures but the built-in "take screenshot" from UE4 could work for you.
More specifically to what you need, you could probably store all positions/transform in an array, loop over it when you want to make the screenshot. Each step, you place your Camera at the specific position, make sure it is the current active camera to change the "view" and take a screenshot.
Taking screenshots and setting parameters such as export folder, resolution etc. ... can be called via console commands and console commands can be executed from code or blueprint using the "execute console command" node (there is an example in the article).
I hope it helps.
I think the best bet you have is rendering camera to a texture.
this way you can have multiple inactive camera then iterate through them, activate them, capture their screen view and going to the next one.
for basic tutorial have a look at
https://www.youtube.com/watch?v=a9iho861SlY

Dynamic Image Targets - Augmented Reality (Vuforia)

I just want to ask, is it possible to have dynamic image targets using Vuforia? I'm thinking of a process that's roughly like this: Take a picture then that photo will be used to be an image target. Is that possible? If yes, how? I only know downloading a set of image targets from the developer site (Target database) and just load them. By doing this, it will be kind of close to markerless tracking. Any idea would be appreciated!
Yes , search for "user defined targets", i have developed an app with this technology just like what you have wrote "Take a picture then that photo will be used to be an image target"

How do I create an AR marker for Vuforia / Unity?

This is a horribly basic question I know (!) but how do I create and import an AR marker into Unity? I know I am meant to do it through the Vuforia Marker Manager page. I have created a Target Database and I have downloaded the database, but how do I get the marker to display in Unity?
Also: what exactly is a Target Database? Is that another name for 'marker'?
To answer your question specifically, yes your Marker is your Target.
So what you need to do is:
Go to License Manager. Add a License Key choosing None as your License plan.
Now go to Target Manager. Create a Database and add the license for it from the drop down.
Add Target, and select from your computer the Image that you want to be the Marker, and upload it.
Once the status of the Target changes to active you can click Download Database and make sure you click For UnityEditor. This downloads a .unitypackage
Now inside Unity, go to Assets>Import New Assets... and locate to the .unitypackage you downloaded
This is how you import your database.
If you haven't Imported the Vuforia package Unity Extension then you
simply need to download it from the Downloads section and Import it
through the Assets>Import Package> Custom Package
Now ideally to work with AR, you would use the AR Camera, which is located in your Assets Bar in Qualcomm Augmented Reality>Prefabs. Drag ARCamera onto your scene.
With the AR Camera selected in the Hierarchy look at the Inspector tab. You'll see Data Set Load Behavior. Under that you SHOULD see the name of the .unitypakage you imported ealier. Check the name as well as make it Active.
Now in Qualcomm Augmented Reality>Prefabs you should also see Image Target. Drag that onto the screen as well.
With the ImageTarget selected in Hierarchy look at the Inspectorthere should be Image Target Behaviour
Fill in as follows
Type: Predefined
Data Set: <Name of imported .unitypackage>
Image Target: <Name of Picture uploaded into the Database>
Now you may work around the Image Target as per your app requirement.
NOTE: In the License Manager, click on the Name of the License and
you'll see a Alpha-numeric code. Copy that code, and within the
Inspector of the AR Camera, under QCAR Behaviour>App License Key
paste the code in. This must be done in order for your app to work on your > device.
Hope this helps you. Please feel free to ask me if anything.
There are a couple things that you need to do before getting this to work.
Firstly, I noticed you mentioned creating a Target Database on the Vuforia website, but have you actually added any markers to it? Markers are the actual AR images that will be scanned. A Target Database is a collection of markers that can be used simultaneously in your Unity application.
Once you have your markers uploaded they should have a 2-4 star rating as shown in the picture
After downloading the database as a UnityPackage you have to import it into Unity along with the Vuforia Unity SDK.
If you are still having trouble getting an example scene running within Unity you can download a sample scene at the previous link.

Screen record in unity3d

How to do screen record in unity?
I want to record my screen(gameplay) during my running game.
That should be play/stop , replay , save that recording on locally from device, open/load from my device (which is already we recorded).
In my game one camera which can capture native camera, and one 3d model.
I wish to record that both and use my functionality whenever i want.
Thank you in advance.
This is hard to implement, but not impossible. Because every frame or interval you need to capture screen shot of your camera view and store it in the list. You need good, (Smaller interval but not much. Because when it becomes smaller, needs more memory) interval value. If your interval is big raplay can be seen laggy.
While you play game your ram becomes full and os will terminate the app. So you need to fully cover memory optimization. Another solution is assets in Unity Asset store.
EZ Replay Manager can be used. (Keep in mind: I haven't tried it yet.)
Free
Pro
Check out this open-source project: https://github.com/getsocial-im/getsocial-capture.
By default our project records Main Camera's rendered content. C# examples are in the repo.
You can record in 2 modes:
Continuous mode - capture last X frames.
Manual mode - capture frames on your own when needed. For example, record a timelapse of the level.
Once the recording is done, you can generate GIF, get raw bytes and do whatever you want. E.g. let your users share that GIF with friends.
Here's the recording of a game session from the test app. The recorded GIF shows up in the end:
Disclaimer: I worked at GetSocial at the time of writing.
well i know a guy who post a similar project on github. link :- https://github.com/thanh-nguyen-kim/Unity_Android_Screen_Recorder
but there is a limitation and that is this code is only works on android devices(android means only android not even on ios).
but this is very powerful recorder and it is capture whatever appear on screen(so basically it is a screen recorder made with unity) and also it will capture your microphone output.give it a try.
and if you find any other solution then please also tell me. because it will very helpful for me.because i want to record video with in-game audio and also save it into gallery
Unity now has a screen recording tool builtin. It's called Recorder and doesn't require any coding.
In Unity, go to the Window menu, then click on Package Manager
By default, Packages might be set to "In Project". Select "Unity
Registry" instead
Type "Recorder" in the search box
Select the Recorder and click Install in the lower right corner of the window
That's about all you need to get everything set up and hopefully the
options make sense. The main thing to be aware of that setting
"Recording Mode" to "Single" will take a single screenshot (with
F10)
NOTE: This is a copy of my answer from a Unity screenshots question

Which formats can I use for animated 3D objects

.. in order to use in augmented reality application on iphone?
I have an app working like that; camera detects the marker and then it places an object related to that marker. However the object is not animated. It stands there. Of course i can move the object programmatically but i don't want to do that. What i want is the object has animation itself. I searched but i can't find exact file format. There are .obj files (not animated itself, is it true?), .mtl files, .anm files .etc. If the format is one of them, then can you give me an example model?
Thanks
Definitely MD2 is your best choice. I have integrated jPCT-AE and Vuforia and it works like a charm. AFAIK MD2 is best for animated models mainly because it can store the key-frame animation in itself and you can have any kind of animation with it at almost no cost.
Here is a test video:
http://youtu.be/chsHh0pEhzw
If you have more question do not hesitate ;)
You should specify what AR SDK/platform you are using to create the iPhone application you are talking about. That being said, for many of the common AR SDK available the MD2 format is often used to display animated models (either with a built in render engine or with example code that shows how to use the MD2 format with that SDK):
http://en.wikipedia.org/wiki/MD2_(file_format)
http://www.junaio.com/develop/docs/documenation/general/3dmodels/
OBJ (Wavefront) files do not support animation.