Dad72 Posted February 28, 2015 Share Posted February 28, 2015 Hi, Since the last update 2.1 I have this error (see image) The error comes from this function (line 11) DirectionalLight.prototype.setShadowProjectionMatrix = function (matrix, viewMatrix, renderList, useVSM) { var orthoLeft = Number.MAX_VALUE; var orthoRight = Number.MIN_VALUE; var orthoTop = Number.MIN_VALUE; var orthoBottom = Number.MAX_VALUE; var orthoNear = Number.MAX_VALUE; var orthoFar = Number.MIN_VALUE; var tempVector3 = BABYLON.Vector3.Zero(); var activeCamera = this.getScene().activeCamera; for (var meshIndex = 0; meshIndex < renderList.length; meshIndex++) { var boundingBox = renderList[meshIndex].getBoundingInfo().boundingBox; for (var index = 0; index < boundingBox.vectorsWorld.length; index++) { BABYLON.Vector3.TransformCoordinatesToRef(boundingBox.vectorsWorld[index], viewMatrix, tempVector3); if (tempVector3.x < orthoLeft) orthoLeft = tempVector3.x; if (tempVector3.y < orthoBottom) orthoBottom = tempVector3.y; if (tempVector3.x > orthoRight) orthoRight = tempVector3.x; if (tempVector3.y > orthoTop) orthoTop = tempVector3.y; if (tempVector3.z < orthoNear) orthoNear = tempVector3.z; if (tempVector3.z > orthoFar) orthoFar = tempVector3.z; } } var orthoWidth = Math.max(Math.abs(orthoRight), Math.abs(orthoLeft)) * this.shadowOrthoScale; var orthoHeight = Math.max(Math.abs(orthoTop), Math.abs(orthoBottom)) * this.shadowOrthoScale; var orthoDepth = Math.max(Math.abs(orthoNear), Math.abs(orthoFar)) * this.shadowOrthoDepthScale; BABYLON.Matrix.OrthoOffCenterLHToRef(-orthoWidth, orthoWidth, -orthoHeight, orthoHeight, useVSM ? -orthoDepth : activeCamera.minZ, orthoDepth, matrix); }; Quote Link to comment Share on other sites More sharing options...
davrous Posted February 28, 2015 Share Posted February 28, 2015 Hi!deltakosh is currently completely refactoring our shadows engine for better visual quality and performance. He hasn't finished it yet.In the meantime please stick to 2.0.Bye,David iiceman and Temechon 2 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted February 28, 2015 Author Share Posted February 28, 2015 I point to help. Is not that what we're supposed to do to help. or should we just test the stable version and never report bugs? Beta and Alpha version are made to be tested, right? I'm not complaining Davrous, I point to help. I am aware that 2.1 is not complete. Quote Link to comment Share on other sites More sharing options...
davrous Posted March 1, 2015 Share Posted March 1, 2015 Of course, you can test. We need tests!I'm just saying that for your product, if you want it to work in the meantime, use 2.0.You don't have to be that nervous Quote Link to comment Share on other sites More sharing options...
Dad72 Posted March 1, 2015 Author Share Posted March 1, 2015 Yes, yes, of course. but I am developing locally, so I have no problem. I agree that the use of a final product, I must use stable versions. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 2, 2015 Share Posted March 2, 2015 Hey Dad!! thanks for your help..could you let me know more precisely where do you get this error? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 2, 2015 Share Posted March 2, 2015 Hum I think I found the issue Thank you for your report Dad72 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.