Ignore:
Timestamp:
2015-01-22T14:28:16+13:00 (9 years ago)
Author:
bmt11
Message:

Wind Control is now fully implemented and functioning as expected :)

Location:
other-projects/nz-flag-design/trunk/render-3d/weather
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nz-flag-design/trunk/render-3d/weather/rain.js

    r29634 r29694  
    1414   
    1515        // create the particle variables
    16         this.particleCount = 3500,
     16        this.particleCount = 10000,
    1717        this.particles = new THREE.Geometry(),
    1818        this.pMaterial = new THREE.ParticleBasicMaterial({
     
    3232            // create a particle with random
    3333            // position values, -250 -> 250
    34             var pX = (Math.random() * 3000) - 1500,
    35                 pY = Math.random() * window.innerHeight * 3 - window.innerHeight,
    36                 pZ = (Math.random() * 3000) - 1500;
     34            var pX = (Math.random() * 10000) - 5000,
     35                pY = Math.random() * window.innerHeight * 6 - window.innerHeight,
     36                pZ = (Math.random() * 10000) - 5000;
    3737                this.particle = new THREE.Vector3(pX, pY, pZ); 
    3838
     
    7272            // check if we need to reset
    7373            if(this.particle.y < -10) {
    74                 this.particle.y = (window.innerHeight*2)+(Math.random() * 100);
     74                this.particle.y = (window.innerHeight*6)+(Math.random() * 100);
    7575                this.particle.velocity.y = 0;
    76                 this.particle.x = (Math.random() * 4000) - 2000;
    77                 this.particle.z = (Math.random() * 4000) - 2000;
     76                this.particle.x = (Math.random() * 10000) - 5000;
     77                this.particle.z = (Math.random() * 10000) - 5000;
    7878
    7979            }
  • other-projects/nz-flag-design/trunk/render-3d/weather/snow.js

    r29634 r29694  
    1414       
    1515            // create the particle variables
    16             this.particleCount = 3000,
     16            this.particleCount = 6000,
    1717            this.particles = new THREE.Geometry(),
    1818           
     
    3333                // create a particle with random
    3434                // position values
    35                 var pX = (Math.random() * 3000) - 1500,
    36                     pY = Math.random() * window.innerHeight * 3 - window.innerHeight,
    37                     pZ = (Math.random() * 3000) - 1500;
     35                var pX = (Math.random() * 10000) - 5000,
     36                    pY = Math.random() * window.innerHeight * 6 - window.innerHeight,
     37                    pZ = (Math.random() * 10000) - 5000;
    3838                    this.particle = new THREE.Vector3(pX, pY, pZ); 
    3939               
     
    7575                // check if we need to reset
    7676                if(this.particle.y < -10) {
    77                     this.particle.y = (window.innerHeight*2)+(Math.random() * 100);
     77                    this.particle.y = (window.innerHeight*6)+(Math.random() * 100);
    7878                    this.particle.velocity.y = 0;
    79                     this.particle.x = (Math.random() * 4000) - 2000;
    80                     this.particle.z = (Math.random() * 4000) - 2000;
     79                    this.particle.x = (Math.random() * 10000) - 5000;
     80                    this.particle.z = (Math.random() * 10000) - 5000;
    8181
    8282                }
Note: See TracChangeset for help on using the changeset viewer.