Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: amoskoh

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    87

    text color overuns texture

    I am trying to print text using glBitmapCharacter on a textured background.



    //init code

    void myinit(char* filename)
    {
    LoadGLTextures(filename);
    glEnable(GL_TEXTURE_2D);
  2. Opening 2 Glut Windows in separate threads

    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...
  3. Replies
    8
    Views
    204

    Re: Having another program control rendering

    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...
  4. Replies
    8
    Views
    204

    Re: Having another program control rendering

    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...
  5. Replies
    8
    Views
    204

    Re: Having another program control rendering

    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.
  6. Replies
    8
    Views
    204

    Having another program control rendering

    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.
    ...
  7. Replies
    6
    Views
    830

    Re: glutTimerFunc not up to speed

    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...
  8. Replies
    6
    Views
    830

    Re: glutTimerFunc not up to speed

    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 );
    ...
  9. Replies
    6
    Views
    830

    Re: glutTimerFunc not up to speed

    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...
  10. Replies
    6
    Views
    830

    glutTimerFunc not up to speed

    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. ...
  11. Replies
    1
    Views
    895

    delta time for animation

    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...
  12. Replies
    1
    Views
    117

    glutTimerFunc timing problem

    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...
  13. Replies
    5
    Views
    386

    Re: 2d orthogonal projection problem.

    oh. ok yeah it turns out ok when i remove the depth test.
    Thanks a bunch
  14. Replies
    5
    Views
    386

    Re: 2d orthogonal projection problem.

    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...
  15. Replies
    5
    Views
    386

    2d orthogonal projection problem.

    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,...
  16. Replies
    7
    Views
    1,736

    Re: texture not showing

    I love you GreetingsFromMunich. you are awesome!
  17. Replies
    7
    Views
    1,736

    Re: texture not showing

    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..
  18. Replies
    7
    Views
    1,736

    Re: texture not showing

    Unfortunately.. its still nothing even when I used a 512X512 bitmap
  19. Replies
    7
    Views
    1,736

    Re: texture not showing

    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?
  20. Replies
    7
    Views
    1,736

    texture not showing

    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...
Results 1 to 20 of 20