Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: how to do clipping?

  1. #1
    Intern Newbie
    Join Date
    Jan 2004
    Posts
    38

    how to do clipping?

    hi all, I have one qusetion abt building a game world. Suppose the world is of size 1000 unit x 1000 unit and I want to limit the visiion of the player to 100 unit by gluPerspective. However, once i say the clipping plane in this way, there is a grey plane 100 unit away the player, I know that it is the clipping plane. But since I have a skybox of blue, it is indeed ugly for having such a grey plane. I would like to ask is there any way to eliminate that grey while can limit the player vision? Thanks a lot

  2. #2
    Guest

    Re: how to do clipping?

    No, clipping planes are invisible. The grey must be something else.

    Maybe you've set glClearColor to a grey and you're clipping your skybox against the viewing volume, so you're seeing the background colour in that area?

  3. #3
    Intern Newbie
    Join Date
    Jan 2004
    Posts
    38

    Re: how to do clipping?

    Dear Bobbob,

    Really THANK YOU very much for your reply!!!!!!!!!! I am really stupid and get struck by it for a long time!!!! Now, I undersatnd the problem (Thanks again..) However, I wonder if my skybox is textured, how can I make the clipping plane "invisible" from the player? Since when I try to use glClearColor(1.0f, 1.0f, 1.0f, 0.0f); instead, the clipping plane is still visible... (as I think that using white color can make it disappear...)

Posting Permissions

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