Results 1 to 3 of 3

Thread: testing objects if they were rendered

  1. #1
    Member Contributor
    Join Date
    Apr 2011
    Location
    Miami, FL
    Posts
    54

    testing objects if they were rendered

    If I have a set of many spheres in the screen, as I move closer using a "camera" some of the spheres will disappear from view. How can I test which spheres are not visible? for example, to my right and left of where I'm looking at?
    thanks,
    Francisco

  2. #2
    Newbie Frequent Contributor
    Join Date
    Mar 2016
    Posts
    896

    Re: testing objects if they were rendered

    The term to google is frustum culling.

    You build a hierarchy of bounding volumes around your objects and test the bounding volume against the view frustum. If they intersect you test the next level of volumes in the hierarchy until you've reached the leaves. If a leaf volume intersects the frustum you assume the object to be visible and render it.
    Of course this is only a performance win if you can perform the testing faster than simply rendering the objects regardless of visibility - which means the objects to test need to be complex enough. In your case you may need to group a number of spheres into a leaf of your bounding volume hierarchy for best performance.

  3. #3
    Member Contributor
    Join Date
    Apr 2011
    Location
    Miami, FL
    Posts
    54

    Re: testing objects if they were rendered

    thank you

Similar Threads

  1. Depth buffer rendered over objects
    By dr4cula in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-29-2013, 01:35 PM
  2. How to get data from rendered objects on screen
    By downybear in forum OpenGL: Windows
    Replies: 2
    Last Post: 03-31-2012, 03:16 PM
  3. Showing subset of currently rendered objects
    By jas511 in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 03-06-2012, 06:03 AM
  4. Bug: rendered objects turning black.
    By godhandiscen in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-11-2008, 04:17 AM
  5. Merging two rendered objects
    By rrankene in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-13-2005, 09:40 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