graphics - What is the most efficient way to draw voxels (cubes) in opengl? -


I want to draw voices using opengll but it seems that it is not supported. I have created a cube drawing function that has 24 upper (four corners of each face), but when you pull 2500 cubes the frame rate falls. I was hoping that there was a better way. Ideally I would just like to send the position, edge size and color to the graphics card. I'm not sure if I can do this by using GLSL or Vertex Shader to compile the instructions as part of the piece of piece.

I searched Google and found out about point sprites and billboard sprites (the same thing?). Can the cube be used as a quick drawing option? If I use 6, for every face, it looks like this will send very little information to the graphics card and hopefully I get a better frame rate.

Another thought maybe I call several cubes a glove?

Perhaps a better way I do not know completely? Any help is appreciated. Attracting the vocals with cubes is almost always the wrong way (exceptional case is re-tracing).


Comments