Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to matrix4 #79

Open
wants to merge 51 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
7f365af
Fix typo maters -> meters
vincentfretin Sep 30, 2017
22c8d13
rotate the geometry instead of mesh so we have a valid intersect face…
vincentfretin Oct 1, 2017
db6a77e
add environmentDressing class to dressing mesh
vincentfretin Oct 1, 2017
0b1cf25
Merge pull request #20 from vincentfretin/patch-1
feiss Oct 1, 2017
7c9446a
Merge pull request #21 from vincentfretin/teleport-on-generated-ground
feiss Oct 4, 2017
5a4757e
updated dist
feiss Oct 4, 2017
f2bb891
Revert "rotate the geometry instead of mesh to work with teleport com…
feiss Oct 7, 2017
4acdd19
Merge pull request #23 from feiss/revert-21-teleport-on-generated-ground
feiss Oct 7, 2017
04298d7
updated dist
feiss Oct 7, 2017
ef2adf3
add environmentDressing class to dressing entity
vincentfretin Oct 11, 2017
33e7980
Merge pull request #25 from vincentfretin/patch-2
feiss Oct 11, 2017
34837b7
close the top of mushrooms, trees, apparatus by using 0.000001 as the…
vincentfretin Nov 11, 2017
82be3dd
Merge pull request #29 from vincentfretin/close-mushroom-top
feiss Nov 13, 2017
237e667
Update groundMaterial shading
PButcher Nov 26, 2017
ba4a896
Update groundMaterial shading (backwards compatible)
PButcher Nov 28, 2017
c677c5e
Comment typo
PButcher Nov 28, 2017
9066f24
updated dist files, added "environment-entity" class to entities
feiss Mar 22, 2018
b21296f
bumped to aframe 0.8. Adjusted playArea value ranges. Stick very low …
feiss Mar 22, 2018
f4343cb
readme fix
feiss Mar 22, 2018
ae3d8cd
Merge pull request #31 from PButcher/patch-1
feiss Mar 22, 2018
38f1970
using aframe 0.7 insted of 0.8. It breaks sky shader
feiss Mar 22, 2018
606410b
force lighting param update
feiss Mar 22, 2018
fe9f963
classnames changed to "environment"
feiss Mar 23, 2018
34e308c
sunPosition is not part of the environment schema
rdub80 May 15, 2018
9c2d191
Merge pull request #47 from rdub80/master
feiss May 15, 2018
171ad2c
1.1.0
feiss Jul 16, 2018
7528e44
added instructions to export dressing geometries
feiss Aug 22, 2018
18796c8
Update README.md
ngokevin Feb 7, 2019
4054f00
Update README.md
ngokevin Feb 7, 2019
1b16f70
v1.1.0 allow preset overrides
ngokevin May 11, 2019
d5490e1
Fix broken link in README.md
rotoglup Feb 26, 2020
ab1338a
Replace .addAttribute with .setAttribute
EricEisaman Jun 29, 2020
ec6f994
Merge pull request #67 from EricEisaman/sirfizx
dmarcos Jul 30, 2020
521cfc0
Update index.js
mtthwgrvn Nov 5, 2020
ab99293
Replace THREE.Geometry with THREE.BufferGeometry
dmarcos Feb 2, 2021
07ab7df
1.2.0
dmarcos Feb 2, 2021
969eb71
Update README.md
dmarcos Feb 5, 2021
faf6bb3
Fix ground types 'hills' & 'canyon' not using seed
MakingSpiderSense Mar 27, 2021
dcec766
Remove computeFaceNormals call. Now deprecated in THREE
dmarcos Oct 8, 2021
88f7a0e
Merge pull request #70 from MakingSpiderSense/master
dmarcos Oct 8, 2021
a63c2aa
Bump package version
dmarcos Oct 8, 2021
92aa631
Bump dist
dmarcos Oct 8, 2021
d84517f
Merge pull request #69 from mtthwgrvn/patch-1
dmarcos Oct 8, 2021
b82551c
Merge pull request #66 from rotoglup/patch-1
dmarcos Oct 8, 2021
29b4656
Add moon preset to docs
dmarcos Oct 8, 2021
537cac1
Bump dist
dmarcos Oct 8, 2021
07f758d
Bump package version
dmarcos Oct 8, 2021
6fe3c29
Bump version in README.md
alfonso-paella Nov 7, 2021
93fa104
Merge pull request #73 from alfonso-paella/patch-1
dmarcos Feb 14, 2022
7516412
update some calls from applyMatrix to applyMatrix4 that break in A-Fr…
kylebakerio Oct 3, 2022
941b203
update html example from 1.2.0 to 1.3.0
kylebakerio Oct 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A simple way of setting up a whole basic environment for your
Make sure you are using __A-Frame 0.6.0__ or later. Then just include `aframe-environment-component.js` in your HTML:

```html
<script src="https://rawgit.com/feiss/aframe-environment-component/master/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/aframe-environment-component@1.3.1/dist/aframe-environment-component.min.js"></script>
```

and add the `environment` component to an entity:
Expand All @@ -29,15 +29,15 @@ The previous code will setup a default scene, but you have a bunch of already pr
<a-entity environment="preset: <name of the preset>"></a-entity>
```

You can view and try all the presets in the **[aframe-environment-component Test Page](http://feiss.github.io/aframe-environment-component/)**. The current list of presets are listed in the next section.
You can view and try all the presets in the **[aframe-environment-component Test Page](http://supermedium.github.io/aframe-environment-component/)**. The current list of presets are listed in the next section.


## Parameters

Apart from using a preset, you can tweak the environment with many parameters, like this:

```html
<a-entity environment="sunPosition: 1 5 -2; groundColor: #445"></a-entity>
<a-entity environment="lightPosition: 1 5 -2; groundColor: #445"></a-entity>
```

You can also select a preset but change some of its parameters:
Expand All @@ -51,7 +51,7 @@ This is the list of the available parameters.
| Parameter | Default | Description |
|-------------|---------|-------------|
| **active** | true | Show/hides the component. Use this instead of using the `visible` attribute |
| **preset** | 'default' | Valid values: `none`, `default`, `contact`, `egypt`, `checkerboard`, `forest`, `goaland`, `yavapai`, `goldmine`, `threetowers`, `poison`, `arches`, `tron`, `japan`, `dream`, `volcano`, `starry`, `osiris` |
| **preset** | 'default' | Valid values: `none`, `default`, `contact`, `egypt`, `checkerboard`, `forest`, `goaland`, `yavapai`, `goldmine`, `threetowers`, `poison`, `arches`, `tron`, `japan`, `dream`, `volcano`, `starry`, `osiris`, `moon` |
| **seed** | 1 | Seed for randomization. If you don't like the layout of the elements, try another value for the seed. |
| **skyType** | 'atmosphere' | Valid values: `color`, `gradient`, `atmosphere` |
| **skyColor** | | When `skyType` is `color` or `gradient`, it sets the main sky color |
Expand All @@ -62,7 +62,7 @@ This is the list of the available parameters.
| **lightPosition** | 0 1 -0.2 | Position of the main light. If `skyType` is `atmospheric`, only the orientation matters (is a directional light) and it can turn the scene into night when lowered towards the horizon. |
| **fog** | 0 | Amount of fog (0 = none, 1 = full fog). The color is estimated automatically. |
| **flatShading** | false | Whether to show everything smoothed (false) or polygonal (true). |
| **playArea** | 1 | Radius (in maters) of the area in the center reserved for the player and the gameplay. The ground is flat in there and no objects are placed inside.|
| **playArea** | 1 | Radius of the area in the center reserved for the player and the gameplay. The ground is flat in there and no objects are placed inside.|
| **ground** | 'hills' | Valid values: `none`, `flat`, `hills`, `canyon`, `spikes`, `noise`. Orography style. |
| **groundYScale** | 3 | Maximum height (in meters) of ground's features (hills, mountains, peaks..) |
| **groundTexture**| 'none' | Valid values: `none`, `checkerboard`, `squares`, `walkernoise`|
Expand All @@ -88,4 +88,4 @@ Apart from the parameter `dressingAmount`, there is not much difference among di

## Help and contact

PRs are appreciated, issues are welcomed. For any question, ping @feiss at [aframevr in Slack](https://aframevr-slack.herokuapp.com/) or Twitter.
PRs are appreciated, issues are welcomed. For any question, ping @feiss at [aframevr in Slack](https://aframe.io/slack-invite) or [Discord](https://supermedium.com/discord).
Binary file added assets/how_to_add_new_dressing_geometry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
341 changes: 175 additions & 166 deletions dist/aframe-environment-component.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/aframe-environment-component.min.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>A-Frame Environment Component</title>
<meta name="description" content="A-Frame Environment Component">
<meta name="author" content="Diego F. Goberna">
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/aframevr/aframe@090b5f8f0abe949ddcfdbbc14c75822322a2dd53/dist/aframe-master.min.js"></script>
<script src="dist/aframe-environment-component.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Voces" rel="stylesheet">

Expand Down Expand Up @@ -148,8 +148,6 @@ <h1>

<a-entity environment="preset: forest" preset-switcher id="environment"></a-entity>

<a-sphere radius="0.3" position="0 1.7 -2" shadow></a-sphere>

</a-scene>


Expand Down
Loading