Results 1 to 5 of 5

Thread: Getting View Frustumīs Planes in OpenGl????

  1. #1
    Senior Member Regular Contributor
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    235

    Getting View Frustumīs Planes in OpenGl????

    For things like View Frustum clipping I need the Plane Equations(or their normals) of the View Pyramid.I could calculate them from the Rotation matrix and the angle of view but to do this I need alot of sines + cosines which slows down things alot if one calculates them (the Planes) every frame.
    I think Opengl knows these planes(īcause it does (slow) clipping ,too.
    So please tell me if it is possible to get these Planes from Opengl and if so ,how does it work????

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    183

    Re: Getting View Frustumīs Planes in OpenGl????

    Hi there!

    If you want a (kind of) fast method to get a fast sine & cosine value of an given radian, you should look into the thread:
    "Getting normal vectors"

    Hope that helped you!

    Regards,

    LG

    And msy the vector by with you!

  3. #3
    Senior Member Regular Contributor
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    235

    Re: Getting View Frustumīs Planes in OpenGl????

    Thanx,that might help if would calculate my planes myself.
    But,I DONT want to calculate it myself,I want to get these Planes from OpenGl!!
    So if somebody has some ideas PLEASE POST them even if they are wrong.īcause I want to continue programming.


    [This message has been edited by XBCT (edited 04-19-2000).]

  4. #4
    Senior Member Regular Contributor
    Join Date
    Apr 2000
    Posts
    112

    Re: Getting View Frustumīs Planes in OpenGl????

    Depending on how your frustrum is set up you may only have to calculate 1 of the normals using your sine/cosine method. The other sides of you frustrum (assuming you don't change the frustrum should be predicably different and you would only have to figure out how they're diffrent from the "master side" of the frustrum once with some precomputed geometry.

    One way to avoid any of this sine/cosine stuff would be to make a single triangle just outside your frustrum with a normal defined. If you keep it in the same location in relation to your frustrum it should always provide a normal to you frustrum. Although this method also has the over head of a triangle.

    I don't know how or if it's possible to get these planes directly from OpenGL, but these would be a few ways to speed up a work around solution.

  5. #5
    Senior Member Regular Contributor
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    235

    Re: Getting View Frustumīs Planes in OpenGl????

    Thanx!
    It looks like I have to calculate things myself(thanx for all the speed improvement tips).
    BUT:IF someone knows how to get the View Frustumīs Planes from Opengl,PLEASE PLEASE tell me!!!!

Similar Threads

  1. Creating multiple planes in 3D view (projection view)
    By Bhoot123 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-20-2018, 02:40 AM
  2. Extract view frutum planes from view matrix
    By ei05tbe in forum OpenGL: General
    Replies: 4
    Last Post: 09-18-2010, 06:22 PM
  3. Frustum planes
    By ilj in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-31-2001, 05:46 PM
  4. Getting the frustum planes
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-21-2001, 04:10 AM
  5. Frustum view culling in opengl
    By levelone in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 11-17-2000, 09:35 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