-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #395 from 3DStreet/creator-usability-epic-v1
Creator usability epic v1
- Loading branch information
Showing
15 changed files
with
817 additions
and
536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule assets
updated
22 files
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<html> | ||
<head> | ||
<!-- aframe --> | ||
<script src="https://aframe.io/releases/1.4.2/aframe.min.js"></script> | ||
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script> | ||
|
||
<!-- 3dstreet --> | ||
<script src="./dist/aframe-street-component.js"></script> | ||
|
@@ -14,7 +14,7 @@ | |
<script src="./src/json-utils.js"></script> | ||
|
||
<!-- ocean --> | ||
<script src="./src/components/ocean-plane.js"></script> | ||
<script src="./src/components/ocean.js"></script> | ||
|
||
<!-- vr teleport controls --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/aframe-blink-controls.min.js"></script> | ||
|
@@ -74,19 +74,16 @@ | |
<li onclick="inputStreetmix()"> <a class="load" href="#"> <span> Load Streetmix URL </span> <img src="ui_assets/streetmix-logo.svg"> </a></li> | ||
<!-- <li onclick="inputJSON()"> <a class="load" href="#"> <span> Load JSON String </span> <img src="assets/ui_assets/upload-icon.svg"> </a></li> --> | ||
<li><a class="load"> <label for="inputfile" style="display: inherit; align-items: center; cursor: pointer"> <input type="file" id="inputfile" style="display:none" accept=".js, .json, .txt"> <span> Load JSON File </span> <img src="ui_assets/upload-icon.svg"></label></a></li> | ||
<li> <a id="custom-enter-vr-button" class="vr" href="#"> <span class="vr">Enter VR mode</span> <img src="ui_assets/vr.svg"> </a></li> | ||
<li> <a id="custom-enter-ar-button" class="ar" href="#"> <span class="ar">Enter AR mode</span> <img src="ui_assets/ar.svg"> </a></li> | ||
</ul> | ||
</div> | ||
|
||
<a-scene | ||
vr-mode-ui="enterVRButton: #custom-enter-vr-button; enterARButton: #custom-enter-ar-button;" | ||
vr-mode-ui-if-headset | ||
renderer="colorManagement: true; physicallyCorrectLights: true;" | ||
inspector="url: //3dstreet.app/dist/3dstreet-editor.js" | ||
notify | ||
metadata | ||
scene-title | ||
reflection | ||
> | ||
<a-assets> | ||
<!-- uncomment the line below to load assets from local github submodule --> | ||
|
@@ -97,21 +94,21 @@ | |
<street-assets categories="loud-bicycle sidewalk-props people vehicles vehicles-rigged buildings segment-textures segment-colors lane-separator stencils vehicles-transit dividers sky grounds"></street-assets> | ||
</a-assets> | ||
|
||
<a-entity id="street-container" data-layer-name="3D Street Layers" data-layer-show-children> | ||
<a-entity id="default-street" street streetmix-loader set-loader-from-hash></a-entity> | ||
</a-entity> | ||
|
||
<a-entity id="reference-layers" data-layer-name="Reference Layers" data-layer-show-children></a-entity> | ||
|
||
<a-entity id="environment" data-layer-name="Environment" street-environment="preset: day;"></a-entity> | ||
|
||
<a-entity id="cameraRig" position="0 10 30" data-layer-name="Viewer" cursor-teleport="cameraRig: #cameraRig; cameraHead: #camera;" look-controls="reverseMouseDrag: true" wasd-controls="enabled: true"> | ||
<a-entity id="camera" camera="far: 1000" position="0 1.6 0" ></a-entity> | ||
<a-entity id="leftHand" hand-controls="hand: left;" blink-controls="cameraRig: #cameraRig; teleportOrigin: #camera; rotateOnTeleport:false;"></a-entity> | ||
<a-entity id="rightHand" hand-controls="hand: right" blink-controls="cameraRig: #cameraRig; teleportOrigin: #camera; rotateOnTeleport:false;"></a-entity> | ||
<a-entity id="screenshot" class="no-pause" screentock visible="false"></a-entity> | ||
</a-entity> | ||
|
||
<a-entity id="environment" data-layer-name="Environment" street-environment="preset: day;"></a-entity> | ||
|
||
<a-entity id="street-container" data-layer-name="3D Street Layers" data-layer-show-children> | ||
<a-entity id="default-street" street streetmix-loader set-loader-from-hash></a-entity> | ||
</a-entity> | ||
|
||
<a-entity id="reference-layers" data-layer-name="Reference Layers" data-layer-show-children> | ||
|
||
</a-scene> | ||
</body> | ||
<script> | ||
|
@@ -131,16 +128,6 @@ | |
document.getElementById('inputfile') | ||
.addEventListener('change', fileJSON); | ||
|
||
// only show VR button if headset connected | ||
AFRAME.registerComponent('vr-mode-ui-if-headset', { | ||
dependencies: ['vr-mode-ui'], | ||
init: function () { | ||
if (!AFRAME.utils.device.checkHeadsetConnected()) { | ||
this.el.setAttribute('vr-mode-ui', 'enabled', false); | ||
} | ||
} | ||
}) | ||
|
||
function buttonScreenshotTock() { | ||
const screenshotEl = document.getElementById('screenshot'); | ||
screenshotEl.play(); // double check playing in case we're in editor mode | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.