Cloning

The reusability of vertex data, cloning if you will, is what I am after.

Given: Vertex Data with positions and normals of one 3d object ( cube)
How do I render in 1 frame:
many cubes, in different positions, and perhaps in different colors.

Or think of Chess…
I have the vertex data for a pawn & I want to place 12 of them across a chess board.

Thanks
Rick Tschudin

Put your positions and normals into a VBO.
Set your modelview matrix for the first instance. Draw.
Set your modelview matrix for the second instance. Draw.
Repeat as needed.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.