diff options
69 files changed, 8077 insertions, 9441 deletions
@@ -1,4 +1,4 @@ | |||
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <!-- <copyright> | 2 | <!-- <copyright> |
3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | 3 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> |
4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | 4 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> |
@@ -176,7 +176,42 @@ | |||
176 | </script> | 176 | </script> |
177 | 177 | ||
178 | <script type="text/javascript" src="js/helper-classes/3D/GLMatrix/gl-matrix.js"></script> | 178 | <script type="text/javascript" src="js/helper-classes/3D/GLMatrix/gl-matrix.js"></script> |
179 | |||
180 | <!-- Ridge Compiled --> | ||
179 | <script type="text/javascript" src="js/helper-classes/RDGE/rdge-compiled.js"></script> | 181 | <script type="text/javascript" src="js/helper-classes/RDGE/rdge-compiled.js"></script> |
182 | <!-- Ridge Uncompiled --> | ||
183 | <!-- | ||
184 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/math/vec2.js"></script> | ||
185 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/math/vec3.js"></script> | ||
186 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/math/vec4.js"></script> | ||
187 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/math/mat4.js"></script> | ||
188 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/math/quat.js"></script> | ||
189 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/objectManager.js"></script> | ||
190 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/precompiled.js"></script> | ||
191 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/renderer.js"></script> | ||
192 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/renderUtils.js"></script> | ||
193 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/jshader.js"></script> | ||
194 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/jpass.js"></script> | ||
195 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/RenderProcs.js"></script> | ||
196 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/RenderInitProcs.js"></script> | ||
197 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/MeshManager.js"></script> | ||
198 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/ShaderManager.js"></script> | ||
199 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/ScreenQuad.js"></script> | ||
200 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/box.js"></script> | ||
201 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/camera.js"></script> | ||
202 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/shadowLight.js"></script> | ||
203 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/utilities.js"></script> | ||
204 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/engine.js"></script> | ||
205 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/scenegraphNodes.js"></script> | ||
206 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/scenegraph.js"></script> | ||
207 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/lightmanager.js"></script> | ||
208 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/rendercontext.js"></script> | ||
209 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/particle.js"></script> | ||
210 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/run_state.js"></script> | ||
211 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/init_state.js"></script> | ||
212 | <script type="text/javascript" src="js/helper-classes/RDGE/src/core/script/runtime.js"></script> | ||
213 | --> | ||
214 | <!-- End Ridge Uncompiled --> | ||
180 | 215 | ||
181 | <script type="text/javascript" src="imports/codemirror/lib/codemirror.js"></script> | 216 | <script type="text/javascript" src="imports/codemirror/lib/codemirror.js"></script> |
182 | <script type="text/javascript" src="imports/codemirror/mode/htmlmixed/htmlmixed.js"></script> | 217 | <script type="text/javascript" src="imports/codemirror/mode/htmlmixed/htmlmixed.js"></script> |
diff --git a/js/helper-classes/RDGE/rdge-compiled.js b/js/helper-classes/RDGE/rdge-compiled.js index caf58147..50f4e5c9 100755 --- a/js/helper-classes/RDGE/rdge-compiled.js +++ b/js/helper-classes/RDGE/rdge-compiled.js | |||
@@ -1,386 +1,331 @@ | |||
1 | vec2={string:function(a){return"{ "+a[0]+", "+a[1]+" }"},verify:function(a){return a==void 0||a.length==void 0||a.length<2?!1:typeof a[0]!="number"||typeof a[1]!="number"?!1:!0},copy:function(a){return a.length==void 0?[a,a]:[a[0],a[1]]},inplace_copy:function(a,b){a[0]=b[0];a[1]=b[1]},zero:function(){return[0,0]},up:function(){return[0,1]},right:function(){return[1,0]},add:function(a,b){return[a[0]+b[0],a[1]+b[1]]},sub:function(a,b){return[a[0]-b[0],a[1]-b[1]]},mul:function(a,b){return[a[0]*b[0], | 1 | var RDGE=RDGE||{};RDGE.vec2={};RDGE.vec2.string=function(a){return"{ "+a[0]+", "+a[1]+" }"};RDGE.vec2.verify=function(a){return a==void 0||a.length==void 0||a.length<2?!1:typeof a[0]!="number"||typeof a[1]!="number"?!1:!0};RDGE.vec2.copy=function(a){return a.length==void 0?[a,a]:[a[0],a[1]]};RDGE.vec2.inplace_copy=function(a,b){a[0]=b[0];a[1]=b[1]};RDGE.vec2.zero=function(){return[0,0]};RDGE.vec2.up=function(){return[0,1]};RDGE.vec2.right=function(){return[1,0]}; |
2 | a[1]*b[1]]},addMul:function(a,b,f){return f.length!=void 0&&f.length>=2?[a[0]+b[0]*f[0],a[1]+b[1]*f[1]]:[a[0]+b[0]*f,a[1]+b[1]*f]},scale:function(a,b){return b.length!=void 0&&b.length>=2?[a[0]*b[0],a[1]*b[1]]:[a[0]*b,a[1]*b]},negate:function(a){return[-a[0],-a[1]]},normalize:function(a){var b=Math.sqrt(a[0]*a[0],a[1]*a[1]);return Math.abs(1-b)>1.0E-4?(b=1/b,[a[0]*b,a[1]*b]):a},dot:function(a,b){return a[0]*b[0]+a[1]*b[1]},perp:function(a){return[a[1],-a[0]]},lengthSq:function(a){return a[0]*a[0]+ | 2 | RDGE.vec2.add=function(a,b){return[a[0]+b[0],a[1]+b[1]]};RDGE.vec2.sub=function(a,b){return[a[0]-b[0],a[1]-b[1]]};RDGE.vec2.mul=function(a,b){return[a[0]*b[0],a[1]*b[1]]};RDGE.vec2.addMul=function(a,b,c){return c.length!=void 0&&c.length>=2?[a[0]+b[0]*c[0],a[1]+b[1]*c[1]]:[a[0]+b[0]*c,a[1]+b[1]*c]};RDGE.vec2.scale=function(a,b){return b.length!=void 0&&b.length>=2?[a[0]*b[0],a[1]*b[1]]:[a[0]*b,a[1]*b]};RDGE.vec2.negate=function(a){return[-a[0],-a[1]]}; |
3 | a[1]*a[1]},length:function(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1])},min:function(a,b){return[Math.min(a[0],b[0]),Math.min(a[1],b[1])]},max:function(a,b){return[Math.max(a[0],b[0]),Math.max(a[1],b[1])]}};vec2.clamp=function(a,b,f){return vec2.min(f,vec2.max(a,b))};vec3={string:function(a){return"{ "+a[0]+", "+a[1]+", "+a[2]+" }"},verify:function(a){return a==void 0||a.length==void 0||a.length<3?!1:typeof a[0]!="number"||typeof a[1]!="number"||typeof a[2]!="number"?!1:!0},inplace_copy:function(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2]},copy:function(a){return a.length==void 0?[a,a,a]:[a[0],a[1],a[2]]},translation:function(a){return[a[12],a[13],a[14]]},basisX:function(a){return[a[0],a[1],a[2]]},basisY:function(a){return[a[4],a[5],a[6]]},basisZ:function(a){return[a[8], | 3 | RDGE.vec2.normalize=function(a){var b=Math.sqrt(a[0]*a[0],a[1]*a[1]);return Math.abs(1-b)>1.0E-4?(b=1/b,[a[0]*b,a[1]*b]):a};RDGE.vec2.dot=function(a,b){return a[0]*b[0]+a[1]*b[1]};RDGE.vec2.perp=function(a){return[a[1],-a[0]]};RDGE.vec2.lengthSq=function(a){return a[0]*a[0]+a[1]*a[1]};RDGE.vec2.length=function(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1])};RDGE.vec2.min=function(a,b){return[Math.min(a[0],b[0]),Math.min(a[1],b[1])]};RDGE.vec2.max=function(a,b){return[Math.max(a[0],b[0]),Math.max(a[1],b[1])]}; |
4 | a[9],a[10]]},zero:function(){return[0,0,0]},up:function(){return[0,1,0]},forward:function(){return[0,0,1]},right:function(){return[1,0,0]},random:function(a,b){return[a[0]+(b[0]-a[0])*Math.random(),a[1]+(b[1]-a[1])*Math.random(),a[2]+(b[2]-a[2])*Math.random()]},xy:function(a){return[a[0],a[1]]},xz:function(a){return[a[0],a[2]]},add:function(a,b){return[a[0]+b[0],a[1]+b[1],a[2]+b[2]]},plusEqual:function(a,b){a[0]+=b[0];a[1]+=b[1];a[2]+=b[2]},sub:function(a,b){return[a[0]-b[0],a[1]-b[1],a[2]-b[2]]}, | 4 | RDGE.vec2.clamp=function(a,b,c){return RDGE.vec2.min(c,RDGE.vec2.max(a,b))};RDGE=RDGE||{};RDGE.vec3={};RDGE.vec3.string=function(a){return"{ "+a[0]+", "+a[1]+", "+a[2]+" }"};RDGE.vec3.verify=function(a){return a==void 0||a.length==void 0||a.length<3?!1:typeof a[0]!="number"||typeof a[1]!="number"||typeof a[2]!="number"?!1:!0};RDGE.vec3.inplace_copy=function(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2]};RDGE.vec3.copy=function(a){return a.length==void 0?[a,a,a]:[a[0],a[1],a[2]]};RDGE.vec3.translation=function(a){return[a[12],a[13],a[14]]}; |
5 | mul:function(a,b){return[a[0]*b[0],a[1]*b[1],a[2]*b[2]]},addMul:function(a,b,f){return f.length!=void 0&&f.length>=3?[a[0]+b[0]*f[0],a[1]+b[1]*f[1],a[2]+b[2]*f[2]]:[a[0]+b[0]*f,a[1]+b[1]*f,a[2]+b[2]*f]},plusEqualMul:function(a,b,f){f.length!==void 0&&f.length>=3?(a[0]+=b[0]*f[0],a[1]+=b[1]*f[1],a[2]+=b[2]*f[2]):(a[0]+=b[0]*f,a[1]+=b[1]*f,a[2]+=b[2]*f)},scale:function(a,b){return b.length!==void 0&&b.length>=3?[a[0]*b[0],a[1]*b[1],a[2]*b[2]]:[a[0]*b,a[1]*b,a[2]*b]},inplace_scale:function(a,b){b.length!== | 5 | RDGE.vec3.basisX=function(a){return[a[0],a[1],a[2]]};RDGE.vec3.basisY=function(a){return[a[4],a[5],a[6]]};RDGE.vec3.basisZ=function(a){return[a[8],a[9],a[10]]};RDGE.vec3.zero=function(){return[0,0,0]};RDGE.vec3.up=function(){return[0,1,0]};RDGE.vec3.forward=function(){return[0,0,1]};RDGE.vec3.right=function(){return[1,0,0]};RDGE.vec3.random=function(a,b){return[a[0]+(b[0]-a[0])*Math.random(),a[1]+(b[1]-a[1])*Math.random(),a[2]+(b[2]-a[2])*Math.random()]};RDGE.vec3.xy=function(a){return[a[0],a[1]]}; |
6 | void 0&&b.length>=3?(a[0]*=b[0],a[1]*=b[1],a[2]*=b[2]):(a[0]*=b,a[1]*=b,a[2]*=b)},negate:function(a){return[-a[0],-a[1],-a[2]]},inplace_negate:function(a){a[0]=-a[0];a[1]=-a[1];a[2]=-a[2]},normalize:function(a){var b=Math.sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]);return Math.abs(1-b)>1.0E-4?(b=1/b,[a[0]*b,a[1]*b,a[2]*b]):a},cross:function(a,b){return[a[1]*b[2]-b[1]*a[2],a[2]*b[0]-b[2]*a[0],a[0]*b[1]-b[0]*a[1]]},dot:function(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]},lengthSq:function(a){return a[0]*a[0]+ | 6 | RDGE.vec3.xz=function(a){return[a[0],a[2]]};RDGE.vec3.add=function(a,b){return[a[0]+b[0],a[1]+b[1],a[2]+b[2]]};RDGE.vec3.plusEqual=function(a,b){a[0]+=b[0];a[1]+=b[1];a[2]+=b[2]};RDGE.vec3.sub=function(a,b){return[a[0]-b[0],a[1]-b[1],a[2]-b[2]]};RDGE.vec3.mul=function(a,b){return[a[0]*b[0],a[1]*b[1],a[2]*b[2]]};RDGE.vec3.addMul=function(a,b,c){return c.length!=void 0&&c.length>=3?[a[0]+b[0]*c[0],a[1]+b[1]*c[1],a[2]+b[2]*c[2]]:[a[0]+b[0]*c,a[1]+b[1]*c,a[2]+b[2]*c]}; |
7 | a[1]*a[1]+a[2]*a[2]},length:function(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2])},distanceSq:function(a,b){var f=[a[0]-b[0],a[1]-b[1],a[2]-b[2]];return f[0]*f[0]+f[1]*f[1]+f[2]*f[2]},distance:function(a,b){var f=[a[0]-b[0],a[1]-b[1],a[2]-b[2]];return Math.sqrt(f[0]*f[0]+f[1]*f[1]+f[2]*f[2])}};vec3.angle=function(a,b){return Math.acos(vec3.dot(a,b))/(vec3.length(a)*vec3.length(b))};vec3.direction=function(a,b){return vec3.normalize(vec3.sub(b,a))}; | 7 | RDGE.vec3.plusEqualMul=function(a,b,c){c.length!==void 0&&c.length>=3?(a[0]+=b[0]*c[0],a[1]+=b[1]*c[1],a[2] |