Results 1 to 3 of 3

Thread: Problem with frustum culling

  1. #1
    Junior Member Newbie
    Join Date
    May 2002
    Posts
    26

    Problem with frustum culling

    Hello all. I am new here. I am currently working on frustum culling some 3ds objects. I am having a strange problem with it right now. My codes for generating a proper bounding box seems to work for objects that are near. But if i move the objects very far away( > 1000 ) the bounding box codes seem to fail. Any idea why?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Problem with frustum culling

    Hi !

    Not sure what your problem is here, if you are just calculating bounding boxes on geometry, then it would be your own code, that has nothing to do with OpenGL. But what does come to mind is that if you are using gluProject/gluUnproject for something you do, that might be the problem, say that you have set the depth range to 0.5 to 1000 then these functions will fail when you ge beyond 1000 (that is 1000 away from the "camera").

    That's the only thing I can think of at the moment, if you could post the piece of code that does not work it would be easier to help.

    Mikael

  3. #3
    Junior Member Newbie
    Join Date
    May 2002
    Posts
    26

    Re: Problem with frustum culling

    Thanks for your help. But I found the problem already. I constructed the bounding box wrongly. Forgot to calculate the rotation. Thanks anyway.

Similar Threads

  1. problem in applying frustum culling + LOD
    By candy in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-08-2004, 09:31 PM
  2. Problem with frustum-culling and scaling
    By hugo4711 in forum OpenGL: General
    Replies: 0
    Last Post: 01-27-2004, 06:15 AM
  3. Frustum culling problem
    By Stebet in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 04-16-2003, 07:06 AM
  4. Frustum Culling problem (With Octree)
    By Evil-Dog in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 05-16-2002, 08:31 AM
  5. Frustum culling problem
    By HemiMG in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-03-2001, 05:14 PM

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