I am trying to print text using glBitmapCharacter on a textured background.
//init code
void myinit(char* filename)
{
LoadGLTextures(filename);
glEnable(GL_TEXTURE_2D);
Type: Posts; User: amoskoh
I am trying to print text using glBitmapCharacter on a textured background.
//init code
void myinit(char* filename)
{
LoadGLTextures(filename);
glEnable(GL_TEXTURE_2D);
I am experimenting with threads and GLUT. It worked when I opened a single thread that does the init and glutmainloop.
However, I tried adding a second thread with the same function to...
If the program werent threaded.. how would i start my decision code, start my display.
and every now and then send new inputs to be drawn to my display?
Problem1: glutmainloop keeps looping, i...
Perhaps my description of my problem wasnt clear enough.
I basically have some decision code that decides to draw planes from point A to B in t seconds. And it can add new planes to draw whenever it...
hmm glutMainEventLoop(); looks promising but I cant find any documentation for it.
Only 2 links for it came up in google. and those were extensions to the OpenGL library.
I have some standalone C++ code that decides does some calculations and decide a dynamic flightpath of some airplanes.
What I would like to do is have those flightpaths displayed though opengl.
...
ie note that i did not measure the time in between frames... (does it mean that it will just refresh as fast as possible?)
And my update function just count the total time that has passed since i...
I tried your advice by moving stuf to my idle function to display it as fast as possible. This is what I have:
void displayFunc()
{
glClear(GL_COLOR_BUFFER_BIT );
...
Just to mention also that my animation lasts very short 1 second and it moves a distance about 300 pixels.
And I was running the animation through ssh to another server where the code resides. Is...
I am trying to do a simple 2D animation using glutTimerFunc that calls an update of my coordinates and does glutpostredislay. For now I have timer delay at 20 which means that I should get 50 fps. ...
I have a timer function that calls on a function to draw an object at a certain time. I get the time using this function:
time_elapsed = (clock()-startTime)/CLOCKS_PER_SEC;
My timer function...
I have a timer function that calls on a function to draw an object at a certain time. I get the time using this function:
time_elapsed = (clock()-startTime)/CLOCKS_PER_SEC;
My timer function...
oh. ok yeah it turns out ok when i remove the depth test.
Thanks a bunch
thats why i was wondering how the shapes are ordered in my 2d application?
I assumed that it would be layered according to which I drew last. So having the draw for my object last meant that I drew...
I've set up my 2d world to be
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
glViewport(0,0,430,360);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluOrtho2D(0,...
I love you GreetingsFromMunich. you are awesome!
Thats not the problem (defining it as texture[], im just using the first number in the array.
Anyone have any ideas? Im sure I did the steps right..
Unfortunately.. its still nothing even when I used a 512X512 bitmap
OK.. I think I know why it didnt work. My bmp picture was 430 X360 pixels. Is that why nothing showed up? So I need to add padding to make it 512X512?
I have a 2d orthogonal projection and im trying to texture map a bmp on the whole screen as a background. However when I run this code, nothing gets mapped, all white. The front portion of this code...