Skip to content

Commit

Permalink
texture fix, fly mode, new car
Browse files Browse the repository at this point in the history
Fixed missing texture.
Added fly mode.
Added a new car.
  • Loading branch information
tapanij committed Sep 18, 2013
1 parent 3702259 commit 608f2fc
Show file tree
Hide file tree
Showing 124 changed files with 946 additions and 1,352 deletions.
2 changes: 1 addition & 1 deletion Car.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ THREE.Car = function() {
// console.log("plane collision: " + intersects.length);
// console.log(intersects[0]);
// console.log(intersects[0].point);
this.root.position.y = intersects[0].point.y + 0.6;
this.root.position.y = intersects[0].point.y + 1;
}

// displacement
Expand Down
47 changes: 41 additions & 6 deletions ColliderBuildings.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
{
"formatVersion" : 3.1,
"generatedBy" : "Blender 2.66 Exporter",
"vertices" : 96,
"faces" : 72,
"normals" : 24,
"vertices" : 136,
"faces" : 102,
"normals" : 40,
"colors" : 0,
"uvs" : [],
"materials" : 1,
Expand Down Expand Up @@ -93,24 +93,59 @@
"vertexColors" : false
},

{
"DbgColor" : 15658734,
"DbgIndex" : 0,
"DbgName" : "default",
"vertexColors" : false
},

{
"DbgColor" : 15658734,
"DbgIndex" : 0,
"DbgName" : "default",
"vertexColors" : false
},

{
"DbgColor" : 15658734,
"DbgIndex" : 0,
"DbgName" : "default",
"vertexColors" : false
},

{
"DbgColor" : 15658734,
"DbgIndex" : 0,
"DbgName" : "default",
"vertexColors" : false
},

{
"DbgColor" : 15658734,
"DbgIndex" : 0,
"DbgName" : "default",
"vertexColors" : false
},

{
"DbgColor" : 15658734,
"DbgIndex" : 0,
"DbgName" : "default",
"vertexColors" : false
}],

"vertices" : [70.8937,-3.32176,-75.4299,84.8762,-3.32176,-97.2608,120.637,-3.32176,-74.3564,106.654,-3.32176,-52.5255,70.8937,32.8394,-75.4299,84.8762,32.8394,-97.2608,120.637,32.8394,-74.3564,106.654,32.8394,-52.5255,58.1962,-8.31785,-48.6552,72.1787,-8.31785,-70.486,107.939,-8.31785,-47.5816,93.9568,-8.31785,-25.7508,58.1962,27.8433,-48.6552,72.1787,27.8433,-70.486,107.939,27.8433,-47.5816,93.9568,27.8433,-25.7508,34.8708,-8.77982,-46.8693,51.8729,-8.77982,-73.4147,66.4166,-8.77982,-64.0995,49.4145,-8.77982,-37.5541,34.8708,38.1965,-46.8693,51.8729,38.1965,-73.4147,66.4166,38.1965,-64.0995,49.4145,38.1965,-37.5541,92.837,-4.76825,6.72358,138.248,-4.76825,-64.1758,215.757,-4.76825,-14.5317,170.346,-4.76824,56.3676,92.837,36.6935,6.72358,138.248,36.6935,-64.1758,215.757,36.6935,-14.5317,170.346,36.6935,56.3676,-26.0996,-28.0548,186.297,27.7623,-28.0548,102.203,110.041,-28.0548,154.902,56.1793,-28.0548,238.996,-26.0996,17.9576,186.297,27.7623,17.9575,102.203,110.041,17.9576,154.902,56.1793,17.9576,238.996,-205.731,-27.9769,65.7276,-151.87,-27.9769,-18.3667,-69.5907,-27.9769,34.3324,-123.453,-27.9769,118.427,-205.731,18.0354,65.7276,-151.87,18.0354,-18.3667,-69.5907,18.0354,34.3324,-123.453,18.0354,118.427,-96.5005,-27.8684,138.762,-43.0296,-27.8684,55.2785,18.2763,-27.8684,94.5445,-35.1946,-27.8684,178.028,-96.5005,17.8099,138.762,-43.0296,17.8099,55.2785,18.2763,17.8099,94.5445,-35.1946,17.8099,178.028,-114.992,-15.7015,125.646,-92.3223,-15.7015,90.2523,-72.9307,-15.7015,102.673,-95.6003,-15.7015,138.066,-114.992,46.9336,125.646,-92.3223,46.9336,90.2523,-72.9307,46.9336,102.673,-95.6003,46.9336,138.066,-16.7245,-21.9568,-18.4924,57.8626,-23.8062,29.1661,22.8408,-25.1773,83.9231,-51.7462,-23.3279,36.2645,-16.4699,18.8162,-17.3086,58.1171,16.9668,30.3499,23.0954,15.5957,85.1068,-51.4917,17.4451,37.4483,-50.2672,-20.7987,-14.9901,-118.506,-22.5103,-58.413,-93.4877,-21.5351,-97.7683,-25.2485,-19.8235,-54.3453,-51.3508,16.4599,-14.7558,-119.59,14.7483,-58.1787,-94.5713,15.7235,-97.5339,-26.3322,17.4351,-54.111,-64.8712,-23.1749,22.9452,-139.29,-25.0415,-24.4103,-118.981,-24.2498,-56.3582,-44.5615,-22.3833,-9.00276,-66.053,17.4579,23.2008,-140.472,15.5914,-24.1547,-120.162,16.383,-56.1026,-45.7432,18.2496,-8.74719,43.8002,-7.86389,-91.3899,60.7268,-7.86389,-117.817,72.7511,-7.86389,-110.116,55.8244,-7.86389,-83.6885,43.8002,38.9037,-91.3899,60.7268,38.9037,-117.817,72.7511,38.9037,-110.116,55.8244,38.9037,-83.6885],
"vertices" : [71.2728,-3.32176,-76.5328,84.3397,-3.32176,-96.9342,121.582,-3.32176,-73.0806,108.515,-3.32176,-52.6793,71.2728,32.8394,-76.5328,84.3397,32.8394,-96.9342,121.582,32.8394,-73.0806,108.515,32.8394,-52.6793,56.1551,-9.09938,-49.3147,71.4185,-9.09939,-72.4103,109.383,-9.09938,-47.3205,94.1194,-9.09938,-24.2249,56.1551,28.0617,-49.3147,71.4185,28.0617,-72.4103,109.383,28.0617,-47.3206,94.1194,28.0618,-24.2249,35.4301,-8.77982,-48.0769,52.8598,-8.77982,-74.3387,66.3553,-8.77982,-65.382,48.9256,-8.77982,-39.1201,35.4301,38.1965,-48.0769,52.8598,38.1965,-74.3387,66.3553,38.1965,-65.382,48.9256,38.1965,-39.1201,107.701,-4.76825,-16.6676,138.959,-4.76825,-65.4706,214.771,-4.76825,-16.9134,183.513,-4.76824,31.8895,107.701,36.6935,-16.6677,138.959,36.6935,-65.4706,214.771,36.6935,-16.9134,183.513,36.6935,31.8895,-15.5657,-28.0548,172.402,29.649,-28.0548,101.809,105.867,-28.0548,150.626,60.6526,-28.0548,221.219,-15.5657,17.9576,172.402,29.649,17.9575,101.809,105.867,17.9576,150.626,60.6526,17.9576,221.219,-168.183,-27.9769,11.1878,-150.084,-27.9769,-16.1398,-71.2118,-27.9769,36.096,-89.3103,-27.9769,63.4236,-168.183,18.0354,11.1878,-150.084,18.0354,-16.1398,-71.2118,18.0354,36.096,-89.3103,18.0354,63.4236,-98.254,-27.9777,140.337,-63.2353,-27.9777,85.6622,-4.71715,-27.9777,123.143,-39.7358,-27.9777,177.817,-98.254,17.7006,140.337,-63.2353,17.7006,85.6622,-4.71715,17.7006,123.143,-39.7358,17.7006,177.817,-115.637,-15.7015,128.317,-91.1569,-15.7015,90.0957,-73.1113,-15.7015,101.654,-97.5916,-15.7015,139.875,-115.637,46.9336,128.317,-91.1569,46.9336,90.0957,-73.1113,46.9336,101.654,-97.5916,46.9336,139.875,-50.9854,-27.9774,35.76,-15.8797,-27.9774,-17.2472,57.7364,-27.9774,31.5074,22.6307,-27.9774,84.5146,-50.9854,17.7008,35.76,-15.8797,17.7008,-17.2472,57.7364,17.7008,31.5074,22.6307,17.7008,84.5146,-119.961,-27.9773,-59.7529,-95.1344,-27.9773,-98.6264,-23.7133,-27.9773,-53.0129,-48.5401,-27.9773,-14.1394,-119.961,17.701,-59.7529,-95.1344,17.701,-98.6264,-23.7133,17.701,-53.0129,-48.5401,17.701,-14.1394,-118.345,-27.9773,-10.2248,-97.472,-27.9773,-41.7422,-47.6662,-27.9773,-8.75667,-68.5396,-27.9773,22.7607,-118.345,17.701,-10.2248,-97.472,17.701,-41.7422,-47.6662,17.701,-8.75667,-68.5396,17.701,22.7607,44.8266,-7.86389,-90.2352,62.1555,-7.86389,-116.401,72.3272,-7.86389,-109.664,54.9983,-7.86389,-83.4986,44.8266,38.9037,-90.2352,62.1555,38.9037,-116.401,72.3272,38.9037,-109.664,54.9983,38.9037,-83.4986,91.6311,-4.76825,5.62982,105.975,-4.76825,-16.766,186.233,-4.76825,34.6386,171.889,-4.76825,57.0344,91.6311,36.6935,5.62982,105.975,36.6935,-16.766,186.233,36.6935,34.6386,171.889,36.6935,57.0344,-25.572,-28.0548,186.644,-15.8279,-28.0548,171.43,65.3245,-28.0548,223.408,55.5804,-28.0548,238.621,-25.572,17.9576,186.644,-15.8279,17.9576,171.43,65.3245,17.9576,223.408,55.5804,17.9576,238.621,-201.572,-27.9804,69.2594,-165.21,-27.9804,14.3551,-89.6988,-27.9804,64.3651,-126.061,-27.9804,119.269,-201.572,18.0319,69.2594,-165.21,18.0319,14.3551,-89.6988,18.0319,64.3651,-126.061,18.0319,119.269,-63.357,-27.9777,81.3306,-45.5332,-27.9777,53.5024,19.1558,-27.9777,94.9353,1.33206,-27.9777,122.764,-63.357,17.7006,81.3306,-45.5332,17.7006,53.5024,19.1558,17.7006,94.9353,1.33206,17.7006,122.764,-142.029,-27.9773,-30.8384,-121.155,-27.9773,-62.3558,-95.4072,-27.9773,-45.3033,-116.281,-27.9773,-13.7859,-142.029,17.701,-30.8384,-121.155,17.701,-62.3558,-95.4072,17.701,-45.3033,-116.281,17.701,-13.7859],

"morphTargets" : [],

"normals" : [-0.17478,-0.577349,-0.79754,-0.79754,-0.577349,0.17478,-0.79754,0.577349,0.17478,-0.17478,0.577349,-0.79754,0.79754,0.577349,-0.17478,0.79754,-0.577349,-0.17478,0.17478,0.577349,0.79754,0.17478,-0.577349,0.79754,0.793786,-0.576952,-0.192206,-0.178991,-0.552843,-0.813807,-0.171789,0.601306,-0.780297,0.801019,0.577197,-0.158696,0.178991,0.552843,0.813807,0.171789,-0.601306,0.780297,-0.793786,0.576952,0.192206,-0.801019,-0.577197,0.158696,-0.77987,-0.601367,0.173589,0.194098,-0.576922,0.793359,0.160527,0.577227,0.800623,-0.81344,0.552782,0.180853,-0.194098,0.576922,-0.793359,-0.160527,-0.577227,-0.800623,0.77987,0.601367,-0.173589,0.81344,-0.552782,-0.180853],
"normals" : [-0.17478,-0.577349,-0.79754,-0.79754,-0.577349,0.17478,-0.79754,0.577349,0.17478,-0.17478,0.577349,-0.79754,0.79754,0.577349,-0.17478,0.79754,-0.577349,-0.17478,0.17478,0.577349,0.79754,0.17478,-0.577349,0.79754,-0.163335,-0.577349,-0.799982,-0.799982,-0.577349,0.163335,-0.799982,0.577349,0.163335,-0.163335,0.577349,-0.799982,0.799982,0.577349,-0.163335,0.799982,-0.577349,-0.163335,0.163335,0.577349,0.799982,0.163335,-0.577349,0.799982,-0.161779,-0.577349,-0.800287,-0.800287,-0.577349,0.161779,-0.800287,0.577349,0.161779,-0.161779,0.577349,-0.800287,0.800287,0.577349,-0.161779,0.800287,-0.577349,-0.161779,0.161779,0.577349,0.800287,0.161779,-0.577349,0.800287,-0.162542,-0.577349,-0.800134,-0.800134,-0.577349,0.162542,-0.800134,0.577349,0.162542,-0.162542,0.577349,-0.800134,0.800134,0.577349,-0.162542,0.800134,-0.577349,-0.162542,0.162542,0.577349,0.800134,0.162542,-0.577349,0.800134,-0.175817,-0.577349,-0.797327,-0.797327,-0.577349,0.175817,-0.797327,0.577349,0.175817,-0.175817,0.577349,-0.797327,0.797327,0.577349,-0.175817,0.797327,-0.577349,-0.175817,0.175817,0.577349,0.797327,0.175817,-0.577349,0.797327],

"colors" : [],

"uvs" : [],

"faces" : [35,1,0,4,5,0,0,1,2,3,35,5,6,2,1,0,3,4,5,0,35,6,7,3,2,0,4,6,7,5,35,0,3,7,4,0,1,7,6,2,35,0,1,2,3,0,1,0,5,7,35,7,6,5,4,0,6,4,3,2,35,9,8,12,13,1,0,1,2,3,35,13,14,10,9,1,3,4,5,0,35,14,15,11,10,1,4,6,7,5,35,8,11,15,12,1,1,7,6,2,35,8,9,10,11,1,1,0,5,7,35,15,14,13,12,1,6,4,3,2,35,17,16,20,21,2,0,1,2,3,35,21,22,18,17,2,3,4,5,0,35,22,23,19,18,2,4,6,7,5,35,16,19,23,20,2,1,7,6,2,35,16,17,18,19,2,1,0,5,7,35,23,22,21,20,2,6,4,3,2,35,25,24,28,29,3,0,1,2,3,35,29,30,26,25,3,3,4,5,0,35,30,31,27,26,3,4,6,7,5,35,24,27,31,28,3,1,7,6,2,35,24,25,26,27,3,1,0,5,7,35,31,30,29,28,3,6,4,3,2,35,33,32,36,37,4,0,1,2,3,35,37,38,34,33,4,3,4,5,0,35,38,39,35,34,4,4,6,7,5,35,32,35,39,36,4,1,7,6,2,35,32,33,34,35,4,1,0,5,7,35,39,38,37,36,4,6,4,3,2,35,41,40,44,45,5,0,1,2,3,35,45,46,42,41,5,3,4,5,0,35,46,47,43,42,5,4,6,7,5,35,40,43,47,44,5,1,7,6,2,35,40,41,42,43,5,1,0,5,7,35,47,46,45,44,5,6,4,3,2,35,49,48,52,53,6,0,1,2,3,35,53,54,50,49,6,3,4,5,0,35,54,55,51,50,6,4,6,7,5,35,48,51,55,52,6,1,7,6,2,35,48,49,50,51,6,1,0,5,7,35,55,54,53,52,6,6,4,3,2,35,57,56,60,61,7,0,1,2,3,35,61,62,58,57,7,3,4,5,0,35,62,63,59,58,7,4,6,7,5,35,56,59,63,60,7,1,7,6,2,35,56,57,58,59,7,1,0,5,7,35,63,62,61,60,7,6,4,3,2,35,65,64,68,69,8,8,9,10,11,35,69,70,66,65,8,11,12,13,8,35,70,71,67,66,8,12,14,15,13,35,64,67,71,68,8,9,15,14,10,35,64,65,66,67,8,9,8,13,15,35,71,70,69,68,8,14,12,11,10,35,73,72,76,77,9,16,17,18,19,35,77,78,74,73,9,19,20,21,16,35,78,79,75,74,9,20,22,23,21,35,72,75,79,76,9,17,23,22,18,35,72,73,74,75,9,17,16,21,23,35,79,78,77,76,9,22,20,19,18,35,81,80,84,85,10,16,17,18,19,35,85,86,82,81,10,19,20,21,16,35,86,87,83,82,10,20,22,23,21,35,80,83,87,84,10,17,23,22,18,35,80,81,82,83,10,17,16,21,23,35,87,86,85,84,10,22,20,19,18,35,89,88,92,93,11,0,1,2,3,35,93,94,90,89,11,3,4,5,0,35,94,95,91,90,11,4,6,7,5,35,88,91,95,92,11,1,7,6,2,35,88,89,90,91,11,1,0,5,7,35,95,94,93,92,11,6,4,3,2],
"faces" : [35,1,0,4,5,0,0,1,2,3,35,5,6,2,1,0,3,4,5,0,35,6,7,3,2,0,4,6,7,5,35,0,3,7,4,0,1,7,6,2,35,0,1,2,3,0,1,0,5,7,35,7,6,5,4,0,6,4,3,2,35,9,8,12,13,1,8,9,10,11,35,13,14,10,9,1,11,12,13,8,35,14,15,11,10,1,12,14,15,13,35,8,11,15,12,1,9,15,14,10,35,8,9,10,11,1,9,8,13,15,35,15,14,13,12,1,14,12,11,10,35,17,16,20,21,2,16,17,18,19,35,21,22,18,17,2,19,20,21,16,35,22,23,19,18,2,20,22,23,21,35,16,19,23,20,2,17,23,22,18,35,16,17,18,19,2,17,16,21,23,35,23,22,21,20,2,22,20,19,18,35,25,24,28,29,3,0,1,2,3,35,29,30,26,25,3,3,4,5,0,35,30,31,27,26,3,4,6,7,5,35,24,27,31,28,3,1,7,6,2,35,24,25,26,27,3,1,0,5,7,35,31,30,29,28,3,6,4,3,2,35,33,32,36,37,4,0,1,2,3,35,37,38,34,33,4,3,4,5,0,35,38,39,35,34,4,4,6,7,5,35,32,35,39,36,4,1,7,6,2,35,32,33,34,35,4,1,0,5,7,35,39,38,37,36,4,6,4,3,2,35,41,40,44,45,5,24,25,26,27,35,45,46,42,41,5,27,28,29,24,35,46,47,43,42,5,28,30,31,29,35,40,43,47,44,5,25,31,30,26,35,40,41,42,43,5,25,24,29,31,35,47,46,45,44,5,30,28,27,26,35,49,48,52,53,6,0,1,2,3,35,53,54,50,49,6,3,4,5,0,35,54,55,51,50,6,4,6,7,5,35,48,51,55,52,6,1,7,6,2,35,48,49,50,51,6,1,0,5,7,35,55,54,53,52,6,6,4,3,2,35,57,56,60,61,7,0,1,2,3,35,61,62,58,57,7,3,4,5,0,35,62,63,59,58,7,4,6,7,5,35,56,59,63,60,7,1,7,6,2,35,56,57,58,59,7,1,0,5,7,35,63,62,61,60,7,6,4,3,2,35,65,64,68,69,8,24,25,26,27,35,69,70,66,65,8,27,28,29,24,35,70,71,67,66,8,28,30,31,29,35,64,67,71,68,8,25,31,30,26,35,64,65,66,67,8,25,24,29,31,35,71,70,69,68,8,30,28,27,26,35,73,72,76,77,9,32,33,34,35,35,77,78,74,73,9,35,36,37,32,35,78,79,75,74,9,36,38,39,37,35,72,75,79,76,9,33,39,38,34,35,72,73,74,75,9,33,32,37,39,35,79,78,77,76,9,38,36,35,34,35,81,80,84,85,10,24,25,26,27,35,85,86,82,81,10,27,28,29,24,35,86,87,83,82,10,28,30,31,29,35,80,83,87,84,10,25,31,30,26,35,80,81,82,83,10,25,24,29,31,35,87,86,85,84,10,30,28,27,26,35,89,88,92,93,11,24,25,26,27,35,93,94,90,89,11,27,28,29,24,35,94,95,91,90,11,28,30,31,29,35,88,91,95,92,11,25,31,30,26,35,88,89,90,91,11,25,24,29,31,35,95,94,93,92,11,30,28,27,26,35,97,96,100,101,12,0,1,2,3,35,101,102,98,97,12,3,4,5,0,35,102,103,99,98,12,4,6,7,5,35,96,99,103,100,12,1,7,6,2,35,96,97,98,99,12,1,0,5,7,35,103,102,101,100,12,6,4,3,2,35,105,104,108,109,13,0,1,2,3,35,109,110,106,105,13,3,4,5,0,35,110,111,107,106,13,4,6,7,5,35,104,107,111,108,13,1,7,6,2,35,104,105,106,107,13,1,0,5,7,35,111,110,109,108,13,6,4,3,2,35,113,112,116,117,14,24,25,26,27,35,117,118,114,113,14,27,28,29,24,35,118,119,115,114,14,28,30,31,29,35,112,115,119,116,14,25,31,30,26,35,112,113,114,115,14,25,24,29,31,35,119,118,117,116,14,30,28,27,26,35,121,120,124,125,15,0,1,2,3,35,125,126,122,121,15,3,4,5,0,35,126,127,123,122,15,4,6,7,5,35,120,123,127,124,15,1,7,6,2,35,120,121,122,123,15,1,0,5,7,35,127,126,125,124,15,6,4,3,2,35,129,128,132,133,16,24,25,26,27,35,133,134,130,129,16,27,28,29,24,35,134,135,131,130,16,28,30,31,29,35,128,131,135,132,16,25,31,30,26,35,128,129,130,131,16,25,24,29,31,35,135,134,133,132,16,30,28,27,26],

"bones" : [],

Expand Down
Loading

0 comments on commit 608f2fc

Please sign in to comment.