Skip to content

Commit

Permalink
Merge branch 'main' into Party-Time
Browse files Browse the repository at this point in the history
  • Loading branch information
nearnshaw authored Sep 25, 2023
2 parents 81b2412 + 804ce1f commit da249b7
Show file tree
Hide file tree
Showing 32 changed files with 1,611 additions and 1 deletion.
36 changes: 36 additions & 0 deletions Show-Manager-Example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Show Management

<img src="screenshot/screenshot.png" width="500">

## Description

This scene demonstrates how to synchronize actions in the scene to specific moments in a video by implementing the [Show Management Library](https://github.com/Vegas-City/show-manager#readme).

This scene shows you:

- How to schedule playing a video streamed on-demand to play at a certain time
- How to sync actions in the scene to moments in the video

## Try it out

**Update SDK version**

To update the SDK version of the scene, run the following command:

```bash
npm i @dcl/sdk@latest
```

**Previewing the scene**

Open this folder on the command line, then run:

```
npm run start
```

Any dependencies are installed and then the CLI opens the scene in a new browser tab.

## Copyright info

This scene is protected with a standard Apache 2 licence. See the terms and conditions in the [LICENSE](/LICENSE) file.
253 changes: 253 additions & 0 deletions Show-Manager-Example/assets/scene/main.composite
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
{
"version": 1,
"components": [
{
"name": "core::Transform",
"jsonSchema": {
"type": "object",
"properties": {
"position": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
}
}
},
"scale": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
}
}
},
"rotation": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
},
"w": {
"type": "number"
}
}
},
"parent": {
"type": "integer"
}
},
"serializationType": "transform"
},
"data": {
"512": {
"json": {
"position": {
"x": 8,
"y": 1,
"z": 8
},
"scale": {
"x": 1,
"y": 1,
"z": 1
},
"rotation": {
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"parent": 0
}
}
}
},
{
"name": "core::MeshRenderer",
"jsonSchema": {
"type": "object",
"properties": {},
"serializationType": "protocol-buffer",
"protocolBuffer": "PBMeshRenderer"
},
"data": {
"512": {
"json": {
"mesh": {
"$case": "box",
"box": {
"uvs": []
}
}
}
}
}
},
{
"name": "core-schema::Name",
"jsonSchema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"serializationType": "utf8-string"
}
},
"serializationType": "map"
},
"data": {
"512": {
"json": {
"value": "Magic Cube"
}
}
}
},
{
"name": "inspector::Scene",
"jsonSchema": {
"type": "object",
"properties": {
"layout": {
"type": "object",
"properties": {
"base": {
"type": "object",
"properties": {
"x": {
"type": "integer",
"serializationType": "int32"
},
"y": {
"type": "integer",
"serializationType": "int32"
}
},
"serializationType": "map"
},
"parcels": {
"type": "array",
"items": {
"type": "object",
"properties": {
"x": {
"type": "integer",
"serializationType": "int32"
},
"y": {
"type": "integer",
"serializationType": "int32"
}
},
"serializationType": "map"
},
"serializationType": "array"
}
},
"serializationType": "map"
}
},
"serializationType": "map"
},
"data": {
"0": {
"json": {
"layout": {
"base": {
"x": 0,
"y": 0
},
"parcels": [
{
"x": 0,
"y": 0
}
]
}
}
}
}
},
{
"name": "inspector::Nodes",
"jsonSchema": {
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"type": "object",
"properties": {
"entity": {
"type": "integer",
"serializationType": "entity"
},
"children": {
"type": "array",
"items": {
"type": "integer",
"serializationType": "entity"
},
"serializationType": "array"
}
},
"serializationType": "map"
},
"serializationType": "array"
}
},
"serializationType": "map"
},
"data": {
"0": {
"json": {
"value": [
{
"entity": 0,
"children": [
512
]
},
{
"entity": 512,
"children": []
}
]
}
}
}
},
{
"name": "cube-id",
"jsonSchema": {
"type": "object",
"properties": {},
"serializationType": "map"
},
"data": {
"512": {
"json": {}
}
}
}
]
}
Binary file added Show-Manager-Example/images/controlUI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Show-Manager-Example/images/scene-thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Show-Manager-Example/models/djTable.glb
Binary file not shown.
Binary file added Show-Manager-Example/models/dotLight.glb
Binary file not shown.
Binary file added Show-Manager-Example/models/parLight.glb
Binary file not shown.
Binary file added Show-Manager-Example/models/speakers.glb
Binary file not shown.
Binary file added Show-Manager-Example/models/staticStructure.glb
Binary file not shown.
Binary file added Show-Manager-Example/models/whiteRabbit_Anim.glb
Binary file not shown.
32 changes: 32 additions & 0 deletions Show-Manager-Example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "show-management",
"description": "SDK7 Template scene",
"version": "1.0.0",
"dependencies": {
"@dcl-sdk/utils": "next",
"dcl-ui-toolkit": "next",
"show-manager": "latest"
},
"devDependencies": {
"@dcl/js-runtime": "next",
"@dcl/sdk": "next",
"@types/node": "next"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=6.0.0"
},
"prettier": {
"semi": false,
"singleQuote": true,
"printWidth": 120,
"trailingComma": "none"
},
"scripts": {
"build": "sdk-commands build",
"deploy": "sdk-commands deploy",
"start": "sdk-commands start",
"upgrade-sdk": "npm install --save-dev @dcl/sdk@latest",
"upgrade-sdk:next": "npm install --save-dev @dcl/sdk@next"
}
}
58 changes: 58 additions & 0 deletions Show-Manager-Example/scene.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"ecs7": true,
"runtimeVersion": "7",
"display": {
"title": "Show-Manager-Example",
"description": "Stage Tutorial",
"navmapThumbnail": "images/scene-thumbnail.jpg",
"favicon": "favicon_asset"
},
"owner": "Vegas City",
"contact": {
"name": "Vegas City",
"email": "[email protected]"
},
"main": "bin/index.js",
"tags": [],
"scene": {
"parcels": [
"79,1"
],
"base": "79,1"
},
"spawnPoints": [
{
"name": "spawn1",
"default": true,
"position": {
"x": [
6,
10
],
"y": [
1,
1
],
"z": [
6,
10
]
},
"cameraTarget": {
"x": 0,
"y": 0,
"z": 0
}
}
],
"requiredPermissions": [
"ALLOW_TO_TRIGGER_AVATAR_EMOTE",
"ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",
"ALLOW_MEDIA_HOSTNAMES"
],
"allowedMediaHostnames": [
"player.vimeo.com"
],
"featureToggles": {},
"name": "Show-Manager-Example"
}
Loading

0 comments on commit da249b7

Please sign in to comment.