GitXplorerGitXplorer
d

Experiment-1-Sine-Waves

public
6 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
8a78a4465f0fcaf00c8a91329b46b204767eae71

Updated camera settings

ddanieldelcore committed 8 years ago
Unverified
c221b78108af4d5ea67cfce89f7add812b37d72f

Updated read me

ddanieldelcore committed 8 years ago
Unverified
b22bd2f5045684bd9a099e9e40438e85135908b5

Hiding dat gui on small screens

committed 8 years ago
Unverified
973cdbea3a3ec530977f2f2e360951cd449b55c8

Fixed issue with dat gui setup

committed 8 years ago
Unverified
4c909d06943ba9ef728eeab77fc7144f50ae40de

Added speed variable

ddanieldelcore committed 8 years ago
Unverified
6799a121c0f01123e7328005e5ca0fd0cfd02212

Updated three js + added dat gui + refactored main js file + cleanup

ddanieldelcore committed 8 years ago

README

The README file for this repository.

Experiment 1

alt tag

Sine Waves in THREE.js

This wave pattern is accomplished by calculating a sine wave from the centre of the PlaneGeometry through to the other vertices. For each vertex, calculate the distance from the centre point. Using that distance apply the sin to get the vertical positions of the vertex. Then use time (ts) to create the wave animation. Additionally, there are two variables size and magnitude that allow us to manipulate the vertical deviation and wave length.

Live demo

Initial setup

  • npm install --global gulp-cli : Install gulp globally
  • npm i Install dependencies

Building for development

  • gulp dev : Build files will be output to the '.tmp' directory.

Building for production

  • gulp build : Build files will be output to the 'deploy' directory.

Pushing a new release

  • gulp build : Compile local changes
  • git add . : Stage changes
  • git commit -m"change description" : comment on your changes
  • git tag -a v1.0.0 -m "Change description" : Add a new tagged release
  • git push --follow-tags : Push staged changes and tags