Results 1 to 6 of 6

Thread: Clipping

  1. #1
    Senior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    Donetsk,Ukraine
    Posts
    118

    Clipping

    What is the best way to clip objects before drawing?
    I thought about clipping two volumes defined by arbitrary planes, but it appears to be too complicated.

  2. #2
    Member Newbie
    Join Date
    Dec 2000
    Posts
    44

    Re: Clipping

    If you're using a nVidia card let the card do all the clipping. You should do object culling, backface culling and if you feel like it frustum culling.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    Donetsk,Ukraine
    Posts
    118

    Re: Clipping

    I'm speaking about clipping geometry by frustum volume before sending to card.
    I know how to clip one point(translate it to normalize device coordinates). But how to do this with more complex objects? Bound them by sphere? Or by box?

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2001
    Location
    London, UK
    Posts
    11

    Re: Clipping

    Originally posted by RandyU:
    But how to do this with more complex objects? Bound them by sphere? Or by box?
    What shape is the complex object? If it's sort of round, then bound it with a sphere. If it's long and thin, a box would be better (because a sphere would be much bigger than is optimal, to enclose a long thin object)

  5. #5
    Senior Member Regular Contributor
    Join Date
    Oct 2000
    Location
    Donetsk,Ukraine
    Posts
    118

    Re: Clipping

    I'm implementing abstract class system, so I dont know what kind of objects will I have. I think I'll bound them by convex multihedron defined by vertices. But I just have no idea how to check if it lies inside of viewing volume.

  6. #6
    Senior Member Regular Contributor
    Join Date
    Feb 2001
    Location
    Australia
    Posts
    431

    Re: Clipping

    Being a frequent contributor, I'm surprised you haven't come across this link before http://www.markmorley.com/opengl/frustumculling.html Should have everything you need.

    Hope that helps.

Similar Threads

  1. 4D clipping
    By Mungo in forum OpenGL: General
    Replies: 3
    Last Post: 05-06-2004, 06:58 AM
  2. how to do clipping?
    By candy in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-11-2004, 04:36 AM
  3. Replies: 1
    Last Post: 09-02-2003, 01:45 PM
  4. Clipping (not clipping) in opengl
    By FunkyLovin in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 06-04-2001, 05:08 AM
  5. 3d clipping
    By vic in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 11-04-2000, 08:05 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