예제 #1
0
        public override void Init()
        {
            base.Init();

            carpet = new Particles.Carpet();

            MakeCamera();
            MakeLights();


            //make carpet mesh
            var loader = new THREE.TextureLoader();

            loader.load(@"./bridge.gif", this.MakeCarpetMesh);


            CreateRenderer();
            CreateTrackball();

            foreach (Particles.ObjectConstrain o in carpet.objectconstraines.Items)
            {
                scene.add(o.Mesh);
            }
            camera.lookAt(scene.position);
        }
예제 #2
0
        public override void Init()
        {
            base.Init();

               carpet = new Particles.Carpet();

               MakeCamera();
               MakeLights();

               //make carpet mesh
               var loader = new THREE.TextureLoader();
               loader.load(@"./bridge.gif", this.MakeCarpetMesh);

               CreateRenderer();
               CreateTrackball();

               foreach (Particles.ObjectConstrain o in carpet.objectconstraines.Items)
               {
                   scene.add(o.Mesh);
               }
               camera.lookAt(scene.position);
        }