View Full Version : is possible to split just the indices?
05-24-2011, 08:50 AM
I want to draw a lot of vertices (50k - 5000k) with drawElements. the problem is indices buffer only allow 16-bit numbers.
is possible to split just the indices? so i just have one vertices buffer, and more than one indices buffer to draw the vertices.
if possible, how to draw a lot of vertices with many indices?
if not, what is the better way to draw that? i am currently do is splitting the vertices into a smaller vertices buffer, so the total of elements less than 36k, then re-index.
06-20-2011, 06:43 PM
You definitively can split your mesh into separate small segments.
I had noticed that you mentioned 5000k, are you working on museum's object? Why do you need that much triangles? Loading 5000k in a native 3D application is also pretty challenging.
As far as I know, Firefox will failed to render anything above approx 500k of triangles (tested having 650k, Firefox just stopped working), it'll simply run out of memory. But to keep in mind I'm also using Web worker to process the mesh.
06-20-2011, 06:46 PM
Woops, my bad for not reading the question clearly, You can seperate an objects to multiple segment but I believe that they are required to store the vertices for every segment as well.
But if you are loading only 1 or 2 3D objects, the delay in spliting indexes and vertices shouldn't be too noticeable. Or you can also try drawArray that I had suggested previously for anything below 500k of triangles.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.