-
Drawing many cubes
Hi guys,
So I've been struggling trying to figure out what is the best way to plot many cubes. I basically have a scene that needs to draw anywhere between 10,000 and 500,000 cubes. These cubes are identical in size and shape, but will have different color and later on I'd like them to have a different texture on surface.
I tried doing vertex arrays, but that get's slow once I get passed 50,000 cubes.
I also used VBO's, but the same happens.
Currently I'm trying to figure out this geometry instancing business, but I can't figure out why nothing will draw. I haven't been able to find a simple example of geometry instancing, but I would like to know if this is a right approach?
Also please don't ask me why I'm drawing so many cubes, since the application in question is used to display some algorithm results for debugging purposes and drawing many cubes is exactly what I a need.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules