Advertisement

Stange things happened with openGL (i need help!)

Started by December 25, 2001 09:28 AM
1 comment, last by ironhell3 23 years, 2 months ago
Hello, i am a beginner openGL programmer and i experience the following effects: 1) the rotation speed in fullscreen and windowed modes are a lot different.Is there a way to keep both speeds the same? 2) i am coding a demo using openGL at first i want to show some text, then clear the text and show another one,then clear the second text and draw a textured polygon (this is my code glTranslatef(0.0f,0.0f,-18.0f); int a=2; static int scene=0; static DWORD change=GetTickCount()+5000; if (change < GetTickCount()) { change+=5000; scene++; } switch(scene) { case 0:{}break; // case 0:{PlaySound("Data/mitsos.wav", NULL, SND_SYNC);}break; case 1:{text1();}break; case 2:{text2();}break; case 3:{glRotatef(rquad,0.4f,0.7f,0.8f);triangle1();glTranslatef(-3.0f,0.0f,0.0f);triangle1();glTranslatef(6.0f,0.0f,0.0f);triangle1();}break; case 4:{glRotatef(rquad,0.4f,0.7f,0.8f);triangle1();glTranslatef(-3.0f,0.0f,0.0f);triangle1();glTranslatef(6.0f,0.0f,0.0f);triangle1();}break; case 5:{glRotatef(rquad,0.4f,0.7f,0.8f);triangle1();glTranslatef(-3.0f,0.0f,0.0f);triangle1();glTranslatef(6.0f,0.0f,0.0f);triangle1();}break; default:{glTranslatef(0.0f,0.0f,6.0f);glRotatef(rquad,1.0f,0.2f,0.1f);texture1();} } The problem is that some times the textured polygon [ texture1(); ] just doesn''t showing!!!.Most of the times i first run my demo 2 or three times, and then the polygon appears!!! How can i fix that? 3)when i use PlaySound after the "}" (in order to keep the sound playing all the time) the color of my polygons changes(!) or something like that. I can''t describe it very good. Any idea? Thanks for your time.....
i am just replying to keep this topic alive...Please, it is very important for me to find the answer to the above problems
...thanks for your time!
Advertisement
ok, your code looks fine so i doubt its anything to do with that.
have you experienced any other problems with anything else in OpenGL? If so then you probably have to check latest drivers

This topic is closed to new replies.

Advertisement