wiki.sine.space | sinespace

Difference between revisions of "Embedded Video"

From wiki.sine.space
Jump to: navigation, search
 
(18 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
  
Sine Space allows for creators to embed Youtube videos onto objects they create in Unity with The Editor Pack. The Embedded Video (Script) component allows for the creator to embed Youtube and other video content into Unity Materials.
+
Sinespace allows for creators to embed Youtube videos onto objects they create in Unity with The Editor Pack.  
  
To successfully work with the Embedded Video (Script) component in Sine you will need to have the following components added to your object
+
The Embedded Video (Script) component allows for the creator to embed Youtube and other video content into Unity Materials.
 +
 
 +
To successfully work with the Embedded Video (Script) component in sinespace you will need to have the following components added to your object
  
 
For this walk through, I am using a standard cube prefab.
 
For this walk through, I am using a standard cube prefab.
Line 11: Line 13:
 
== Adding required components ==
 
== Adding required components ==
  
Unity & video components
+
=== Unity & video components ===
 
   
 
   
 
• Video Player
 
• Video Player
Line 21: Line 23:
 
• A New Material
 
• A New Material
  
The required Sine components
+
=== The required sinespace components ===
  
 
• Virtual Good
 
• Virtual Good
  
 
• Room Furniture
 
• Room Furniture
 +
 +
'''Note:'''These are not necessary if you are adding the video player to an existing region
  
 
[[File:Embedded Video 1.PNG]]
 
[[File:Embedded Video 1.PNG]]
  
== Configuring the components ==
+
== Tutorial: Building a simple video player ==
  
  
 +
=== Video Player ===
  
== Video Player ==
 
  
 
Select the preferences you desire  
 
Select the preferences you desire  
  
Render mode: Material Override
+
'''Render mode:''' Material Override
  
Material Property: _MainTex
+
'''Material Property:''' _MainTex
  
 
[[File:Embedded Video 3.PNG]]
 
[[File:Embedded Video 3.PNG]]
  
== Audio Source ==
+
 
 +
=== Audio Source ===
 +
 
  
 
Basically, leave as is or configure to your own preferences
 
Basically, leave as is or configure to your own preferences
Line 49: Line 55:
 
[[File:Embedded Video 4.PNG]]
 
[[File:Embedded Video 4.PNG]]
  
== Embedded Video ==
 
  
Auto Play: Select if you desire, otherwise it will play on click
+
=== Embedded Video ===
 +
 
 +
 
 +
'''Auto Play:''' Select if you desire, otherwise it will play on click, but be sure to make the '''Box Collider''' a trigger
  
URL: Enter the URL of the video you wish to play
+
'''URL:''' Enter the URL of the video you wish to play
  
 
[[File:Embedded Video 5.PNG]]
 
[[File:Embedded Video 5.PNG]]
  
== New Material ==
+
 
 +
=== New Material ===
 +
 
  
 
Create a new blank Material and add it to the object
 
Create a new blank Material and add it to the object
Line 63: Line 73:
 
Attach the Material to the Mesh Renderer component
 
Attach the Material to the Mesh Renderer component
  
Attach the Material to the Embedded Material component under Target Material
+
Attach the Material to the Embedded Material component under '''Target Material'''
  
 
[[File:Embedded Video 6.PNG]]
 
[[File:Embedded Video 6.PNG]]
  
== Virtual Good ==
+
 
 +
=== Virtual Good ===
 +
 
  
 
Select the preferences you desire here
 
Select the preferences you desire here
Line 75: Line 87:
 
Complete the rest of the Virtual Good component in preparation for upload
 
Complete the rest of the Virtual Good component in preparation for upload
  
== Furniture ==
+
 
 +
=== Furniture ===
 +
 
  
 
Select the furniture preferences you desire
 
Select the furniture preferences you desire
  
Please note: You can theoretically attach video playback to any object type you wish
 
  
[[File:Embedded_Video_2.PNG]]
+
''' Please note: '''You can theoretically attach video playback to any object type you wish
  
 +
[[File:Embedded_Video_2.PNG]]
  
  
== Finalisation ==
+
=== Finalisation ===
  
You can now upload your Embedded Video object into Sine Space.
+
Convert your object to a Prefab and prepare it for uploaded into sinespace
  
Be sure to test it in the preview environment
+
You can now upload your Embedded Video object, be sure to test it in the preview environment

Latest revision as of 03:38, 22 March 2018

Creating a video player

Sinespace allows for creators to embed Youtube videos onto objects they create in Unity with The Editor Pack.

The Embedded Video (Script) component allows for the creator to embed Youtube and other video content into Unity Materials.

To successfully work with the Embedded Video (Script) component in sinespace you will need to have the following components added to your object

For this walk through, I am using a standard cube prefab.

Adding required components

Unity & video components

• Video Player

• Audio Source

• Embedded Video (Script)

• A New Material

The required sinespace components

• Virtual Good

• Room Furniture

Note:These are not necessary if you are adding the video player to an existing region

Embedded Video 1.PNG

Tutorial: Building a simple video player

Video Player

Select the preferences you desire

Render mode: Material Override

Material Property: _MainTex

Embedded Video 3.PNG


Audio Source

Basically, leave as is or configure to your own preferences

Embedded Video 4.PNG


Embedded Video

Auto Play: Select if you desire, otherwise it will play on click, but be sure to make the Box Collider a trigger

URL: Enter the URL of the video you wish to play

Embedded Video 5.PNG


New Material

Create a new blank Material and add it to the object

Attach the Material to the Mesh Renderer component

Attach the Material to the Embedded Material component under Target Material

Embedded Video 6.PNG


Virtual Good

Select the preferences you desire here

For this example, we’re using the Furniture/TV category

Complete the rest of the Virtual Good component in preparation for upload


Furniture

Select the furniture preferences you desire


Please note: You can theoretically attach video playback to any object type you wish

Embedded Video 2.PNG


Finalisation

Convert your object to a Prefab and prepare it for uploaded into sinespace

You can now upload your Embedded Video object, be sure to test it in the preview environment