Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: glMatrixMode(GL_PROJECTION) ?

  1. #11
    Junior Member Newbie
    Join Date
    Apr 2013
    Posts
    26
    @wmchiew,
    It is just a black screen. What is the problem?

  2. #12
    Junior Member Newbie
    Join Date
    Apr 2013
    Posts
    26
    It worked. Thanks the problem was irrelevant to MatrixMode. It was something to do with Xcode.

  3. #13
    Junior Member Newbie
    Join Date
    Sep 2013
    Posts
    7
    that's great you figured out the problem good luck

  4. #14
    Junior Member Newbie
    Join Date
    Apr 2013
    Posts
    26
    @wmchiew,
    thank you for being helpful. Now, I understood the problem more than before. It was a coincidence. I was drawing a triangle and by using glScalef(), I've noticed that the triangle disappeared because I was using glIdleFunc(). What I noticed that the scale function scales something that already scaled, consequently, the triangle disappeared. To overcome this problem, I used glPushMatrix() or ModelView and glLoadIdentitiy(). I got it now.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •