From 04343eda8c2f870b0da55cfdc8003c99fe1cc4de Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:53:10 -0700 Subject: Remove trailing spaces --- js/helper-classes/3D/Rectangle.js | 2 +- js/helper-classes/3D/draw-utils.js | 6 +- js/helper-classes/3D/hit-record.js | 2 +- js/helper-classes/3D/math-utils.js | 6 +- js/helper-classes/3D/snap-2d-record.js | 4 +- js/helper-classes/3D/snap-manager.js | 40 ++--- js/helper-classes/3D/vec-utils.js | 4 +- js/helper-classes/3D/view-utils.js | 18 +- .../RDGE/src/core/script/MeshManager.js | 42 ++--- .../RDGE/src/core/script/RenderInitProcs.js | 4 +- .../RDGE/src/core/script/animation.js | 54 +++--- js/helper-classes/RDGE/src/core/script/camera.js | 24 +-- js/helper-classes/RDGE/src/core/script/engine.js | 44 ++--- js/helper-classes/RDGE/src/core/script/fx/blur.js | 8 +- js/helper-classes/RDGE/src/core/script/fx/ssao.js | 8 +- js/helper-classes/RDGE/src/core/script/jpass.js | 8 +- js/helper-classes/RDGE/src/core/script/jshader.js | 20 +-- .../RDGE/src/core/script/math/mat4.js | 26 +-- .../RDGE/src/core/script/math/quat.js | 6 +- .../RDGE/src/core/script/math/vec2.js | 6 +- .../RDGE/src/core/script/math/vec3.js | 22 +-- .../RDGE/src/core/script/math/vec4.js | 4 +- .../RDGE/src/core/script/objectManager.js | 24 +-- js/helper-classes/RDGE/src/core/script/particle.js | 12 +- .../RDGE/src/core/script/precompiled.js | 10 +- .../RDGE/src/core/script/renderUtils.js | 6 +- js/helper-classes/RDGE/src/core/script/renderer.js | 26 +-- .../RDGE/src/core/script/scenegraph.js | 22 +-- .../RDGE/src/core/script/scenegraphNodes.js | 192 ++++++++++----------- .../RDGE/src/core/script/shadowLight.js | 2 +- js/helper-classes/RDGE/src/core/script/sockets.js | 8 +- .../RDGE/src/core/script/utilities.js | 26 +-- 32 files changed, 343 insertions(+), 343 deletions(-) (limited to 'js/helper-classes') diff --git a/js/helper-classes/3D/Rectangle.js b/js/helper-classes/3D/Rectangle.js index fb6127ed..15f812ab 100755 --- a/js/helper-classes/3D/Rectangle.js +++ b/js/helper-classes/3D/Rectangle.js @@ -220,7 +220,7 @@ var Rectangle = exports.Rectangle = Object.create(Object.prototype, { this.setTop( yMin ); this.setHeight( yMax - yMin ); } }, - + translate: { value: function( dx, dy ) diff --git a/js/helper-classes/3D/draw-utils.js b/js/helper-classes/3D/draw-utils.js index 6f4c287d..65a2647e 100755 --- a/js/helper-classes/3D/draw-utils.js +++ b/js/helper-classes/3D/draw-utils.js @@ -869,7 +869,7 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, { tmpPt, ssMat, elt; - + if (len === 0) return; var context = this._drawingContext; if (!context) return; @@ -910,7 +910,7 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, { this._selectionCtr = MathUtils.getCenterFromBounds(3, bounds3D); // console.log("selection center, single elt case - ", this._selectionCtr); - + this.viewUtils.popViewportObj(); } else @@ -1328,7 +1328,7 @@ var DrawUtils = exports.DrawUtils = Montage.create(Component, { var arrowSize = 50 / zoomFactor; var xAxis = [arrowSize,0,0,1]; //var rO = resMat.multiply(origin); - var rO = glmat4.multiplyVec3( resMat, origin, []); + var rO = glmat4.multiplyVec3( resMat, origin, []); //var xO = resMat.multiply(xAxis); var xO = glmat4.multiplyVec3( resMat, xAxis, []); diff --git a/js/helper-classes/3D/hit-record.js b/js/helper-classes/3D/hit-record.js index 4c1a71b0..7e39bb50 100755 --- a/js/helper-classes/3D/hit-record.js +++ b/js/helper-classes/3D/hit-record.js @@ -60,7 +60,7 @@ var HitRecord = exports.HitRecord = Object.create(Object.prototype, SNAP_TYPE_ELEMENT_CENTER: { value: 11, writable: true }, SNAP_TYPE_CONTAINED_ELEMENT: { value: 12, writable: true }, SNAP_TYPE_UNDEFINED: { value: null, writable: -1 }, - + /////////////////////////////////////////////////////////////////////// // Instance variables /////////////////////////////////////////////////////////////////////// diff --git a/js/helper-classes/3D/math-utils.js b/js/helper-classes/3D/math-utils.js index 3c981d0d..191b02bd 100755 --- a/js/helper-classes/3D/math-utils.js +++ b/js/helper-classes/3D/math-utils.js @@ -41,7 +41,7 @@ var MathUtilsClass = exports.MathUtilsClass = Object.create(Object.prototype, { // Instance variables /////////////////////////////////////////////////////////////////////// // VecUtils: { value: null, writable: true }, - + EPSILON: { value: 1.e-5, writable: true }, // these are used in containment tests @@ -616,7 +616,7 @@ var MathUtilsClass = exports.MathUtilsClass = Object.create(Object.prototype, { // test 1. Overall bounding box test if ((xMaxElt < xMin) || (xMinElt > xMax) || (yMaxElt < yMin) || (yMinElt > yMax)) return false; - + // test 2. See if any of the corners of the element are contained in the rectangle var rect = Object.create(Rectangle, {}); rect.set( pt[0], pt[1], width, height ); @@ -939,7 +939,7 @@ var MathUtilsClass = exports.MathUtilsClass = Object.create(Object.prototype, { }, /////////////////////////////////////////////////////////////////////// - // Utility method to calculate angle between two 3D vectors + // Utility method to calculate angle between two 3D vectors /////////////////////////////////////////////////////////////////////// getAxisAngleBetween3DVectors: { value: function (vec1, vec2, axis) { diff --git a/js/helper-classes/3D/snap-2d-record.js b/js/helper-classes/3D/snap-2d-record.js index 59fa4b77..5119ae6f 100755 --- a/js/helper-classes/3D/snap-2d-record.js +++ b/js/helper-classes/3D/snap-2d-record.js @@ -39,14 +39,14 @@ var Snap2DRecord = exports.Snap2DRecord = Object.create(Object.prototype, /////////////////////////////////////////////////////////////////////// // Constant definitions /////////////////////////////////////////////////////////////////////// - + /////////////////////////////////////////////////////////////////////// // Instance variables /////////////////////////////////////////////////////////////////////// _elt : { value: null , writable: true}, // the four boundary points for the element in global screen space _screenPtArray : { value: null , writable: true}, // snap point in global screen space _alignPtArray : { value: null , writable: true}, // points for snap-align. Kept in working plane space - + _localToGlobalMat : { value: null, writable: true }, _globalToLocalMat : { value: null, writable: true }, diff --git a/js/helper-classes/3D/snap-manager.js b/js/helper-classes/3D/snap-manager.js index 2289f963..e5044e09 100755 --- a/js/helper-classes/3D/snap-manager.js +++ b/js/helper-classes/3D/snap-manager.js @@ -210,7 +210,7 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { }, snap : { - value: function (xScreen, yScreen, snap3D, quadPt) + value: function (xScreen, yScreen, snap3D, quadPt) { // force a 3D snap if a 2D snap is requested but the 2D cache has not been initialized if (!snap3D && !this._elementCache) snap3D = true; @@ -282,7 +282,7 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { this.deactivateDragPlane(); this.setLastHit( rtnHit ); - + //rtnHit.test(); // DEBUG CODE. REMOVE THIS return rtnHit; } @@ -305,7 +305,7 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { var stageWorldPt0 = viewUtils.localToStageWorld( localPt0, stage ), stageWorldPt1 = viewUtils.localToStageWorld( localPt1, stage ); var vec = vecUtils.vecSubtract( 3, stageWorldPt1, stageWorldPt0 ); - + var ptOnWorkingPlane = MathUtils.vecIntersectPlane(stageWorldPt0, vec, workingPlane); var wpMat = drawUtils.getPlaneToWorldMatrix(workingPlane, MathUtils.getPointOnPlane(workingPlane)), @@ -1023,7 +1023,7 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { } }, - hSnapToElements : + hSnapToElements : { value: function( elt, hitRecs, depth, globalScrPt ) { @@ -1081,9 +1081,9 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { } }, - snapToElement : + snapToElement : { - value: function( elt, globalScrPt ) + value: function( elt, globalScrPt ) { if (this.isAvoidedElement(elt) ) return null; @@ -1096,7 +1096,7 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { var eltMat = viewUtils.getLocalToGlobalMatrix( elt ); for (var i=0; i<4; i++) bounds3D[i] = viewUtils.localToGlobal2(bounds[i], eltMat); - + var hitRec = this.snapToScreenBounds( elt, globalScrPt, bounds, bounds3D ); // see if we can snap to a contained geometry object @@ -1117,9 +1117,9 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { } }, - snapToScreenBounds : + snapToScreenBounds : { - value: function( elt, scrPt, bounds, bounds3D ) + value: function( elt, scrPt, bounds, bounds3D ) { // push the element as the current viewport element viewUtils.pushViewportObj( elt ); @@ -1328,9 +1328,9 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { } }, - hSnapToContainedElements : + hSnapToContainedElements : { - value: function( eyePt, dir, glObj, hitRec, targetScrPt ) + value: function( eyePt, dir, glObj, hitRec, targetScrPt ) { if (!glObj) return false; @@ -1345,7 +1345,7 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { doSnapToContainedElement: { - value: function( eyePt, dir, glObj, hitRec, targetScrPt ) + value: function( eyePt, dir, glObj, hitRec, targetScrPt ) { var rtnVal = false; @@ -1443,9 +1443,9 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { } }, - snapToContainedElement : + snapToContainedElement : { - value: function( eyePt, dir, glObj, hitRec, targetScrPt ) + value: function( eyePt, dir, glObj, hitRec, targetScrPt ) { var rtnVal = false; var elt = hitRec.getElement(); @@ -1466,10 +1466,10 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { case glObj.GEOM_TYPE_PATH: // Snapping not implemented for these type, but don't throw an error... break; - + case glObj.GEOM_TYPE_BRUSH_STROKE: break; //don't throw error because snapping not yet implemented - + case glObj.GEOM_TYPE_CUBIC_BEZIER: rtnVal = this.doSnapToContainedElement( eyePt, dir, glObj, hitRec, targetScrPt ); break; @@ -1519,7 +1519,7 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { // add the projection matrix var projMat = world.makePerspectiveMatrix(); //var projInv = projMat.inverse(); - var projInv = glmat4.inverse(projMat, []); + var projInv = glmat4.inverse(projMat, []); var camInv = world.getCameraMatInverse(); //var glToNDC = projMat.multiply( camInv ); var glToNDC = glmat4.multiply( projMat, camInv, [] ); @@ -1569,9 +1569,9 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { } }, - GLToView : + GLToView : { - value: function( glPt, world ) + value: function( glPt, world ) { var projMat = world.makePerspectiveMatrix(); //var mat = projMat.multiply( world.getCameraMatInverse() ); @@ -2134,7 +2134,7 @@ var SnapManager = exports.SnapManager = Montage.create(Component, { drawHit : { - value: function( hitRec ) + value: function( hitRec ) { if (hitRec) { diff --git a/js/helper-classes/3D/vec-utils.js b/js/helper-classes/3D/vec-utils.js index 31f6cdd1..4575c3d7 100755 --- a/js/helper-classes/3D/vec-utils.js +++ b/js/helper-classes/3D/vec-utils.js @@ -249,8 +249,8 @@ var VecUtils = exports.VecUtils = Object.create(Object.prototype, mat[index] = 1.0; index += dimen + 1; } - - return mat; + + return mat; } }, diff --git a/js/helper-classes/3D/view-utils.js b/js/helper-classes/3D/view-utils.js index 1973d254..b7070840 100755 --- a/js/helper-classes/3D/view-utils.js +++ b/js/helper-classes/3D/view-utils.js @@ -158,7 +158,7 @@ exports.ViewUtils = Montage.create(Component, { var stageMat = this.getMatrixFromElement(stage); var mat = glmat4.multiply( stageMat, objMat, [] ); - + var viewDir; if (localMode) { @@ -183,7 +183,7 @@ exports.ViewUtils = Montage.create(Component, { else plane = vecUtils.vecCross( 3, yVec, xVec ); break; - + case 1: xDot = Math.abs(vecUtils.vecDot(3, yVec, viewDir)); zDot = Math.abs(vecUtils.vecDot(3, zVec, viewDir)); @@ -571,7 +571,7 @@ exports.ViewUtils = Montage.create(Component, { return localPlane; } }, - + parentToChild: { value: function( parentPt, child, passthrough ) { var pt = parentPt.slice(0); @@ -620,7 +620,7 @@ exports.ViewUtils = Montage.create(Component, { return childPt; } }, - + parentToChildWorld: { value: function( parentPt, child ) { var pt = parentPt.slice(0); @@ -694,7 +694,7 @@ exports.ViewUtils = Montage.create(Component, { return vec; } }, - + getElementBounds: { value: function( elt, localSpace ) { // optional argument localSpace, if true, puts the top left at (0,0). @@ -876,7 +876,7 @@ exports.ViewUtils = Montage.create(Component, { } }, - + unproject: { value: function( pt ) { if(!this._perspectiveDist) @@ -968,7 +968,7 @@ exports.ViewUtils = Montage.create(Component, { return viewPt; } }, - + globalScreenToLocalWorld: { value: function( globalPt, elt ) { var objPt = this.globalToLocal( globalPt, elt ); @@ -1341,7 +1341,7 @@ exports.ViewUtils = Montage.create(Component, { // drawLayoutModule // // STAGE ACCESSORS: -// activeDocument: this.application.ninja.currentDocument +// activeDocument: this.application.ninja.currentDocument // userContent (stage): this.application.ninja.currentDocument.model.documentRoot // stageManager: this.application.ninja.stage // MainApp\js\stage\stage.reel\stage.js // stageManager._canvas: this.application.ninja.stage.canvas @@ -1490,6 +1490,6 @@ exports.ViewUtils = Montage.create(Component, { } /////////////////////////////////////////////////////////////////////////////////// - + }); diff --git a/js/helper-classes/RDGE/src/core/script/MeshManager.js b/js/helper-classes/RDGE/src/core/script/MeshManager.js index 81359fc4..1fff19c5 100755 --- a/js/helper-classes/RDGE/src/core/script/MeshManager.js +++ b/js/helper-classes/RDGE/src/core/script/MeshManager.js @@ -73,7 +73,7 @@ RDGE.MeshManager.prototype.loadMesh = function (meshStump, tempMesh) { // add the temp mesh to the map of loaded meshes this.modelMap[meshStump.name] = tempMesh; - + // update the request counter - we now have one more mesh to load this.requestCounter++; @@ -87,7 +87,7 @@ RDGE.MeshManager.prototype.loadMesh = function (meshStump, tempMesh) { */ RDGE.MeshManager.prototype.deleteMesh = function (name) { var model = this.modelMap[name]; - + if (model) { RDGE.globals.engine.ctxMan.forEach(function (context) { context.renderer.deletePrimitive(model.primitive); @@ -113,20 +113,20 @@ RDGE.MeshManager.prototype.getModelNames = function () { RDGE.MeshManager.prototype.processMeshData = function () { var renderer = RDGE.globals.engine.getContext().renderer; - + // loop through meshes and load ready data for (var index in this.readyList) { // if item is ready load it if (this.readyList[index] && this.readyList[index].ready && renderer.id === this.readyList[index].ctxID) { - + // pop the item var model = this.readyList[index]; this.readyList.splice(index, 1); - + var primset = new RDGE.rdgePrimitiveDefinition(); - - primset.vertexDefinition = + + primset.vertexDefinition = { // this shows two ways to map this data to an attribute "vert": { 'type': RDGE.rdgeConstants.VS_ELEMENT_POS, 'bufferIndex': 0, 'bufferUsage': RDGE.rdgeConstants.BUFFER_STATIC }, @@ -139,27 +139,27 @@ RDGE.MeshManager.prototype.processMeshData = function () { "a_texcoords": { 'type': RDGE.rdgeConstants.VS_ELEMENT_FLOAT2, 'bufferIndex': 2, 'bufferUsage': RDGE.rdgeConstants.BUFFER_STATIC }, "a_uv": { 'type': RDGE.rdgeConstants.VS_ELEMENT_FLOAT2, 'bufferIndex': 2, 'bufferUsage': RDGE.rdgeConstants.BUFFER_STATIC } }; - - primset.bufferStreams = + + primset.bufferStreams = [ model.root.data.coords, model.root.data.normals, model.root.data.uvs ]; - - primset.streamUsage = + + primset.streamUsage = [ RDGE.rdgeConstants.BUFFER_STATIC, RDGE.rdgeConstants.BUFFER_STATIC, RDGE.rdgeConstants.BUFFER_STATIC ]; - + primset.indexUsage = RDGE.rdgeConstants.BUFFER_STREAM; - + primset.indexBuffer = model.root.data.indices; renderer.createPrimitive( primset ); - + model.root.primitive = primset; // generate a bounding box for this mesh @@ -173,10 +173,10 @@ RDGE.MeshManager.prototype.processMeshData = function () { } this.modelMap[model.root.attribs.name] = model.root; - + // now that the model is load reduce the request count this.requestCounter--; - + this.onLoaded(model.root.attribs.name); //break; } @@ -185,7 +185,7 @@ RDGE.MeshManager.prototype.processMeshData = function () { }; RDGE.MeshManager.prototype.isReady = function () { - return this.readyList.length == 0; + return this.readyList.length == 0; }; RDGE.MeshManager.prototype.addOnLoadedCallback = function (callback) { @@ -203,14 +203,14 @@ RDGE.MeshManager.prototype.exportJSON = function () { for (var m in this.modelMap) { this.modelMap[m].primitive.built = false; } - + return JSON.stringify(this.modelMap); }; RDGE.MeshManager.prototype.importJSON = function (jsonMeshExport) { try { var tempModelMap = JSON.parse(jsonMeshExport); - + for (var m in tempModelMap) { if (!this.modelMap[m]) { this.modelMap[m] = tempModelMap[m]; @@ -218,13 +218,13 @@ RDGE.MeshManager.prototype.importJSON = function (jsonMeshExport) { } window.console.log("meshes imported"); } catch (e) { - window.console.error("error importing meshes: " + e.description ); + window.console.error("error importing meshes: " + e.description ); } }; /* * global function for the mesh manager to make mesh file requests - */ + */ RDGE.requestMesh = function (mesh) { var request = new XMLHttpRequest(); request.mesh = mesh; diff --git a/js/helper-classes/RDGE/src/core/script/RenderInitProcs.js b/js/helper-classes/RDGE/src/core/script/RenderInitProcs.js index a374efa6..20b37abb 100755 --- a/js/helper-classes/RDGE/src/core/script/RenderInitProcs.js +++ b/js/helper-classes/RDGE/src/core/script/RenderInitProcs.js @@ -141,7 +141,7 @@ RDGE.renderInitProcDepthMap = function (renderObj) { // renderObj.addUniform("u_WTF2", g_lightMat[1], RDGE.UNIFORMTYPE.FLOAT4); // renderObj.addUniform("u_WTF3", g_lightMat[2], RDGE.UNIFORMTYPE.FLOAT4); // renderObj.addUniform("u_WTF4", g_lightMat[3], RDGE.UNIFORMTYPE.FLOAT4); - // + // // since the uniform data references should not change we can just bind one time renderObj.bindUniforms(); @@ -227,7 +227,7 @@ RDGE.renderInitShadowProjection = function (primSet, vertexData) { arrayPeek(material.renderObj).addBuffers(vertexData.indexObject, gl.ELEMENT_ARRAY_BUFFER); - gl.useProgram(null); + gl.useProgram(null); }; RDGE.renderInitRadialBlur = function(quad, shader) { diff --git a/js/helper-classes/RDGE/src/core/script/animation.js b/js/helper-classes/RDGE/src/core/script/animation.js index 2e13cce6..2af5b207 100755 --- a/js/helper-classes/RDGE/src/core/script/animation.js +++ b/js/helper-classes/RDGE/src/core/script/animation.js @@ -32,11 +32,11 @@ POSSIBILITY OF SUCH DAMAGE. var RDGE = RDGE || {}; RDGE.animation = RDGE.animation || {}; -/** - * channelController - * The channel controller is really the workhorse of the RDGE animation system. It handles timing, - * interpolation, and sampling of attributes over the lifetime of an animation. Each channel controller - * is responsible for animating a single attribute. The current implementation supports animating vector, +/** + * channelController + * The channel controller is really the workhorse of the RDGE animation system. It handles timing, + * interpolation, and sampling of attributes over the lifetime of an animation. Each channel controller + * is responsible for animating a single attribute. The current implementation supports animating vector, * boolean, or quaternion attributes. This class is used internally by the animation system. * * @param _animation - the animation resource @@ -44,16 +44,16 @@ RDGE.animation = RDGE.animation || {}; * */ RDGE.animation.channelController = function (_animation, _channel) { - /** - * this.interpolate - Enable/Disable interpolation between animation frames. - * Typically this should be enabled for smoother looking animation. However, - * there may be applications where interpolation is undesireable. + /** + * this.interpolate - Enable/Disable interpolation between animation frames. + * Typically this should be enabled for smoother looking animation. However, + * there may be applications where interpolation is undesireable. */ this.interpolate = false; - /** - * this.animation - the animation resource. - * This is where the keyframes for the channel are stored. + /** + * this.animation - the animation resource. + * This is where the keyframes for the channel are stored. */ this.animation = _animation; @@ -77,20 +77,20 @@ RDGE.animation.channelController = function (_animation, _channel) { */ this.endTime = this.animation.clipEnd / this.animation.framesPerSec; - /** + /** * this.cachedFrame - cached frame index, this optimizes best case scenario computeFrame calls. */ this.cachedFrame = -1; - /** + /** * oneFrameInSecs - stores the interval of a single frame in seconds. This is used for internal calculations. */ oneFrameInSecs = 1.0 / _animation.framesPerSec; - /** - * this.channel.timeline - stores the animation timeline. - * Currently this is calculated based on the framePerSec settings of the animation. - * Eventually the timeline should be exported with the animation. Individual channels + /** + * this.channel.timeline - stores the animation timeline. + * Currently this is calculated based on the framePerSec settings of the animation. + * Eventually the timeline should be exported with the animation. Individual channels * may have different timelines depending on which frames are keyed. */ this.channel.timeline = new Array(this.channel.numKeys + 1); @@ -98,11 +98,11 @@ RDGE.animation.channelController = function (_animation, _channel) { this.channel.timeline[i] = i / this.animation.framesPerSec; } - /** this.computeFrame - * Calculates the current frame index of the animation at the current time. - * In the worst case, this function will perform a binary search for the frame - * whose time is closest to and less than the current time. In the best case, - * the current frame is near the most recently cached frame, or it remains unchanged. + /** this.computeFrame + * Calculates the current frame index of the animation at the current time. + * In the worst case, this function will perform a binary search for the frame + * whose time is closest to and less than the current time. In the best case, + * the current frame is near the most recently cached frame, or it remains unchanged. */ this.computeFrame = function () { var absTime = this.localTime + this.startTime; @@ -146,7 +146,7 @@ RDGE.animation.channelController = function (_animation, _channel) { } } - // binary search... + // binary search... while (start + 1 < end) { var mid = Math.floor((start + end) / 2); if (absTime > this.channel.timeline[mid]) { @@ -262,9 +262,9 @@ RDGE.animation.channelController = function (_animation, _channel) { }; }; -/** - * track - * Each track advances and samples from a list of channel controllers, and is assigned to a scene graph node. +/** + * track + * Each track advances and samples from a list of channel controllers, and is assigned to a scene graph node. * * @param _animation - the animation resource * @param _track - the track id diff --git a/js/helper-classes/RDGE/src/core/script/camera.js b/js/helper-classes/RDGE/src/core/script/camera.js index e85fe593..28d307ae 100755 --- a/js/helper-classes/RDGE/src/core/script/camera.js +++ b/js/helper-classes/RDGE/src/core/script/camera.js @@ -27,8 +27,8 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* - * camera class +/* + * camera class */ var RDGE = RDGE || {}; @@ -84,7 +84,7 @@ RDGE.camera = function () { return p; }; - /* This is the old way + /* This is the old way var t = this.persp.near * Math.tan(0.017453292519943295769236 * this.persp.fov * 0.5); var r = t * this.persp.aratio; var u = t; @@ -204,7 +204,7 @@ RDGE.camera = function () { return 0.0; }; - // this is used by ambient occlusion... + // this is used by ambient occlusion... this.getFTR = function () { var fovyRad = (this.persp.fov * 0.5) * Math.PI / 180.0; return [ @@ -220,15 +220,15 @@ RDGE.camera = function () { /** Camera Manager - * This class is used to manage the active camera. It provides functionality - * for getting and setting the active camera, as well as providing stack operations - * to switch to and from multiple cameras. + * This class is used to manage the active camera. It provides functionality + * for getting and setting the active camera, as well as providing stack operations + * to switch to and from multiple cameras. */ RDGE.cameraManager = function () { this.stack = []; /* Set the active camera. - * This function sets the active camera to the given camera. + * This function sets the active camera to the given camera. */ this.setActiveCamera = function (c) { // pop the active camera off the stack. @@ -239,8 +239,8 @@ RDGE.cameraManager = function () { this.stack.push(c); }; - /* Get the active camera. - * The active camera always resides at the top of the stack. + /* Get the active camera. + * The active camera always resides at the top of the stack. */ this.getActiveCamera = function () { if (this.stack.length > 0) { @@ -250,14 +250,14 @@ RDGE.cameraManager = function () { } }; - /* Push a camera onto the stack. + /* Push a camera onto the stack. * The given camera becomes the active camera. */ this.pushCamera = function (c) { this.stack.push(c); }; - /* Pop a camera off the stack. + /* Pop a camera off the stack. * Returns the camera that was popped. * The next camera on the stack becomes active. */ diff --git a/js/helper-classes/RDGE/src/core/script/engine.js b/js/helper-classes/RDGE/src/core/script/engine.js index b2191197..96c3d502 100755 --- a/js/helper-classes/RDGE/src/core/script/engine.js +++ b/js/helper-classes/RDGE/src/core/script/engine.js @@ -36,21 +36,21 @@ var RDGE = RDGE || {}; RDGE.stateManager = function () { // a stack of states this.stateStack = []; - + // number of states on the stack this.stateTop = undefined; - + // the states of the context this.RDGEInitState = null; this.RDGERunState = null; - + this.currentState = function () { if(this.stateTop != undefined) return this.stateStack[this.stateTop]; - + return null; }; - + /* * Push new IRuntime state - engine executes the new state */ @@ -58,10 +58,10 @@ RDGE.stateManager = function () { if (state != null && typeof state.Init == 'function') { if(this.stateTop != undefined) this.stateStack[this.stateTop].LeaveState(); - + if(flags == undefined || flags != "noInit") state.Init(); - + this.stateTop = this.stateStack.push(state) - 1; } }; @@ -74,9 +74,9 @@ RDGE.stateManager = function () { if (state != null) { state.Shutdown(); } - + this.stateTop = this.stateTop > 0 ? this.stateTop - 1 : 0; - + if (this.stateStack[this.stateTop]) { this.stateStack[this.stateTop].ReInit(); } @@ -90,7 +90,7 @@ RDGE.stateManager = function () { this.PopState(); } }; - + this.tick = function (dt) { if (this.stateStack[this.stateTop] != null) { this.stateStack[this.stateTop].Update(dt); @@ -256,7 +256,7 @@ RDGE.Engine.prototype.init = function (userInitState, userRunState, canvasObject globalParamFuncSet = function (param) { this.data = param.data; this.type =param.type; - + this.set = function (v) { var len = this.data ? this.data.length : 0; for(var i=0;i */ /** -* This library contains functions for operating on 4x4 matrices. Any JS array -* containing at least 16 numeric components can represent a 4x4 matrix. +* This library contains functions for operating on 4x4 matrices. Any JS array +* containing at least 16 numeric components can represent a 4x4 matrix. * * For example, all of these are valid matrix construction methods: * ... @@ -39,15 +39,15 @@ POSSIBILITY OF SUCH DAMAGE. * var c = mat4.lookAt( [0, 0, 0], [1, 0, 0], [ 0, 1, 0 ] ); * var d = mat4.basis( [1, 0, 0], [0, 1, 0], [ 0, 0, 1 ] ); * -* This library is implemented assuming components are arranged -* contiguously in memory as such: +* This library is implemented assuming components are arranged +* contiguously in memory as such: * M = [ x0, x1, x2, x3, * y0, y1, y2, y3, * z0, z1, z2, z3, * w0, w1, w2, w3 ]; -* The translation components of a transformation matrix would be stored in -* w0, w1, w2, or at indices 12, 13, and 14 of the array, as is consistent -* with OpenGL. +* The translation components of a transformation matrix would be stored in +* w0, w1, w2, or at indices 12, 13, and 14 of the array, as is consistent +* with OpenGL. */ // RDGE namespaces var RDGE = RDGE || {}; @@ -81,7 +81,7 @@ RDGE.mat4.toCSSString = function (m, conversionConstant) { /** * RDGE.mat4.verify -* This function is provided for debugging purposes only. It is not recommended +* This function is provided for debugging purposes only. It is not recommended * to be used in performance critical areas of the code. */ RDGE.mat4.verify = function (m) { @@ -231,10 +231,10 @@ RDGE.mat4.angleAxis = function (angle, axis) { RDGE.mat4.lookAt = function (eye, at, up) { /* var w_axis = new RDGE.vec3(posVec.x, posVec.y, posVec.z); - + var z_axis = subVec3(targetVec, w_axis); z_axis.normalize(); - + var x_axis = crossVec3(upVec, z_axis); x_axis.normalize(); @@ -522,7 +522,7 @@ RDGE.mat4._adjoint = function (m) { */ RDGE.mat4.inverse = function (m) { // Calculate the 4x4 determinant - // If the determinant is zero, + // If the determinant is zero, // then the inverse matrix is not unique. var det = RDGE.mat4._det4x4(m); @@ -580,7 +580,7 @@ RDGE.mat4.transformPoint = function (m, v) { m[1] * x + m[5] * y + m[9] * z + m[13] * w, m[2] * x + m[6] * y + m[10] * z + m[14] * w, m[3] * x + m[7] * y + m[11] * z + m[15] * w]; - // 12 adds, 16 multiplies, 16 lookups. + // 12 adds, 16 multiplies, 16 lookups. }; /** @@ -589,7 +589,7 @@ RDGE.mat4.transformPoint = function (m, v) { RDGE.mat4.transformVector = function (m, v) { m = RDGE.mat4.inverse(m); var x = v[0], y = v[1], z = v[2], w = v.length >= 4 ? v[3] : 0.0; - // 12 adds, 16 multiplies, 16 lookups. + // 12 adds, 16 multiplies, 16 lookups. // transpose multiply return [m[0] * x + m[1] * y + m[2] * z + m[3] * w, m[4] * x + m[5] * y + m[6] * z + m[7] * w, diff --git a/js/helper-classes/RDGE/src/core/script/math/quat.js b/js/helper-classes/RDGE/src/core/script/math/quat.js index d243a7ba..d3a3db5c 100755 --- a/js/helper-classes/RDGE/src/core/script/math/quat.js +++ b/js/helper-classes/RDGE/src/core/script/math/quat.js @@ -33,9 +33,9 @@ POSSIBILITY OF SUCH DAMAGE. * RDGE.quat = {} * This library contains utility functions for operating on quaternions. * -- -* TODO: -* -need to add more helper functions for generating quaternions from -* other representations (i.e. - eulers, angle-axis). +* TODO: +* -need to add more helper functions for generating quaternions from +* other representations (i.e. - eulers, angle-axis). */ var RDGE = RDGE || {}; RDGE.quat = {}; diff --git a/js/helper-classes/RDGE/src/core/script/math/vec2.js b/js/helper-classes/RDGE/src/core/script/math/vec2.js index a003130d..e5c7df06 100755 --- a/js/helper-classes/RDGE/src/core/script/math/vec2.js +++ b/js/helper-classes/RDGE/src/core/script/math/vec2.js @@ -31,8 +31,8 @@ POSSIBILITY OF SUCH DAMAGE. /** * RDGE.vec2 = {} -* This library contains functions for operating on 2D vectors. -* A 2D vector can be any array containing at least 2 numeric components. +* This library contains functions for operating on 2D vectors. +* A 2D vector can be any array containing at least 2 numeric components. * All of the following are valid methods for declaring a RDGE.vec2: * var a = [0, 1]; * var b = RDGE.vec2.zero(); @@ -50,7 +50,7 @@ RDGE.vec2.string = function (v) { /** * RDGE.vec2.verify -* This function is provided for debugging purposes only. It is not recommended +* This function is provided for debugging purposes only. It is not recommended * to be used in performance critical areas of the code. */ RDGE.vec2.verify = function (v) { diff --git a/js/helper-classes/RDGE/src/core/script/math/vec3.js b/js/helper-classes/RDGE/src/core/script/math/vec3.js index 72662513..86d17e04 100755 --- a/js/helper-classes/RDGE/src/core/script/math/vec3.js +++ b/js/helper-classes/RDGE/src/core/script/math/vec3.js @@ -31,8 +31,8 @@ POSSIBILITY OF SUCH DAMAGE. /** * RDGE.vec3 = {} - * This library contains functions for operating on 3D vectors. Any JS array - * containing at least 3 numeric components can represent a 3D vector. + * This library contains functions for operating on 3D vectors. Any JS array + * containing at least 3 numeric components can represent a 3D vector. * * For example, all of these are valid RDGE.vec3 declarations: * var a = [0, 0, 1]; @@ -52,7 +52,7 @@ RDGE.vec3.string = function (v) { /** * RDGE.vec3.verify - * This function is provided for debugging purposes only. It is not recommended + * This function is provided for debugging purposes only. It is not recommended * to be used in performance critical areas of the code. */ RDGE.vec3.verify = function (v) { @@ -94,7 +94,7 @@ RDGE.vec3.translation = function (m) { }; /** -* RDGE.vec3.basisX = function( m ) +* RDGE.vec3.basisX = function( m ) * description : returns a vector containing the translation vector of m. */ RDGE.vec3.basisX = function (m) { @@ -102,7 +102,7 @@ RDGE.vec3.basisX = function (m) { }; /** -* RDGE.vec3.basisY = function( m ) +* RDGE.vec3.basisY = function( m ) * description : returns a vector containing the translation vector of m. */ RDGE.vec3.basisY = function (m) { @@ -110,7 +110,7 @@ RDGE.vec3.basisY = function (m) { }; /** -* RDGE.vec3.basisZ = function( m ) +* RDGE.vec3.basisZ = function( m ) * description : returns a vector containing the translation vector of m. */ RDGE.vec3.basisZ = function (m) { @@ -155,14 +155,14 @@ RDGE.vec3.random = function (min, max) { }; /** -* RDGE.vec3.xy +* RDGE.vec3.xy */ RDGE.vec3.xy = function (v) { return [v[0], v[1]]; }; /** -* RDGE.vec3.xz +* RDGE.vec3.xz */ RDGE.vec3.xz = function (v) { return [v[0], v[2]]; @@ -222,7 +222,7 @@ RDGE.vec3.plusEqualMul = function (a, b, s) { }; /** -* RDGE.vec3.scale +* RDGE.vec3.scale */ RDGE.vec3.scale = function (v, s) { if (s.length !== undefined && s.length >= 3) { @@ -264,7 +264,7 @@ RDGE.vec3.normalize = function (v) { }; /** -* RDGE.vec3.cross +* RDGE.vec3.cross */ RDGE.vec3.cross = function (a, b) { return [a[1] * b[2] - b[1] * a[2], @@ -273,7 +273,7 @@ RDGE.vec3.cross = function (a, b) { }; /** -* RDGE.vec3.dot +* RDGE.vec3.dot */ RDGE.vec3.dot = function (a, b) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; diff --git a/js/helper-classes/RDGE/src/core/script/math/vec4.js b/js/helper-classes/RDGE/src/core/script/math/vec4.js index 3c2d96e7..f273c835 100755 --- a/js/helper-classes/RDGE/src/core/script/math/vec4.js +++ b/js/helper-classes/RDGE/src/core/script/math/vec4.js @@ -30,8 +30,8 @@ POSSIBILITY OF SUCH DAMAGE. /** * RDGE.vec4 = {} -* This library contains functions for operating on 4D vectors. Any JS array -* containing at least 4 numeric components can represent a 4D vector. +* This library contains functions for operating on 4D vectors. Any JS array +* containing at least 4 numeric components can represent a 4D vector. * * For example, all of these are valid RDGE.vec4 declarations: * var a = [0, 0, 0, 1]; diff --git a/js/helper-classes/RDGE/src/core/script/objectManager.js b/js/helper-classes/RDGE/src/core/script/objectManager.js index cb9847e6..768768ff 100755 --- a/js/helper-classes/RDGE/src/core/script/objectManager.js +++ b/js/helper-classes/RDGE/src/core/script/objectManager.js @@ -37,18 +37,18 @@ RDGE.objectManager = function() { this.objects = []; this.numObjects = 0; this.freelist = []; - + this.reset = function() { this.objects = []; this.freelist = []; this.guidCounter = 0; } - + // validHandle this.validHandle = function(h) { return this.handleToIndex(h) != -1; } - + // handleToIndex this.handleToIndex = function(h) { var index = ( h >> 16 ) & 0xFFFF; @@ -58,35 +58,35 @@ RDGE.objectManager = function() { return -1; } - // handleToObject + // handleToObject this.handleToObject = function(h) { - var index = this.handleToIndex( h ); + var index = this.handleToIndex( h ); if( index != -1 ) { return this.objects[index]; } return null; } - + // add object this.addObject = function(ob) { var index = this.objects.length; if( this.freelist.length > 0 ) { - index = this.freelist.pop(); + index = this.freelist.pop(); } if( ++this.guidCounter >= 0xFFFF ) { // wrap the counter, zero is reserved for invalid handles. this.guidCounter = 1; } - ob.handle = ( index << 16 | ++this.guidCounter ); + ob.handle = ( index << 16 | ++this.guidCounter ); this.objects[index] = ob; - + return ob.handle; } - + // remove object - this.removeObject = function(h) { - var index = this.handleToIndex( h ); + this.removeObject = function(h) { + var index = this.handleToIndex( h ); if( index != -1 ) { if( this.objects[index].onremove != undefined ) { this.objects[index].onremove(); diff --git a/js/helper-classes/RDGE/src/core/script/particle.js b/js/helper-classes/RDGE/src/core/script/particle.js index 158807bb..1730e823 100755 --- a/js/helper-classes/RDGE/src/core/script/particle.js +++ b/js/helper-classes/RDGE/src/core/script/particle.js @@ -77,7 +77,7 @@ RDGE.particle = function (def, id) { // calculate the initial position in world space. this.pos = RDGE.mat4.transformPoint(spawnMatrix, this.pos); } - // all other values are assumed to be defined in local or world space depending on + // all other values are assumed to be defined in local or world space depending on // the particles worldSpace designation. var toRadians = Math.PI / 180.0; if (this.def.initialsize) { @@ -334,10 +334,10 @@ RDGE.particleBuffer = function (pdef, emitter, size) { var x, y, z, w; var p = this.particles[i]; var age = (p.age / p.lifespan); // normalized age - // combine frame number and age and store in w. - // to decode : - // frame = floor( w ); - // age = fract( w ); + // combine frame number and age and store in w. + // to decode : + // frame = floor( w ); + // age = fract( w ); var pw = Math.min(age, 0.999) + Math.floor(p.frame); if (age < 1.0) { // || (pdef.persist != undefined && pdef.persist == true)) { var px = p.pos[0]; @@ -747,7 +747,7 @@ RDGE.particleSys = function (addr) { var emin = emitter.pbuffer.bounds.min; var emax = emitter.pbuffer.bounds.max; - // calculate a bounds that fits all particles. + // calculate a bounds that fits all particles. if (emin[0] < bmin[0]) { bmin[0] = emin[0]; } if (emin[1] < bmin[1]) { bmin[1] = emin[1]; } if (emin[2] < bmin[2]) { bmin[2] = emin[2]; } diff --git a/js/helper-classes/RDGE/src/core/script/precompiled.js b/js/helper-classes/RDGE/src/core/script/precompiled.js index 22b82adb..59edd395 100755 --- a/js/helper-classes/RDGE/src/core/script/precompiled.js +++ b/js/helper-classes/RDGE/src/core/script/precompiled.js @@ -77,11 +77,11 @@ RDGE.rdgeGlobalParameters = "u_light3Spec": { 'type': 'vec4', 'data': [1.0, 1.0, 1.0, 1.0] } }, "colMap": { 'type': 'tex2d', 'data': "assets/images/white.png" }, - //"envMap": {'type': 'tex2d', 'data': null}, - //"normalMap": {'type': 'tex2d', 'data': null}, - //"glowMap": {'type': 'tex2d', 'data': "assets/images/black.png"}, - //"u_shadowDepthMap": {'type': 'tex2d', 'data': null}, - //"u_depthMap": {'type': 'tex2d', 'data': null}, + //"envMap": {'type': 'tex2d', 'data': null}, + //"normalMap": {'type': 'tex2d', 'data': null}, + //"glowMap": {'type': 'tex2d', 'data': "assets/images/black.png"}, + //"u_shadowDepthMap": {'type': 'tex2d', 'data': null}, + //"u_depthMap": {'type': 'tex2d', 'data': null}, "u_matAmbient": { 'type': 'vec4', 'data': [1.00, 1.00, 1.00, 1] }, "u_matDiffuse": { 'type': 'vec4', 'data': [1.0, 1.0, 1.0, 1.0] }, "u_matSpecular": { 'type': 'vec4', 'data': [1.0, 1.0, 1.0, 1.0] }, diff --git a/js/helper-classes/RDGE/src/core/script/renderUtils.js b/js/helper-classes/RDGE/src/core/script/renderUtils.js index ed3b2cfa..a25b3dec 100755 --- a/js/helper-classes/RDGE/src/core/script/renderUtils.js +++ b/js/helper-classes/RDGE/src/core/script/renderUtils.js @@ -109,10 +109,10 @@ RDGE.renderUtils.createBox = function () { return prim; }; -// +// // makeSphere // -// Create a sphere with the passed number of latitude and longitude bands and the passed radius. +// Create a sphere with the passed number of latitude and longitude bands and the passed radius. // Sphere has vertices, normals and texCoords. Create VBOs for each as well as the index array. // Return an object with the following properties: // @@ -121,7 +121,7 @@ RDGE.renderUtils.createBox = function () { // vertexObject WebGLBuffer object for vertices // indexObject WebGLBuffer object for indices // numIndices The number of indices in the indexObject -// +// RDGE.renderUtils.makeSphere = function (ctx, radius, lats, longs) { var geometryData = []; var normalData = []; diff --git a/js/helper-classes/RDGE/src/core/script/renderer.js b/js/helper-classes/RDGE/src/core/script/renderer.js index 6ad20e57..cac0c33f 100755 --- a/js/helper-classes/RDGE/src/core/script/renderer.js +++ b/js/helper-classes/RDGE/src/core/script/renderer.js @@ -635,7 +635,7 @@ RDGE.rdgeDefaultShaderDefintion = { // 'cullFace': "BACK" // } // }] -// +// // } // }; @@ -669,7 +669,7 @@ RDGE.rdgeDefaultShaderDefintion = { // 'cullFace': "BACK" // } // }] -// +// // } // }; @@ -717,7 +717,7 @@ RDGE.rdgeDefaultShaderDefintion = { // 'screenQuad': [{ // 'vshader': 'screenQuadVShader', // 'fshader': 'screenQuadFShader', -// +// // // attributes // 'attributes': { // 'a_pos': { 'type': 'vec3' }, @@ -764,7 +764,7 @@ RDGE.rdgeDefaultShaderDefintion = { // 'params': // { // }, -// +// // // render states // 'states': // { @@ -778,7 +778,7 @@ RDGE.rdgeDefaultShaderDefintion = { // } // }; -/* +/* * Gaussian blur shader */ // currently not used in Ninja @@ -816,7 +816,7 @@ RDGE.rdgeDefaultShaderDefintion = { // } // }; -/* +/* * Screen space ambient occlusion shader */ // currently not used in Ninja @@ -939,13 +939,13 @@ RDGE.rdgePrimitiveDefinition = function () { /* * The type of primitive * supported types are - * renderer.POINTS - * renderer.LINES - * renderer.LINE_LOOP - * renderer.LINE_STRIP - * renderer.TRIANGLES - * renderer.TRIANGLE_STRIP - * renderer.TRIANGLE_FAN + * renderer.POINTS + * renderer.LINES + * renderer.LINE_LOOP + * renderer.LINE_STRIP + * renderer.TRIANGLES + * renderer.TRIANGLE_STRIP + * renderer.TRIANGLE_FAN */ this.type = RDGE.rdgeConstants.TRIANGLE_STRIP; diff --git a/js/helper-classes/RDGE/src/core/script/scenegraph.js b/js/helper-classes/RDGE/src/core/script/scenegraph.js index 92fe98c8..789f69e5 100755 --- a/js/helper-classes/RDGE/src/core/script/scenegraph.js +++ b/js/helper-classes/RDGE/src/core/script/scenegraph.js @@ -74,8 +74,8 @@ RDGE.SceneGraph = function (scene) { this.bckTypes = RDGE.rdgeConstants.categoryEnumeration; this.renderList = new Array(this.bckTypes.MAX_CAT); - this.renderList[this.bckTypes.BACKGROUND] = []; //BACKGROUND - this.renderList[this.bckTypes.OPAQUE] = []; //OPAQUE + this.renderList[this.bckTypes.BACKGROUND] = []; //BACKGROUND + this.renderList[this.bckTypes.OPAQUE] = []; //OPAQUE this.renderList[this.bckTypes.TRANSPARENT] = []; //TRANSPARENT this.renderList[this.bckTypes.ADDITIVE] = []; //ADDITIVE this.renderList[this.bckTypes.TRANSLUCENT] = []; //TRANSLUCENT @@ -170,7 +170,7 @@ RDGE.SceneGraph = function (scene) { // 'technique': "depthMap", // 'outputs':[{ 'name':"u_depthMap", 'type':"target", 'width':1024, 'height':1024, 'mips':false }], // 'geometrySet':"ALL", - // 'children' : + // 'children' : // [ // // get the normals in view space // { @@ -178,10 +178,10 @@ RDGE.SceneGraph = function (scene) { // 'shader': RDGE.rdgeViewSpaceNormalsShader, // 'outputs':[{ 'name':"u_normalsRT", 'type':"target", 'width':1024, 'height':1024, 'mips':false }], // 'geometrySet':"ALL", - // 'children' : + // 'children' : // [ // // techniques requiring depth and normals in view space go here - // + // // // SSAO map // { // 'name':"SSAO", @@ -198,7 +198,7 @@ RDGE.SceneGraph = function (scene) { // } // ] // }, - // + // // // final pass must always be last in the list // { // // this final pass has no output, its shader, however, will render its input (the previous pass's output) @@ -374,7 +374,7 @@ RDGE.SceneGraph = function (scene) { // get the distance from object to cameras' 'z' plane item.depth = RDGE.vec3.dot(look, toObject); - // walk down the list of object moving the current item into place until the comparison fails + // walk down the list of object moving the current item into place until the comparison fails var i = len - 1; var temp = null; for (; i > 0; --i) { @@ -648,7 +648,7 @@ RDGE.SceneGraph.prototype.BuildBVHHelper = function (node) { curNode.world = RDGE.mat4.mul(curNode.local, parentXfrm); if (bbox) { - // update bounding box position + // update bounding box position curNode.bbox_world = bbox.transform(curNode.world); } @@ -805,8 +805,8 @@ RDGE.SceneGraph.prototype.GetBBoxForNode = function (tr) { RDGE.SceneGraph.prototype._RenderDFHelper = function (renderer, renderProc, node, forceThisProc) { renderList = []; - renderList[this.bckTypes.BACKGROUND] = []; //BACKGROUND - renderList[this.bckTypes.OPAQUE] = []; //OPAQUE + renderList[this.bckTypes.BACKGROUND] = []; //BACKGROUND + renderList[this.bckTypes.OPAQUE] = []; //OPAQUE renderList[this.bckTypes.TRANSPARENT] = []; //TRANSPARENT renderList[this.bckTypes.ADDITIVE] = []; //ADDITIVE renderList[this.bckTypes.TRANSLUCENT] = []; //TRANSLUCENT @@ -959,7 +959,7 @@ RDGE.SceneGraph.prototype.exportJSON = function () { // return 'replaced'; // } // } - // + // // if(value && value.baseURI === undefined && typeof value === "object" && !value.lookUpName) //