Skip to content

Commit

Permalink
build: Update Aframe to 1.6.0, add explicit versions to dependencies
Browse files Browse the repository at this point in the history
Explicitly keep the versions of dependencies that are currently used (no-op).
I haven't seen any side effects from updating Aframe to 1.6.0.
Just had to add the raycaster objects attribute (used by laser-controls) to avoid the following warning:
`components:raycaster:warn [raycaster] For performance, please define raycaster.objects when using raycaster or cursor components to whitelist which entities to intersect with. e.g., raycaster="objects: [data-raycastable]".`
  • Loading branch information
ctrlw committed Oct 29, 2024
1 parent 51b7dcd commit a90f6e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<meta charset="utf-8">
<title>osm4vr demo - Fly through the world in VR with OSM map data</title>
<meta name="description" content="osm4vr: Fly through the world in Virtual Reality, with map and buildings from OpenStreetmap">
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-extras/dist/aframe-extras.controls.min.js"></script>
<script src="https://unpkg.com/osmtogeojson/osmtogeojson.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three/examples/js/utils/BufferGeometryUtils.min.js"></script>
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-extras@7.5.1/dist/aframe-extras.controls.min.js"></script>
<script src="https://unpkg.com/osmtogeojson@3.0.0-beta.5/osmtogeojson.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.147.0/examples/js/utils/BufferGeometryUtils.min.js"></script>
<script src="osm-geojson.js"></script>
<script src="osm-tiles.js"></script>
<!-- <script src="log2hud.js"></script> -->
Expand Down Expand Up @@ -79,8 +79,8 @@ <h1>osm4vr</h1>
</a-entity>

<!-- The actual left and right hand controllers -->
<a-entity id="leftHand" laser-controls="hand: left" wing log2hud="target: lhud"></a-entity>
<a-entity id="rightHand" laser-controls="hand: right" wing log2hud="target: rhud"></a-entity>
<a-entity id="leftHand" laser-controls="hand: left" wing log2hud="target: lhud" raycaster="objects: .collidable;"></a-entity>
<a-entity id="rightHand" laser-controls="hand: right" wing log2hud="target: rhud" raycaster="objects: .collidable;"></a-entity>
</a-entity>

<a-entity osm-tiles="lat: 52.52; lon: 13.41; trackId: head" rotation="-90 0 0" shadow="receive: true"></a-entity>
Expand Down

0 comments on commit a90f6e1

Please sign in to comment.