OpenGL ES 2.0: Filtering Polygons within VBO
        Posted  
        
            by 
                Bunkai.Satori
            
        on Game Development
        
        See other posts from Game Development
        
            or by Bunkai.Satori
        
        
        
        Published on 2011-02-17T19:29:13Z
        Indexed on 
            2011/02/17
            23:34 UTC
        
        
        Read the original article
        Hit count: 646
        
Say, I send 10 polygon pairs (one polygon pair == one 2d sprite == one rectangle == two triangles) into OpenGL ES 2.0 VBO. The 10 polygon pairs represent one animated 2D object consisting of 10 frames.
The 10 frames, of course, can not be rendered all at the same time, but will be rendered in particular order to make up smooth animation.
Would you have an advice, how to pick up proper polygon pair for rendering (4 vertices) inside Vertex Shader from the VBO? Creating separate VBO for each frame would end up with thousands of VBOs, which is not the right way of doing it.
I use OpenGL ES 2.0, and VBOs for both Vertices and Indices.
© Game Development or respective owner