Buffer Out Of Bounds Errors in Android JNI with Filament #8869
Unanswered
dolfancole
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to move some code from the Android/Kotlin side of my app over to a JNI layer. Unfortunately, I'm running into issues with just setting the index and vertex buffers. I've created and configured the engine, view, scene, camera, renderer, etc., the exact same way I had them on the Kotlin side. And I'm also trying to create the buffers in the exact same way -- modified as per examples and sample code posted. This is the code I have for creating the buffers ('vertices' is a simple vector of four float3 elements).
The error I get is that there's an out of bounds detected.
a vertex attribute index out of boundary is detected. Skipping corresponding vertex attribute. buf=0x7054117c4050
Out of bounds vertex attribute info: clientArray? 0 attribute 0 vbo 11 allocedBufferSize 48 bufferDataSpecified? 1 wantedStart 0 wantedEnd 745164
Can anyone point me in the direction of what the issue with this could be? For reference, I'm using tagged release v.1.57.1.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions