Original Post
I have one vertex array for each movable object in my world. I''m pondering on how you go about transforming them, since each object is in object space, and not world space. As it is now, I do:
for_each(object)
{
Translate(objectorigin)
SetUpVertexNormalTCPointersForThisArray()
glDrawElements()
UnTranslate(objectorigin)
}
It just seems a bit inefficient to do this 50+ times each frame. Is there a better way to do it, perhaps? Or am I off completely? (Wouldn''t be the first time
)
And also, is it best to have one array for each object, or fit it all into one large array and use offsets instead? Are the pointer setup operations expensive?
Thanks!