Dad72 Posted February 27, 2014 Share Posted February 27, 2014 I have a error in the console that i don't understand. What is this error? Error in Google Chrome 256 WebGL: INVALID_OPERATION: drawElements: attribs not setup correctly babylon.js:2WebGL: too many errors, no more errors will be reported to the console for this context.this function :BABYLON.Engine.prototype.draw = function (useTriangles, indexStart, indexCount) { this._gl.drawElements(useTriangles ? this._gl.TRIANGLES : this._gl.LINES, indexCount, this._gl.UNSIGNED_SHORT, indexStart * 2);};Or(function() {with (this[2]) {with (this[1]) {with (this[0]) {return function(event) {SelectedMesh("Modeles/Rabbit/", "Modeles", "Rabbit.babylon");};...}}}})Error In Firfox : UnknownError ...){BABYLON.Camera.call(this,name,position,scene);this.cameraDirection=new BABYLON...babylon.js (ligne 2) UnknownError ....forceWireframe,true);if(this._reusable){this._currentRenderTextureInd=(this._cu... I did not have this problem with previous versions . Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 27, 2014 Share Posted February 27, 2014 Should come from your side. Everything is working on the website or on my computers Quote Link to comment Share on other sites More sharing options...
Dad72 Posted February 27, 2014 Author Share Posted February 27, 2014 Yes I managed to find the problem. If i wrote:function init(CheminModeles, Fichier, Name){ engine = new BABYLON.Engine(container, true); scene = new BABYLON.Scene(engine); BABYLON.SceneLoader.ImportMesh(Name, CheminModeles, Fichier, scene, function (newMeshes, particleSystems, skeletons){ modele = newMeshes[0]; }); } function SelectedMesh(chemin, dossier, meshe){ if(modele){ modele.dispose(); } init(CheminModeles, Fichier, Name);}I had some errors because of modele = newMeshes[0]; if i delete : modele = newMeshes[0];and if(modele) { modele.dispose(); } not error. I don't know why. 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.