Results 1 to 2 of 2

Thread: Pocket in a surface of a cube

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2004

    Pocket in a surface of a cube

    I started with programming in OpenGL with MS Visuell C++. In my programm
    I have an OpenGL graphic window, in which I will describe different 3-D-Objects, for example cube, blocks, etc, like in a CAD programm.

    I have problems with the presentation of objects, that are parts of other objects or in other objekts, for example a pocket in the surface of
    a cube. How can I draw the remaining surface without the pocket and the pocket in a simple way?

    My trial with the depth buffer was not sucessfull.

    What is the ideal lighting for these objects? Any recommendations?



  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001

    Re: Pocket in a surface of a cube

    Hi !

    There are a number of ways to solve this.

    Use some external library to create the mesh for you.

    Use CSG operations, this can be done in OpenGL, google will give some url's about this.

    Use nurbs surface, with those you can add trimming curves to "trim" out parts of the surface and in your case put in something else.

    Use nurbs surface, you can modifiy the control points to create dents in the surface.


Similar Threads

  1. making a path on the surface of 3D cube
    By trin82 in forum OpenGL: General
    Replies: 1
    Last Post: 10-19-2010, 10:34 AM
  2. Pocket PC questions
    By Alaric in forum OpenGL ES
    Replies: 6
    Last Post: 02-18-2008, 07:05 AM
  3. OpenGL ES on Pocket PC
    By Alaric in forum OpenGL ES
    Replies: 3
    Last Post: 11-04-2005, 01:26 PM
  4. memory leak on Pocket PC
    By Alaric in forum OpenGL ES
    Replies: 0
    Last Post: 11-02-2005, 04:50 PM
  5. problem with pocket pc
    By Giacomo in forum OpenGL ES
    Replies: 2
    Last Post: 09-09-2005, 11: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