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

Thread: advanced csg using stencil buffer

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    china
    Posts
    1

    advanced csg using stencil buffer

    as we kown,in OGL we can get a fake csg by using stencil buffer,but a true boolean operations should produce one true solid after oparetion,what should i do to find the valid point of intersections to construt the true solid.
    need your advices or some code should be better,
    thanks a lot!
    i am a begginner!

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2004
    Posts
    999

    Re: advanced csg using stencil buffer

    have a look at http://www.opencsg.org , this may be what you're looking for.
    Otherwise try a google search on csg + opengl, there are a number of possible implementations.

    Nico

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    jingdezhen,jiangxi,China
    Posts
    15

    Re: advanced csg using stencil buffer

    good!

  4. #4
    Intern Contributor
    Join Date
    Jun 2002
    Posts
    73

    Re: advanced csg using stencil buffer

    Hello.

    I have a recent CSG program and website I did for a class project. If anyone is interested I could clean it up and give it out cause it does teach how to do "real" CSG.

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

    Re: advanced csg using stencil buffer

    hky I'd be interrested in "computational" CSG, ie, real geometry calculation.
    - Michael Steinberg

  6. #6
    Intern Contributor
    Join Date
    Jun 2002
    Posts
    73

    Re: advanced csg using stencil buffer

    Hello,

    Here is a link to the CSG tutorial I am re-writing. It is not complete yet, but should be so in about 24 to 48 hours. Currently, it talks about splitting edges and polygons. By tommorow I will post up doing the set operations and using a binary tree to keep track of all the splits.

    If you have specific questions or want me to add or remove something from the tutorial, email me at ahassan@ucalgary.ca .

    Link to CSG tutorial:
    http://pages.cpsc.ucalgary.ca/~hassana/csg/csg_tut.html

    PS: I will add sample code in C\C++, Java and Visual Basic once I finish the tutorial.

Posting Permissions

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