Ok I have 2 MAJOR questions. First, If I create a scene and within the scene I have an assortment of objects. I Do a simply test to see if the objects are visable, at the time of view. If not, then they are simply not drawn. BUT, if i dont draw them, then any subsequent movements of the observer (moving the screen around) are not passed to the object, there fore the object never moves when the scene moves. (If i understand this correctly). So is there a way to move an object without rendering it, so objects culled from the drawing field are also moved even though there not drawn???
Secondly. I have a scene that i have created, that uses a set of vectors (similar to the normals, but not as many, this way I can cut out collisions that i know cant happen) To check for collisions within the scene. Now I am guessing that when the scene is rotated by the view of the player, that the Vectors for the collisions would also have to be rotated. Is that correct? Because of the whole model/view duality, that the camera dosnt move, the world does?? Right. So i would have to also rotate the vectors, but not translate them, because the are only stateing a direction. Or would i have to translate them also?? I am SOOO confused.
Edit:
Here is some psydo code to help.
for(int a=0; a<NumberOfItems; a++)
{
bool DrawItem;
DrawItem =ItemVisable(); //Check visablity
if(DrawItem == true)
{
glPushMatrix();
//rotations & translations here
//Draw Items here using vertex arrays
glPopMatrix();
}
}
But i need to be able to move the objects even if there not seen. And im not sure how to put the Items VERTS through the matrix without drawing them??
[This message has been edited by LostInTheWoods (edited 08-05-2002).]