I have a blender obj. file in an OpenGL application. I have also added a camera so that it will move in around that object (it's a building, so it's pretty large). The frame rate on it is awful.
Why is it slow and/or how can I make it faster?
void camera (void) {
glRotatef(xrot,1.0,0.0,0.0);
glRotatef(yrot,0.0,1.0,0.0);
glTranslated(-xpos,-ypos,-zpos); }
This is just my simple camera class. Just in case it helps.
There are some reasons your code might be slow:
After all you've a lot of optimizations to do. I would start with optimizing my render pipeline and remove the fixed function pipeline and start to use shaders and vertex-buffers.