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 2 of 2

Thread: Coords of frustum intersection with a sphere

  1. #1
    Junior Member Newbie
    Join Date
    May 2004
    Posts
    2

    Coords of frustum intersection with a sphere

    Hello,
    I need to determine the nearest area formed on the surface of a sphere by the intersection of the view frustum.
    Ideally the coordinates would be in longitude and latitude.
    I've been pondering this one for a while now, and can't see the wood for the trees, so a second perspective would be really helpful.
    If the frustum falls full on the surface of the sphere, all would be ok - I could simply find the intersection of the 4 rays projected down the corners of the frustum, but what if only the bottom (& left & right) planes of the frustum intersect the sphere surface? How do I get any useful info from that?
    I basically want to draw just that patch of the surface of the sphere (using a kind of quadrilateral rasterizer).
    Is this easy?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2000
    Location
    Hannover, Germany
    Posts
    1,258

    Re: Coords of frustum intersection with a sphere

    I don't have an idea what you're trying to achieve and what a nearest area is supposed to be. Maybe a better explanation or a picture could help.
    - Michael Steinberg

Posting Permissions

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