Hello all,
I am rewrighting a small engin that I did some time ago, any way the reason that I gave up on the first vertion was that I did not have a good idea about how the data should be stored and the project got out of hand, any way I am trying to come up with a really good data structure. My engin will manly be for outside seenes and scientific visulation (not nesearlyl games but it will have dinamic seens) This is my idea any input would be helpfull
Obj class
{
int IDNumber
int obj_type // 0 == Display List. 1 == vertex array
int Display_List_ID // 0 if vertex array uesed
/* all the vertex array stuff NULL if Display Lists */
GLubyte * vertex
… ect
float location[3]
float boundary_box[24]
int Texture ID
}
The then the World class would look somthing like this as far as data goes
class WORLD
{
CAMERA view1
list of objects // this is a just a simple list that holds all the objects in the world
varues other glodal data eg. textures
then a OCTREE that holds the world data( A tree node simple has an array of pointer to a object node)
}
Any way that is white I thought up last night if this is compleatly off the wall could you give me some ideas that might point me in the right direction.
Thanks for your time
–Validus–