Jump to content

Error for 3.0 on Android


Hersir
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...