Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Hubs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ar-noc
Hubs
Commits
7a675d4b
Commit
7a675d4b
authored
7 years ago
by
netpro2k
Browse files
Options
Downloads
Patches
Plain Diff
Simplify network templates
parent
fd8292db
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+17
-21
17 additions, 21 deletions
public/index.html
with
17 additions
and
21 deletions
public/index.html
+
17
−
21
View file @
7a675d4b
...
...
@@ -9,7 +9,7 @@
</head>
<body>
<a-scene
networked-scene=
"adapter: easyrtc; audio:
tru
e; debug: true;"
>
<a-scene
networked-scene=
"adapter: easyrtc; audio:
fals
e; debug: true;"
>
<a-assets>
<img
id=
"grid"
src=
"assets/grid.png"
crossorigin=
"anonymous"
>
<img
id=
"sky"
src=
"https://cdn.aframe.io/360-image-gallery-boilerplate/img/sechelt.jpg"
crossorigin=
"anonymous"
/>
...
...
@@ -17,55 +17,51 @@
<a-asset-item
id=
"dodec-avatar-head"
src=
"assets/avatars/dodec/DodecAvatarGLTF/DodecAvatar_Head.gltf"
></a-asset-item>
<!-- Templates -->
<script
id=
"player-template"
type=
"text/html"
>
<
a
-
entity
><
/a-entity
>
</script>
<script
id=
"head-template"
type=
"text/html"
>
<
a
-
entity
gltf
-
model
=
"
#dodec-avatar-head
"
position
=
"
0 0 0
"
networked
-
audio
-
source
><
/a-sphere
>
<
a
-
entity
class
=
"
head
"
gltf
-
model
=
"
#dodec-avatar-head
"
position
=
"
0 0 0
"
networked
-
audio
-
source
><
/a-sphere
>
</script>
<script
id=
"hand-template"
type=
"text/html"
>
<
a
-
box
scale
=
"
0.
1
0.1 0.
1
"
><
/a-box
>
<
a
-
box
class
=
"
hand
"
scale
=
"
0.
2
0.1 0.
3
"
><
/a-box
>
</script>
<script
id=
"vive-rig"
type=
"text/html"
>
<
a
-
entity
id
=
"
player
"
networked
=
"
template:#player-template;showLocalTemplate:false;
"
wasd
-
controls
>
<
a
-
entity
camera
=
"
userHeight: 1.6
"
look
-
controls
networked
=
"
template:#head-template;showLocalTemplate:false;
"
><
/a-entity
>
<
a
-
entity
id
=
"
player
-rig
"
networked
wasd
-
controls
>
<
a
-
entity
id
=
"
head
"
camera
=
"
userHeight: 1.6
"
look
-
controls
networked
=
"
template:#head-template;showLocalTemplate:false;
"
><
/a-entity
>
<
a
-
entity
hand
-
controls
=
"
left
"
teleport
-
controls
=
"
cameraRig: #player
"
networked
=
"
template:#hand-template;showLocalTemplate:
tru
e;
"
><
/a-entity
>
<
a
-
entity
hand
-
controls
=
"
right
"
teleport
-
controls
=
"
cameraRig: #player
"
networked
=
"
template:#hand-template;showLocalTemplate:
tru
e;
"
><
/a-entity
>
<
a
-
entity
id
=
"
left-hand
"
vive
-
controls
=
"
hand:
left
"
teleport
-
controls
=
"
cameraRig: #player
-rig
"
networked
=
"
template:#hand-template;showLocalTemplate:
fals
e;
"
><
/a-entity
>
<
a
-
entity
id
=
"
right-hand
"
vive
-
controls
=
"
hand:
right
"
teleport
-
controls
=
"
cameraRig: #player
-rig
"
networked
=
"
template:#hand-template;showLocalTemplate:
fals
e;
"
><
/a-entity
>
<
/a-entity
>
</script>
<script
id=
"oculus-rig"
type=
"text/html"
>
<
a
-
entity
id
=
"
player
"
networked
=
"
template:#player-template;showLocalTemplate:false;
"
wasd
-
controls
>
<
a
-
entity
camera
=
"
userHeight: 1.6
"
look
-
controls
networked
=
"
template:#head-template;showLocalTemplate:false;
"
><
/a-entity
>
<
a
-
entity
id
=
"
player
-rig
"
networked
wasd
-
controls
>
<
a
-
entity
id
=
"
head
"
camera
=
"
userHeight: 1.6
"
look
-
controls
networked
=
"
template:#head-template;showLocalTemplate:false;
"
><
/a-entity
>
<
a
-
entity
oculus
-
touch
-
controls
=
"
left
"
teleport
-
controls
=
"
cameraRig:#player;button:trigger;
"
networked
=
"
template:#hand-template;showLocalTemplate:
tru
e;
"
><
/a-entity
>
<
a
-
entity
oculus
-
touch
-
controls
=
"
right
"
teleport
-
controls
=
"
cameraRig:#player;button:trigger;
"
networked
=
"
template:#hand-template;showLocalTemplate:
tru
e;
"
><
/a-entity
>
<
a
-
entity
oculus
-
touch
-
controls
=
"
left
"
teleport
-
controls
=
"
cameraRig:#player
-rig
;button:trigger;
"
networked
=
"
template:#hand-template;showLocalTemplate:
fals
e;
"
><
/a-entity
>
<
a
-
entity
oculus
-
touch
-
controls
=
"
right
"
teleport
-
controls
=
"
cameraRig:#player
-rig
;button:trigger;
"
networked
=
"
template:#hand-template;showLocalTemplate:
fals
e;
"
><
/a-entity
>
<
/a-entity
>
</script>
<script
id=
"daydream-rig"
type=
"text/html"
>
<
a
-
entity
id
=
"
player
"
networked
=
"
template:#player-template;showLocalTemplate:false;
"
wasd
-
controls
>
<
a
-
entity
camera
=
"
userHeight: 1.6
"
look
-
controls
networked
=
"
template:#head-template;showLocalTemplate:false;
"
><
/a-entity
>
<
a
-
entity
id
=
"
player
-rig
"
networked
wasd
-
controls
>
<
a
-
entity
id
=
"
head
"
camera
=
"
userHeight: 1.6
"
look
-
controls
networked
=
"
template:#head-template;showLocalTemplate:false;
"
><
/a-entity
>
<
a
-
entity
daydream
-
controls
networked
=
"
template:#hand-template;showLocalTemplate:true;
"
><
/a-entity
>
<
/a-entity
>
</script>
<script
id=
"gearvr-rig"
type=
"text/html"
>
<
a
-
entity
id
=
"
player
"
networked
=
"
template:#player-template;showLocalTemplate:false;
"
wasd
-
controls
>
<
a
-
entity
camera
=
"
userHeight: 1.6
"
look
-
controls
networked
=
"
template:#head-template;showLocalTemplate:false;
"
><
/a-entity
>
<
a
-
entity
id
=
"
player
-rig
"
networked
wasd
-
controls
>
<
a
-
entity
id
=
"
head
"
camera
=
"
userHeight: 1.6
"
look
-
controls
networked
=
"
template:#head-template;showLocalTemplate:false;
"
><
/a-entity
>
<
a
-
entity
gearvr
-
controls
networked
=
"
template:#hand-template;showLocalTemplate:true;
"
><
/a-entity
>
<
/a-entity
>
</script>
<script
id=
"dolly-rig"
type=
"text/html"
>
<
a
-
entity
id
=
"
player
"
networked
=
"
template:#player-template;showLocalTemplate:false;
"
wasd
-
controls
>
<
a
-
entity
camera
=
"
userHeight: 1.6
"
look
-
controls
networked
=
"
template:#head-template;showLocalTemplate:false;
"
><
/a-entity
>
<
a
-
entity
id
=
"
player
-rig
"
networked
wasd
-
controls
>
<
a
-
entity
id
=
"
head
"
camera
=
"
userHeight: 1.6
"
look
-
controls
networked
=
"
template:#head-template;showLocalTemplate:false;
"
><
/a-entity
>
<
/a-entity
>
</script>
</a-assets>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment