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: 'Framing' a bounding volume

  1. #1
    Junior Member Regular Contributor
    Join Date
    Jun 2003

    'Framing' a bounding volume

    Most DCC applications allow you to select an object and make it fill the viewport.

    Is there a standard, or at least efficient and stable way of doing this?

    A method I think might be reasonable:

    Perform a look-at

    Solve M*v=v', where v is a vertex of say, a bounding box, and v' is near a corner of the viewport.

    Transform the camera by M.

    This is probably going to yield a 'duh!' solution, but it's something I've never put much thought into.


  2. #2
    Junior Member Regular Contributor
    Join Date
    Oct 2002
    King George, Virginia

    Re: 'Framing' a bounding volume

    that's more or less how i do it. i get the bounding box around the volumne then adjust the near/far clipplanes to accomodate it.

Posting Permissions

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