How to make your own augmented reality simulation in Unity using Vuforia?

augmented reality simulation in Unity using Vuforia

You get a lot of Augmented Reality in games and probably you should also know how to create one. We have a made a simple and a quick free unity 3D scripting tutorial for you to get started in no time. We are going to make this AR effect using Vuforia.

First, you must update the latest vuforia plug-in from their site and create a custom image of the target from https://developer.vuforia.com . Now download target as a unity package and import the plug-in. Create an empty game object and attach “Image Target Behaviour” script.  Set properties of this script Set type to Predefined, Dataset which give you an image name ,Image Target– select name which one when you will create a target.

Now attach  “Image Target Trackable EventHandler” Script.  In “image target trackable eventhandler “script you will change On Tracking Found method and On Tracking Lost method. Add the game object to the empty game object already created and set it on image target. dd AR Camera prefab in hierarchy panel. check load data set and activate.

Augmented reality is being used by a lot of games to create path breaking games. One of them is Ingress. It is surely one of the best strategy games out there and has been developed by Google. Apart from Ingress, Drakerz Confrontation, Pulzar and many more.

Have a great time learning the tutorial. Next time we would take up a Unity 3D game source code for creating infinite 2D map. Cya!

Related: Make your Christmas merrier with these 12 Apps

How to create a trail in Unity3D?

How to create a trail in Unity3D

Trails are a common sight in every mobile game these days. Be it a fired bullet or the blade swoosh of Fruit Ninja, they are everywhere. You would definitely need to employ trails in any of your games anytime. So, how do you make this trail? This free unity 3D scripting tutorial can help you out with that.

We will use the trail renderer feature of Unity game engine to create the this effect. Go to the trail renderer component and add this to an empty game object.

There are some major properties within the trail renderer that you would need to specify in order to get the desired effect that you want with your trail.

  • Materials: Use default material or create a new material and set to Mobile/Particles/ Alpha Blend.
  • Time: Length of trail in Seconds.
  • Start width: Width of trail at start.
  • End width: Width of the trail at the end.

Other properties are kept default.

Now, write the code as shown here in the tutorial. You can also download this unity 3D game source code for free and tweak the parameters by yourself. After you have written the code, attach it to the object to which you have assigned Line Renderer.  You’re done!

Please note that Line Renderer has been introduced in Unity since quite some time and many people have been using it. It is available across all the version of Unity.

Have a great time creating your own trail. Next time we would learn to create our own augmented reality simulation in Unity. Cya!!

Related: What are the common types of Game Assets?

Use Particles to create flowing liquid in Unity?

Free unity3d scripting tutorial

Fluids and liquids are one of the most common visual elements you will come across all kinds of games. You would need to create flowing water or some kind of flowing liquid effect in your game at one point of time. It is extremely common and this free unity scripting tutorial deals with that.

First, start with an empty game object and apply particle system component to it. Set the parameters as shown here .  Change the velocity and size to lifetime. You can specify the graph for velocity in X axis for a smooth effect.

Next thing is to make the stream of the flowing liquid deplate. We have used a parabolic graph for size because the pouring wine will go weak at the end of the stream. In other words, at the end of lifetime the stream would eventually die. You can set the graph according to your own imagination to create the desired effect.

Now, enable collider in particle system. The particle system collider would interact with the glass collider and a desired effect will be created.

Look for the rendering effect and select the render mode as stretched billboard.  This will give you a smooth rendering effect. Set the shader to transparent/bumped specular and you are done.

This is quick and can be accomplished within a short span of time. You can change the colour of the shader with respect to the type of fluid you desire for your game.

Next time, we would discuss how to create a simple camera animation using SPLine in Unity. Till then have a great time.

Related: 13 Ways to make your mobile games more exciting and addictive