Log in or register to post comments

Usage of VideoScript

December 5, 2010 - 2:59pm #1

Hello,
I want to know the usage of VideoScript in QCAR Unity3 Extension, I donÂ’t see any game object attached to this script . ? Can I use it when I want to render a video as a texture on 3D objects?

Regards,,,

Re: Usage of VideoScript

October 31, 2011 - 6:33pm #10

No recommended methods, unfortunately, this is still up to the developer.

- Kim

Re: Usage of VideoScript

October 31, 2011 - 2:33am #9
ksiva wrote:

Ah, I'm afraid we can't help with applying a movie as a texture to an object (it's much different than rendering the camera). Unity does not support this for mobile devices either, it seems. Here is a link to their documentation on the subject:

http://unity3d.com/support/documentation/Manual/Video%20Files.html

- Kim

Greetings, I am aware this topic is old but I just wanted to raise the question again and see if this has changed in the last year - is there a recommended way to play movies on textures using the Qualcomm AR engine?

- Jan

Re: Usage of VideoScript

April 28, 2011 - 7:20am #8

You may need to add a video player activity to the AndroidManifest.xml file (located in the Plugins/Android directory):

<activity android:name="com.unity3d.player.VideoPlayer"
    android:label="@string/app_name"
    android:configChanges="keyboardHidden|orientation">
</activity>

Also, you may want to disable the TrackerBehaviour before playing your video:

TrackerBehaviour tracker = (TrackerBehaviour) UnityEngine.Object.FindObjectOfType(typeof(TrackerBehaviour));
tracker.enabled = false;

Let me know if it still isn't working after trying these things.

- Kim

Re: Usage of VideoScript

April 28, 2011 - 7:08am #7

Hello, I don't know if this is the right place to ask, but I have problem with palying video while tha AR Camera is on. The problem I run in to is that it crashes. I have tried to build it w/o the qualcomm assets and then it works fine but as soon as I put the video in the AR Camera or in any other camera while the AR camera is still active it crashes.

Any pointers I can get or is it broken?

Re: Usage of VideoScript

December 11, 2010 - 7:43am #6

No, you shouldn't need an iPhone license to use this feature. Unity supported the iPhone first, and then tacked Android support for features such as video playback onto the existing methods. I imagine they'll change the naming conventions to something more universal at some point, but for now using the iPhone methods works fine on Android, and another license isn't required.

- Kim

Re: Usage of VideoScript

December 11, 2010 - 12:55am #5

Thank you so much for your support,

I read the documents in the unity link, but

Do I need a unity iPhone license to use iPhoneUtils.PlayMovie and iPhoneUtils.PlayMovieURL in order to display movies in android OS devices? If so, is there any solution to compile and test my application before get any required licenses ?

Note : I have a trial unity pro license and a trial of unity android

Thank you

Re: Usage of VideoScript

December 5, 2010 - 4:12pm #4

Ah, I'm afraid we can't help with applying a movie as a texture to an object (it's much different than rendering the camera). Unity does not support this for mobile devices either, it seems. Here is a link to their documentation on the subject:

http://unity3d.com/support/documentation/Manual/Video%20Files.html

- Kim

Re: Usage of VideoScript

December 5, 2010 - 4:03pm #3

Thank you for your reply,

I created a 3D object and I want to place a movie on the surface of that object as texture.

Also rendering live camera video as a texture on 3D objects will be cool feature in some application .

Regards,,

Re: Usage of VideoScript

December 5, 2010 - 3:49pm #2

Sorry, that script shouldn't have been included in the distribution (it's from an older version). It doesn't do anything currently.

Do you want to render the live camera video as a texture on 3D objects? This feature isn't currently included in the extension, but we have talked about exposing the video texture so you can do something with it. If this is a feature you'd like to see please let us know!

- Kim

Log in or register to post comments