thank to all your replies, so you all suggest to use poly,ok, that''s good, i''ll use displ list when i''ll have more objetcs, for now i''m only loading vertex and textures from files and displaying them, supposing i''ll get to create N human figures(for example) i''ll make a "load" method which create the display list with all objetcts and then draw them when necessary...
only a thing i didn''t understand:
James trotter: you told me to use generate list("name")
which obviously is glGenLists(number_of_lists)
but can i create list by names?
or you suggest to do
unsigned int Man=glGenLists(1);
and this way for each objecT?
thanks again!!
There aren''''t problems that can''''t be solved with a gun...
[newbye] how many glbegin/end?
Oh, I''m sorry... It was late when I posted 
The only way to do it is the way you did:
unsigned int Man=glGenLists(1);

The only way to do it is the way you did:
unsigned int Man=glGenLists(1);
i have another question
now i loaded objects from file into a display list (1 list length 1 for each object)
and in the "renderscene" i do
for 1 to nobjects
glCallList(Obj.displist);
this way is better than i did before?
now: i still need to have the vertex list stored or may i free it up?
thanks everybody again!
There aren''''t problems that can''''t be solved with a gun...
now i loaded objects from file into a display list (1 list length 1 for each object)
and in the "renderscene" i do
for 1 to nobjects
glCallList(Obj.displist);
this way is better than i did before?
now: i still need to have the vertex list stored or may i free it up?
thanks everybody again!

There aren''''t problems that can''''t be solved with a gun...
There aren''t problems that can''t be solved with a gun...
Much faster than before!
You can delete the vertices that you loaded from the file, because everything will be lying on the graphics card memory, after you create the display list...
You can delete the vertices that you loaded from the file, because everything will be lying on the graphics card memory, after you create the display list...
ok, learned a new thing then 
another question to improve my knowledge: where can i find info on commands like
glMaterial
glColor
glEnable(something)
and so on?
opengl.org ?
thanks!
There aren''''t problems that can''''t be solved with a gun...

another question to improve my knowledge: where can i find info on commands like
glMaterial
glColor
glEnable(something)
and so on?
opengl.org ?
thanks!
There aren''''t problems that can''''t be solved with a gun...
There aren''t problems that can''t be solved with a gun...
Type "glMaterial" in a search engine and you'll find zillions of sites wth the Opengl spec. If you have the money and are serious about opengl, get the red book and the blue book and you'll have all that in print.
Or use these links:
Blue book:
http://www.eecs.tulane.edu/www/graphics/doc/OpenGL-Man-Pages/opengl_index_spec.html
Red Book:
http://fly.cc.fer.hr/~unreal/theredbook/
Or just use the opengl.org links section...
[edited by - Keermalec on May 23, 2003 12:37:06 PM]
Or use these links:
Blue book:
http://www.eecs.tulane.edu/www/graphics/doc/OpenGL-Man-Pages/opengl_index_spec.html
Red Book:
http://fly.cc.fer.hr/~unreal/theredbook/
Or just use the opengl.org links section...
[edited by - Keermalec on May 23, 2003 12:37:06 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement