Skip to content

Commit

Permalink
Merge pull request #27 from diarmidmackenzie/deskop-vr-controller-issues
Browse files Browse the repository at this point in the history
Deskop vr controller issues
  • Loading branch information
diarmidmackenzie committed Dec 12, 2023
2 parents 4de9542 + d547e05 commit 21063dd
Show file tree
Hide file tree
Showing 44 changed files with 171 additions and 2,100 deletions.
Binary file removed assets/cell/scene.bin
Binary file not shown.
Binary file added assets/cell/scene.glb
Binary file not shown.
2,072 changes: 0 additions & 2,072 deletions assets/cell/scene.gltf

This file was deleted.

Binary file not shown.
Binary file removed assets/cell/textures/Material.003_diffuse.png
Binary file not shown.
Binary file removed assets/cell/textures/Material.003_emissive.png
Binary file not shown.
Binary file not shown.
Binary file removed assets/cell/textures/Material.004_diffuse.png
Binary file not shown.
Binary file removed assets/cell/textures/Material.004_emissive.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed assets/cell/textures/Material.006_diffuse.png
Binary file not shown.
Binary file removed assets/cell/textures/Material.006_emissive.png
Binary file not shown.
Binary file not shown.
Binary file removed assets/cell/textures/Material.007_diffuse.png
Binary file not shown.
Binary file removed assets/cell/textures/Material.007_emissive.png
Binary file not shown.
Binary file not shown.
Binary file removed assets/cell/textures/Material.008_diffuse.png
Binary file not shown.
Binary file removed assets/cell/textures/Material.008_emissive.png
Binary file not shown.
Binary file not shown.
Binary file removed assets/cell/textures/Material.009_emissive.png
Binary file not shown.
Binary file not shown.
Binary file removed assets/cell/textures/Material.010_diffuse.png
Binary file not shown.
Binary file not shown.
Binary file removed assets/cell/textures/Material.011_diffuse.png
Binary file not shown.
Binary file removed assets/cell/textures/Material.011_emissive.png
Binary file not shown.
Binary file not shown.
Binary file removed assets/cell/textures/Material_diffuse.png
Binary file not shown.
Binary file removed assets/cell/textures/Material_emissive.png
Diff not rendered.
Binary file removed assets/cell/textures/Material_specularGlossiness.png
Diff not rendered.
2 changes: 1 addition & 1 deletion component-usage/low-cost-raycasting.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
response-type="arraybuffer" crossorigin="anonymous">
</a-asset-item>
<a-asset-item id="cell-model"
src="../assets/cell/scene.gltf"
src="../assets/cell/scene.glb"
response-type="arraybuffer" crossorigin="anonymous">
</a-asset-item>
</a-assets>
Expand Down
2 changes: 1 addition & 1 deletion component-usage/mouse-manipulation.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
response-type="arraybuffer" crossorigin="anonymous">
</a-asset-item>
<a-asset-item id="cell-model"
src="../assets/cell/scene.gltf"
src="../assets/cell/scene.glb"
response-type="arraybuffer" crossorigin="anonymous">
</a-asset-item>
</a-assets>
Expand Down
25 changes: 15 additions & 10 deletions component-usage/object-manipulation.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
<script src="../components/low-cost-raycasting.js"></script>
<script src="../components/polygon-wireframe/index.js"></script>
<script src="../components/cursor-tracker/index.js"></script>
Expand Down Expand Up @@ -49,7 +49,7 @@
<a-entity id="rhand"
position="0.4 1.4 -0.5"
laser-controls="hand: right" raycaster="objects: [raycast-target]; far: Infinity; lineColor: red; lineOpacity: 0.5"
laser-manipulation
laser-manipulation="center:contact; debug: true"
thumbstick-states__right="controller:#rhand;
tBindings:moving-in,moving-out,rotating-y-plus,rotating-y-minus;
tgBindings:rotating-x-plus,rotating-x-minus,rotating-y-plus,rotating-y-minus"
Expand All @@ -72,24 +72,29 @@
response-type="arraybuffer" crossorigin="anonymous">
</a-asset-item>
<a-asset-item id="cell-model"
src="../assets/cell/scene.gltf"
src="../assets/cell/scene.glb"
response-type="arraybuffer" crossorigin="anonymous">
</a-asset-item>
</a-assets>

<a-entity id="container"
position="0 1 -2">
<!-- remove use of adjusted-model component as it's not working with A-Frame 1.5.0
for reasons not yet understood. -->
<a-entity id="eiffel" position="-2 0 0"
adjusted-model="gltfModel: #eiffel-model;
dimension: 1">
scale="0.01 0.01 0.01"
gltf-model="#eiffel-model"
raycast-target>
</a-entity>
<a-entity id="trex" position="0 0 0"
adjusted-model="gltfModel: #trex-model;
dimension: 1">
scale="0.01 0.01 0.01"
gltf-model="#trex-model"
raycast-target>
</a-entity>
<a-entity id="cell" position="2 0 0"
adjusted-model="gltfModel: #cell-model;
dimension: 1">
<a-entity id="cell" position="2 0.5 0"
scale="0.15 0.15 0.15"
gltf-model="#cell-model"
raycast-target>
</a-entity>
</a-entity>
</a-scene>
Expand Down
2 changes: 1 addition & 1 deletion components/desktop-vr-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ There's lots of settings that could be usefully configurable, and hopefully will
## Installation

```
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/dist/desktop-vr-controller.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/desktop-vr-controller.min.js"></script>
```

Or via [npm](https://www.npmjs.com/package/aframe-desktop-vr-controller)
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components/desktop-vr-controller/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ AFRAME.registerComponent('desktop-vr-controller', {

// If there is an XR session (real or simulated), do nothing.
const xr = this.el.sceneEl.renderer.xr
const xrSession = xr.getSesssion ? xr.getSession() : null
const xrSession = xr.getSession ? xr.getSession() : null
if (xrSession) {
console.log("desktop-vr-controller suppressed due to presence of an XR session")
return;
Expand Down
2 changes: 1 addition & 1 deletion components/desktop-vr-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aframe-desktop-vr-controller",
"version": "0.1.2",
"version": "0.1.3",
"description": "Simulates a VR controller on the desktop, controllable using mouse & keyboard.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion components/dynamic-snap/test/test2.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
response-type="arraybuffer" crossorigin="anonymous">
</a-asset-item>
<a-asset-item id="cell-model"
src="../../../assets/cell/scene.gltf"
src="../../../assets/cell/scene.glb"
response-type="arraybuffer" crossorigin="anonymous">
</a-asset-item>
</a-assets>
Expand Down
3 changes: 2 additions & 1 deletion components/laser-manipulation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Apart from the ability to customize thumbstick controls described above, there a
| grabEvent | If `grabEvents` is true, the name of the event to generate when an entity is grabbed | mouseGrab |
| releaseEvent | If `grabEvents` is true, the name of the event to generate when an entity is released | mouseRelease |
| controlMethod | Either 'parent' or 'transform'. <br />'parent' mode re-parents the object to become a descendant of the controller. This is a simpler method, and may be more performant and stable. However re-parenting can cause issues if code in other components makes assumptions about objects' positions in the THREE.js scene graph. 'transform' mode leaves the object in the same position in the THREE.js scene graph, and instead adjusts its transform every tick as required. | parent |
| debug | Shows the position & orientation of the contact point. Also shows rotation axes when rotating about X & Y axes. | false |



Expand All @@ -79,7 +80,7 @@ Apart from the ability to customize thumbstick controls described above, there a
Via CDN

```
<script src="https://cdn.jsdelivr.net/npm/aframe-laser-manipulation@0.2.0/dist/laser-manipulation.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/aframe-laser-manipulation@0.3.0/dist/laser-manipulation.min.js"></script>
```

Or via [npm](https://www.npmjs.com/package/aframe-laser-manipulation)
Expand Down
2 changes: 1 addition & 1 deletion components/laser-manipulation/dist/laser-manipulation.js

Large diffs are not rendered by default.

Loading

0 comments on commit 21063dd

Please sign in to comment.