Results 1 to 3 of 3

Thread: How to tell if a point is in view?

  1. #1
    Member Contributor
    Join Date
    Nov 2002
    Posts
    96

    How to tell if a point is in view?

    How would I tell if a point in 3D space is in my current view?
    I don't have a clue since I don't know the perspective, nor would I know where to find it.
    Also can't I really think of a way to solve this mathematically.
    Is there perhaps something in the GLU library that can help me?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2002
    Location
    Vancouver, BC, Canada
    Posts
    118

    Re: How to tell if a point is in view?

    http://www.sjbaker.org/steve/omniv/
    Do a search for frustum culling or frustum slipping on google.

    You'll find an explanation of how to get the six planes that define the projection. Then you just have to check which side of the plane the point is on (after tranforming it into the correct space), if it is on the wrong side of any of the 6 planes it isn't in view.

  3. #3

    Re: How to tell if a point is in view?

    Mark Morley has an excellent article at his web site .

Similar Threads

  1. Glut/GL Camera or view point please help
    By Slong in forum OpenGL: Basic Coding
    Replies: 15
    Last Post: 11-09-2009, 08:59 PM
  2. Can I revolve the view point ?
    By silvia_steven_2000 in forum OpenGL: Basic Coding
    Replies: 11
    Last Post: 10-24-2003, 09:04 AM
  3. Fastest way to compute 2D view point from 3D point?
    By robosport in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-15-2003, 11:45 AM
  4. View point coord
    By Lanstorp in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-08-2002, 12:22 PM
  5. How to calculate if a point is in view-area??
    By lsdi in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 02-03-2002, 04:18 AM

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