-
Notifications
You must be signed in to change notification settings - Fork 22
Is ShortBuffer sufficient to store so many vertices? #6
Comments
That's true! Yes, this code won't render models with that many vertices. I'll change the documentation to make that clear. Thanks! |
Maybe I met the same problem. PolySampleAndroid keeps stopping when I changed the ASSET_ID to "9ycLAR71SmR" and there was a "ArrayIndexOutOfBoundsException" for the code "vertices.get(index)". LogCat: 03-05 16:22:00.522 4891-4910/com.example.polysample D/PolySample: Starting to download data files, # files: 2 |
Have you ever think about that the shortbuffer may cause overflow problems?
If one obj file has excessive faces and vertices, suppose 150000 vertices, the shortbuffer will be insufficient to store so many indices, so that some will be left out. If you try specific ASSET_IN, the problem will occur.
private static final String ASSET_ID = "dOw_r7NaZpT";
The text was updated successfully, but these errors were encountered: