Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: glFrustum delete my current matrix

  1. #1
    Newbie Newbie
    Join Date
    Sep 2013

    glFrustum delete my current matrix

    I don't know why, but I use the command glFrustum to increase the far depth of the clipping plane, but I can't see more the object i created..
    Here I post the relevant code.. I am now reading the red book, maybe I don't understand something..
    please help's very important..

    Code :
    	glLoadMatrixd( gl_para );
    	glFrustum (-100.0, 100.0, -100.0, 100.0, 1.5, 2000.0);

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2013
    Hi Jack. I need more information to help you. Can you describe what you expect to see and what you actually do see? On the one hand you make it sound like your gl_para matrix is getting overwritten by a unit matrix; and on the other hand it sounds like the far clipping plane is cutting off the distant part of your object. Which is it? How many bits are you using for depth? If you change the 1.5 and 2000.0 numbers, you should be able to at least _change_ the amount of your model that gets clipped off, front and rear.

Posting Permissions

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