Currently I am in the middle of development of a game using OpenGL. Now I have started to realize that the fps of my game is not so good. I did not consider any display list or any form of optimizing techniques other than the algorithm of collision detection of my game( it causes the app to get slower).
Suggest me the techniques which can help me increase the fps. I thought of reading about display lists, but I found out that it is depreciated and more over it is used to create static graphics and my game is not a static one. I don’t have knowledge of any other techniques.
Submit geometry using VBO.
Try to reduces state changes.
Example, avoid things like use tex1, draw, use tex2 draw, use tex1 draw, use tex3, draw : try to pack together all stuff needing tex1 together.
Then it’s possible you could get much higher framerates by using VBOs + vertex arrays. Without knowing the current techniques you are using, or seeing some code, then it’s hard to suggest what you could do to improve.
I started making game using the basic OpenGL techniques and now I want to incorporate textures into my game and I do not know how?
I tried browsing it on internet and got no help. Basically what I want is simple 2d texture (decal type) on my simple 2d objects. Some are moving and some are stationary. Can any of you give me a simple code for such kind of 2d texture using any format of file. I am developing application on visual c++ 2005 express edition and programming using glut only avoiding any assembly language programming dealing with the windows directly.
Surpising you found nothing. This is both simple and very old.
Read any tutorial on GL textures.
You just need to draw textured quads.
Use any image loading library such as openIL, freeimage, libpng, etc.