gsplat.js
gsplat.js copied to clipboard
this.passes is not iterable
I integrate gsplat in a nuxt project and found out that, as soon as you define parameters on the renderer like this:
renderer = new SPLAT.WebGLRenderer(canvas.value, {
antialias: true,
// Increase the size of the vertex buffer
vertexBufferSize: 1000000, // Adjust this value as needed
});
this error happens:
index.js?t=1728752584035&v=203ac0ae:1 Uncaught TypeError: this.passes is not iterable
at N.initialize (index.js?t=1728752584035&v=203ac0ae:1:84903)
at N.render (index.js?t=1728752584035&v=203ac0ae:1:85101)
at Y.render (index.js?t=1728752584035&v=203ac0ae:1:191039)
at animate (SplatViewer.vue:30:12)
Actually this happens as soon as there are curly braces:
renderer = new SPLAT.WebGLRenderer(canvas, {});
I found out about this, because when loading a splat I always get the warning :
GL_INVALID_OPERATION: Vertex buffer is not big enough for the draw call
In the example folder I found an example that adds above mentioned params.
Any idea why this is happening? Is it a "speciality" of the Nuxt integration?