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.

Similar Threads

  1. load matrix after glFrustum
    By jack_aerospace in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-30-2013, 07:38 PM
  2. Multiply current Matrix with the stacked Matrix
    By ColacX in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-22-2009, 02:07 PM
  3. How to get the current openg matrix
    By Leonardave in forum OpenGL: General
    Replies: 2
    Last Post: 06-04-2009, 06:27 AM
  4. Getting the current Matrix?
    By GameMaker in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-22-2001, 09:17 PM
  5. How can I get the current Matrix
    By aero in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-13-2001, 06:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean