Tag

unity tutorial Archives - Mir Imad Ahmed

Augmented Reality Video Player | Kids Poem in AR | Learn Vuforia Augmented Reality | Unity 2017.3

By | Programming, Unity, Vuforia | No Comments

Augmented Reality Video Player | Kids Poem in AR | Learn Vuforia Augmented Reality | Unity 2017.3

Hi Guys. Welcome back to another augmented reality tutorial about vuforia and unity. I am using unity 2017.3 and latest vuforia that comes with it. In this video I am going to make augmented reality video player app called Kids Poem in AR. Learn Vuforia Augmented Reality Unity by watching my tutorial.

I am going to use 3 short poem videos, we will display the videos on a Quad in Unity 3d as augmented reality overlay. We are going to add UI with Play, Pause, Next, Previous, Mute and UnMute functions as well.

Final outcome app of the video:
Install the app: https://play.google.com/store/apps/details?id=com.mirimad.kidspoemar
and try it on the image target:

augmented reality video player

vuforia video player image marker

Comment your thoughts about my programming style, ask questions if you don’t understand any part. Share your ideas about AR projects that I can do in future.

 

Support me and become my patron: https://www.patreon.com/mirimad

Thanks for watching 🙂 Follow for more augmented reality unity development, vuforia, ionic, entrepreneurship, online earning, shopify, etc. videos.

❤ Like | Share | Comment | SUBSCRIBE ❤

Social Follow:

Twitter: https://twitter.com/mirimadahmed
Facebook: https://www.facebook.com/imadentrepreneur/

Subscribe my channel for more videos
https://www.youtube.com/c/MirImad

Check how I made vuforia Cloud Recognition with Multiple Image Targets

Unity Admob Banner | Unity Admob Plugin | AdMob Tutorial Unity | Unity Admob Integration

By | Programming, Unity | No Comments

Unity Admob Banner | Unity Admob Plugin | AdMob Tutorial Unity | Unity Admob Integration

Hi guys. First of all sorry if you feel my voice is low or something, I was not feeling well today but I did not missed my upload.

In this Admob Tutorial Unity:

Earning money is a cruical part of making games with unity 3d. I have worked a lot with unity 3d in making games or augmented reality projects. Admob is the best earning network for mobile ads I beleive. By showing unity admob banner in your app you can earn money. You can always have others as well – no problem.

In this Admob Tutorial Unity I am going to walk you through how to integrate unity admob banner, unity admob interstitial and unity admob rewarded video ad to your game or mobile app that you build with unity 3d.

Learn to place ads in ionic mobile apps.

Thanks for watching 🙂 Follow for more game development, entrepreneurship, online earning, shopify, etc. videos.
——————————————
❤ Like | Share | Comment ❤ #SUBSCRIBE

Social Follow:

Twitter: https://twitter.com/mirimadahmed
Facebook: https://www.facebook.com/imadentrepreneur/

Subscribe my channel for more videos
https://www.youtube.com/c/MirImad

Check out my website:
https://mirimad.com/

By | Programming, Unity | No Comments

Vuforia Cloud Recognition Multiple Targets | Unity 2017.3 | Augmented Reality | Unity Tutorial

Hi Everone. First of all sorry for the breaks and umhs and ahms. I am suffering from nausea these days.

Learn How To Download Asset Bundle From Server in Unity 3D | Under 2 Minutes

Welcome to another augmented reality tutorial video about Vuforia cloud recognition. I create augmented reality apps with vuforia every time. I bring you another augmented reality tutorial about vuforia cloud recognition.

In this vuforia cloud recognition sample I will teach you guys about vuforia cloud recognition multiple targets augmentation. I am using Unity 2017.3 for development.

Let me know in comments if you guys want more vuforia cloud recognition example videos.

Keep an eye for my markerless ar video coming soon.

Thanks for watching 🙂 Follow for more vuforia augmented reality, unity 5, game development, entrepreneurship, online earning, shopify, etc. videos.
——————————————
❤ Like | Share | Comment ❤ #SUBSCRIBE

Social Follow:

Twitter: https://twitter.com/mirimadahmed
Facebook: https://www.facebook.com/imadentrepreneur/

Subscribe my channel for more videos
https://www.youtube.com/c/MirImad

Check out my website:
https://mirimad.com/

Unity Video Player Explained Fully | Learn Unity Mir Imad Ahmed

By | Programming, Unity | No Comments

Unity Video Player Explained Fully

unity video player

unity video player

New unity video player component has been introduced lately from Unity. I have had a chance to play around with the component in my applications.

I wrote about using video player with Vuforia AR here.

I am going explain as much as I can. Here is how it looks like:

unity video player component

unity video player component

I will try to explain things one by one.

Source

  • Video Clip – It can be a video clip imported inside unity project.
  • URL – You can play a video directly from a URL be it served over web or file:// protocols.

Play On Awake

If you keep this checked unity video player will automatically play your video as soon as you run the project.

Wait For First Frame

If you keep this checked unity video player will wait till it gets the first frame of the video loaded into the memory.

Loop

Self explanatory, helps you if you want to loop your video and want it to play itself again when it ends.

Playback Speed

It helps you speed up or down your video speed.

Render Mode

It requires more than just one line explanation. It has 5 different rendering modes as shown:

unity video player render modes

unity video player render modes

Camera Far Plane

Render the video on the Camera’s far plane.

Camera Near Plane.

Render the video on the Camera’s near plane.

Render Texture

Render the video into a Render Texture.

Material Override

Render the video into a selected Texture property of a GameObject through its Renderer’s Material.

API Only

Render the video into the VideoPlayer.texture Scripting API property. You must use scripting to assign the Texture to its intended destination.

Aspect Ratio

The aspect ratio of the images that fill the Camera Near Plane, Camera Far Plane or Render Texture when the corresponding Render Mode is used.

Following are the aspect ratio options we have:

No Scaling

No scaling is used. The video is centered on the destination rectangle.

Fit Vertically

Scale the source to fit the destination rectangle vertically, cropping the left and right sides or leaving black areas on each side if necessary. The source aspect ratio is preserved.

Fit Horizontally

Scale the source to fit the destination rectangle horizontally, cropping the top and bottom regions or leaving black areas above and below if needed. The source aspect ratio is preserved.

Fit Inside

Scale the source to fit the destination rectangle without having to crop. Leaves black areas on the left and right or above and below as needed. The source aspect ratio is preserved.

Fit Outside

Scale the source to fit the destination rectangle without leaving black areas on the left and right or above and below, cropping as required. The source aspect ratio is preserved.

Stretch

Scale both horizontally or vertically to fit the destination rectangle. The source aspect ratio is not preserved.

Audio

Then comes another crucial part of how you want your video’s audio to be considered. Do you want no audio, play directly on the hardware or do you want to do audio tweaking as well. For that you will have to select Audio Source option.

If you select Audio source as the option you will have to provide the reference of the audio source component where you want the audio to be played through. Then in that audio source component you can do the tweaking.

Watch my All unity tutorials.

Learn how to unity play video on canvas in unity. 

Learn How To Download Asset Bundle From Server in Unity 3D | Under 2 Minutes

By | Programming, Unity | No Comments

Hello Everyone !!

I have been receiving a lot of requests to make a tutorial on how to download asset bundle from server in Unity 3D. Here I made a simple video tutorial for you guys to learn how you can download asset bundle from server under 2 minutes.

Asset bundles are a great way to maintain and expand your game. In this video I show you how to set up asset bundles and use them in an online Unity game or application. I have also written about making and exporting asset bundles here.

Downloading asset bundle from server is as easy as shown. In under 2 minutes you will see how I downloaded asset bundles from server using simple Unity 3D and C# code.

using UnityEngine;
using UnityEngine.Networking;
using System.Collections;
 
public class MyBehaviour : MonoBehaviour {
    void Start() {
        StartCoroutine(GetAssetBundle());
    }
 
    IEnumerator GetAssetBundle() {
        UnityWebRequest www = UnityWebRequest.GetAssetBundle("http://www.my-server.com/myData.unity3d");
        yield return www.SendWebRequest();
 
        if(www.isNetworkError || www.isHttpError) {
            Debug.Log(www.error);
        }
        else {
            AssetBundle bundle = DownloadHandlerAssetBundle.GetContent(www);
        }
    }
}

 

Watch my All unity tutorials.

Learn about unity video player.