-
Notifications
You must be signed in to change notification settings - Fork 1
Video
Josh Stovall edited this page Dec 3, 2020
·
1 revision
Add a video to the reality.
| Name | Type | Options | Default | Description |
|---|---|---|---|---|
type |
string |
2D 360
|
2D |
type of video |
file |
string |
.mp4 or .webm file | source file | |
scale |
float |
1 |
scale of screen | |
side |
string |
front back both
|
both |
render video on which side |
position |
array |
[x,y,z] position | [0,0,0] |
position of video |
rotation |
array |
[x,y,z] rotation | [0,0,0] |
rotation of video |
2D will create a flat-screen TV
3D will create a Sky() that surrounds the reality
2D video live demo
var options = {
type: '2D',
file: '/assets/video/movie.mp4',
scale: 0.5,
side: 'front'
}
var video = new XR.Video(options);360 video live demo
var options = {
type: '360',
file: '/assets/video/movie.mp4'
}
var video = new XR.Video(options);