Advertisement

Storing a model in video ram

Started by April 01, 2002 04:25 AM
2 comments, last by Alex2k 22 years, 10 months ago
Hi, I wrote a program that loads up models form file (http://www.geocities.com/qwerty2qwerty20002000) and it works but it''s a bit slow!....to do it, I store all the triangles informations in a pointer and every program cycle it reads it all again with a for cycle. I was wondering whehther I could store it in my video ram or at least make opengl compile it right after I load it up to gather an higher frame rate. Can I use something like glNewList to do it? many thnx
Are you using vertex arrays? If so, your performance shouldn''t be too slow.

- Pete


Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
Advertisement
well, I use a pointer where I put all the triangels verteces as well as facet normals.......what do u mean with your performance should be too slow? now on my geforce1 I get ~15fps with big models....would I get an higher frame rate by using an opengl list?
thnx
Are you using glVertex calls? If so, read up (use google) on opengl vertex arrays.


Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions

This topic is closed to new replies.

Advertisement