Some code would be great, yes.
It sounds though, as your displaylist compilation is screwed up.
did you do it roughly along these lines:
Rendering:
int baseidx = glGenLists(itemcount);
for (int i=0;i < itemcount;++i)
{
glNewList(baseidx+i, GL_COMPILE);
// Render the item
glEndList();
}
...
Drawing:
for (int i=0;i < itemcount;++i)
{
glCallList(baseidx+i);
}
Rendering:
int baseidx = glGenLists(itemcount);
for (int i=0;i < itemcount;++i)
{
glNewList(baseidx+i, GL_COMPILE);
// Render the item
glEndList();
}
...
Drawing:
for (int i=0;i < itemcount;++i)
{
glCallList(baseidx+i);
}
To copy to clipboard, switch view to plain text mode
You can of course also generate the list for each item separately. But you would need to save each index then.
Cheers
Johannes
Bookmarks