X-Git-Url: https://git-public.kairo.at/?a=blobdiff_plain;f=tsmeetup201909%2Findex.html;fp=tsmeetup201909%2Findex.html;h=f0b818ef0a8f172da90d96f6907accc32c6b241d;hb=8ecb4b534e7489ee4f1859345febd04a25820408;hp=0000000000000000000000000000000000000000;hpb=ba3f2dfa550241898eb4af281114ee8fc8042e52;p=slides.git diff --git a/tsmeetup201909/index.html b/tsmeetup201909/index.html new file mode 100755 index 0000000..f0b818e --- /dev/null +++ b/tsmeetup201909/index.html @@ -0,0 +1,242 @@ + + + + + + VR Space: Creating A Solar System With WebXR + + + + + + + + + + +
+

Contents

+

VR Space: Creating A Solar System With WebXR

+ +
+

The following slides are available in this presentation:

+
+
    +
+
+ +
+

VR Space: Creating A Solar System With WebXR

+

A Step-By-Step Tutorial Of A-Frame

+ +
+Robert Kaiser +
+ +
+

Slides: + https://slides.kairo.at/tsmeetup201909/

+
+
    +
  • Created for a presentation at Mozilla + Tech Speakers Meetup 2019 in Amsterdam, The Netherlands.
  • +
  • Written in HTML 5 with CSS 3 and JavaScript.
  • +
  • Navigation via links on all slides, via access keys + (e.g. "n"/Alt+Shift+N for "next") or back/forward arrow keys
  • +
  • Contents
  • +
  • Lizenziert unter CC-BY-SA, + 09/2019 Robert Kaiser - + "Mozilla", "Firefox" and their logos are + trademarks + of Mozilla Foundation.
  • +
+
+
+
+ +
+

Robert Kaiser - KaiRo

+ +
+Robert Kaiser + +

+
+
+ +
+

WebVR & WebXR

+ +
+VR headset user + +

+
+
+ +
+

A-Frame + The Sun

+ +
+Preview: The Sun +
+<a-scene>
+  <a-sphere id="sun" position="0 0 0" radius="1" color="#FFFF00"></a-sphere>
+
+  <a-entity id="cameraRig" position="0 -1 2" movement-controls="speed: .1; fly: true; camera: #head;">
+    <a-entity id="head" camera="active: true" look-controls position="0 1.6 0"></a-entity>
+    <a-entity id="left-hand" link-controls="hand: left "…></a-entity>
+    <a-entity id="right-hand" link-controls="hand: right "…></a-entity>
+  <a-entity>
+</a-scene>
+
+

edit/view +- A-Frame documentation at aframe.io +

+
+
+ +
+

Adding a Planet

+ +
+Preview: A planet +
+<a-scene>
+  …
+  <a-entity position="0 0 0" rotation="0 -120 0"
+            animation="property: rotation; to: 0 240 0; loop: true; dur: 600000; easing: linear;">
+    <a-sphere id="redplanet" position="0 0 6" radius=".3" color="#FF8080"></a-sphere>
+  </a-entity>
+  …
+</a-scene>
+
+

edit/view +

+
+
+ +
+

Let There Be Light!

+ +
+Preview: Better Lights +
+<a-scene>
+  <a-entity light="type: ambient; color: #BBB; intensity: .1;"></a-entity>
+  <a-sphere id="sun" position="0 0 0" radius="1" color="#FFFF00"
+            material="emissive: #FFFF00;" light="type: point; intensity: 1; distance: 50; decay: 2"></a-sphere>
+  …
+</a-scene>
+
+

edit/view +

+
+
+ +
+

Realistic Planets

+ +
+Preview: Realistic Planets +
+<a-scene>
+  <a-assets>
+    <a-asset-item id="saturnmodel" response-type="arraybuffer" src="Saturn_1_120536.glb"></a-asset-item>
+  </a-assets>
+  …
+  <a-entity …>
+    <a-sphere id="earth" src="earth_equirect.jpg" …></a-sphere>
+  </a-entity>
+  <a-entity …>
+    <a-sphere id="saturn" gltf-model="#saturnmodel" scale="0.003 0.003 0.003" …></a-sphere>
+  </a-entity>
+  …
+</a-scene>
+
+

edit/view +

+
+
+ +
+

Space Ship

+ +
+Preview: Space ship +"All I ask is a tall ship, and a star to steer by." +
- James T. Kirk, citing John Masefield +
+<a-scene>
+  …
+  <a-entity …>
+    <a-entity id="ship" …>
+      <a-cylinder position="0 0 0" radius=".4" height="0.04" color="#CCC0DD"></a-cylinder>
+      <a-cylinder rotation="90 0 0" position="0.2 0.05 .9" radius=".03" height=".8" color="#CCC0DD"></a-cylinder>
+      <a-cylinder rotation="90 0 0" position="-0.2 0.05 .9" radius=".03" height=".8" color="#CCC0DD"></a-cylinder>
+      …
+    </a-entity>
+  </a-entity>
+  …
+</a-scene>
+
+

edit/view +

+
+
+ +
+ +
+

Questions?

+

glitch.com/~vrspace-1-sun

+

glitch.com/~vrspace-5-ship

+

xr.kairo.at/space

+

github.com/KaiRo-at/xr/tree/master/space

+VR Space in 2D +
+
+ + +