Archived

This topic is now archived and is closed to further replies.

WhatEver

Do any of you un-pack mesh data?

Recommended Posts

WhatEver    125
Before I can use glDrawElements, I have to un-pack shared data(depending what model file I open). This way each element can be read by the vertex indices, since you''re only aloud to pass one set of indices through glDrawElements. With huge models this takes up large amounts of space. Does everybody who uses glDrawElements do this? It''s the only way I can see glDrawElements working. I have a function that packs data too, but I don''t know of a way other than using glVector3fv...and etc to use them.

Share this post


Link to post
Share on other sites
WhatEver    125
In case you don''t understand what I mean by data, I''m talking about pointers to: colors, normals, uv texture coords and vertices. In order for the element to work, as far as I know, you have to expand all shared data types.

Share this post


Link to post
Share on other sites