Hersir Posted April 19, 2017 Share Posted April 19, 2017 Hi found error using 3.0 version on android and incremental loading babylon.js:9119 Uncaught TypeError: this._gl.vertexAttribDivisor is not a function at Engine._bindVertexBuffersAttributes (babylon.js:9119) at Engine.recordVertexArrayObject (babylon.js:9133) at Geometry._bind (babylon.js:42336) at Mesh._renderWithInstances (babylon.js:24450) at Mesh._processRendering (babylon.js:24459) at Mesh.render (babylon.js:24547) at SubMesh.render (babylon.js:26311) at Function.RenderingGroup.renderSorted (babylon.js:19730) at RenderingGroup.renderTransparentSorted (babylon.js:19709) at RenderingGroup.render (babylon.js:19685) at RenderingManager.render (babylon.js:19472) at Scene._renderForCamera (babylon.js:22125) at Scene._processSubCameras (babylon.js:22181) at Scene.render (babylon.js:22336) at Engine._renderLoop (babylon.js:8695) Galaxy Tab 3 Android version 4.4.2 Works fine with babylonjs 2.5. Will try to investigate more Quote Link to comment Share on other sites More sharing options...
Hersir Posted April 19, 2017 Author Share Posted April 19, 2017 Found source of error. const copy = mesh.createInstance(`copy_${current}`); copy.parent = mesh.parent; copy.setAbsolutePosition(mesh.getAbsolutePosition()); copy.rotation = mesh.rotation.clone(); I copied loaded mesh 30x times. Looks like using incremental loading crush something in createInstance. Could be related to: Should I wait before creating instances? Right now I do it on SceneLoader callback. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 19, 2017 Share Posted April 19, 2017 Yep as you are using incremental download you have to wait for mesh.isReady() before creating the instance Hersir 1 Quote Link to comment Share on other sites More sharing options...
Hersir Posted April 20, 2017 Author Share Posted April 20, 2017 @Deltakosh Thanks for feedback. I should just check it inside registerBeforeRender ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 20, 2017 Share Posted April 20, 2017 correct 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.