From 7c1159e9e7f60061d75477e58d6b6b8892104789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Salvador=20de=20la=20Puente=20Gonz=C3=A1lez?= Date: Thu, 19 Oct 2017 16:29:38 +0200 Subject: [PATCH 1/2] Updated for 0.7.1 --- content.md | 160 +++++++++++++++++++++++++---------------------------- 1 file changed, 76 insertions(+), 84 deletions(-) diff --git a/content.md b/content.md index 11e8218..675a3f8 100644 --- a/content.md +++ b/content.md @@ -190,7 +190,7 @@ network have access to your local server ## Start with *Hello, WebVR* > A-Frame provides easy-to-use HTML elements for starters called -[primitives](https://aframe.io/docs/0.5.0/primitives/). In the sections below, +[primitives](https://aframe.io/docs/0.7.0/primitives/). In the sections below, we'll modify basic meshes through HTML attributes (e.g., change colors, positions, rotations, scale) and get a feel for the workflow. @@ -240,14 +240,14 @@ and give it a rotation to see relative rotations ## Start with *Hello, WebVR* — Add Primitives -> Add primitives the scene by adding HTML elements under ``. [Read -> about primitives](https://aframe.io/docs/0.5.0/primitives/). +> Add primitives to the scene by adding HTML elements under ``. [Read +> about primitives](https://aframe.io/docs/0.7.0/primitives/). Remix Lesson on Glitch -1. Add [``](https://aframe.io/docs/0.5.0/primitives/a-torus-knot.html) to the left -2. Add [``](https://aframe.io/docs/0.5.0/primitives/a-dodecahedron.html) to the right -3. Add [``](https://aframe.io/docs/0.5.0/primitives/a-text.html) aligned in the center +1. Add [``](https://aframe.io/docs/0.7.0/primitives/a-torus-knot.html) to the left +2. Add [``](https://aframe.io/docs/0.7.0/primitives/a-dodecahedron.html) to the right +3. Add [``](https://aframe.io/docs/0.7.0/primitives/a-text.html) aligned in the center @@ -259,7 +259,7 @@ and give it a rotation to see relative rotations > We'll be adding image textures to meshes to more appearance than a flat color. > [Find your own images -> online](https://aframe.io/docs/0.5.0/introduction/faq.html#where-can-i-find-assets), +> online](https://aframe.io/docs/0.7.0/introduction/faq.html#where-can-i-find-assets), > and upload them through the assets section in Glitch or through the uploader on > [cdn.aframe.io](https://cdn.aframe.io). Wherever else you may upload, make sure > it's being served with @@ -276,7 +276,7 @@ assets section (pictured above). ## Add Textures — Image Textures > Fill in the `src` HTML attributes with image URLs. [Read about applying an -> image texture](https://aframe.io/docs/0.5.0/guides/building-a-basic-scene.html#applying-an-image-texture). +> image texture](https://aframe.io/docs/0.7.0/guides/building-a-basic-scene.html#applying-an-image-texture). Remix Lesson on Glitch @@ -347,14 +347,14 @@ assets section (pictured above). Remix Lesson on Glitch -[geometry]: https://aframe.io/docs/0.5.0/components/geometry.html -[material]: https://aframe.io/docs/0.5.0/components/material.html +[geometry]: https://aframe.io/docs/0.7.0/components/geometry.html +[material]: https://aframe.io/docs/0.7.0/components/material.html 1. Convert `` to `` with [geometry component][geometry] and [material component][material]. Configure the geometry component to be `primitive: box` 2. Convert `` to `` with geometry component and material component. Configure the geometry component to be `primitive: sphere` 3. Convert `` to `` with geometry component and material component. Configure the geometry component to be `primitive: cylinder` 4. Convert `` to `` with geometry component and material component. Configure the geometry component to be `primitive: plane` -5. Convert `` to `` with geometry component and material component. Configure the geometry component to be `primitive: sphere` with a large `radius: 3000`, and configure the material component to be `shader: flat` so we don't do expensive lighting calculations when we just need a flat color +5. Convert `` to `` with geometry component and material component. Configure the geometry component to be `primitive: sphere` with a large `radius: 3000`, and configure the material component to be `side: back` so we see the interior of the sphere only, and `shader: flat` for not doing expensive lighting calculations when we just need a flat color View Result @@ -366,18 +366,34 @@ assets section (pictured above). > light source. Mix together the geometry, material, and light components to > compose this type of object. -1. Look for `` -2. Attach the [geometry component](https://aframe.io/docs/0.5.0/components/geometry.html) configured to use `primitive: sphere` to the entity -3. Attach the [material component](https://aframe.io/docs/0.5.0/components/material.html) configured to use `color: #FFF` and `shader: flat` to the entity -4. Attach the [light component](https://aframe.io/docs/0.5.0/components/light.html) configured to use `type: point` to the entity -5. **Extra Credit:** Add the animation component from [the Registry](https://aframe.io/registry/) via a `