Results 1 to 3 of 3

Thread: 2D CAD examples?

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2011

    2D CAD examples?

    Good evening,

    I'm trying to do a simple 2D CAD, with draggable blocks and arrows and the such. I know C++, but I'm starting with OpenGL.
    Anyone know where I can find examples, demos, tuts, or anything for a CAD like this?

    Thanks in advance.

  2. #2

    Re: 2D CAD examples?

    I don't know of any tutorials that teach you how to write a 2D CAD or any other application as well. You do that by learning the various elements that go into an application.

    For 2D, you would use a orthographic projection.

  3. #3
    Senior Member Frequent Contributor
    Join Date
    May 2001

    Re: 2D CAD examples?

    What kind of CAD applications?

    Mainly you need an editable scene graph system that allows for selection and event processing for objects, something much like in GUI tool kit widgets...

    As for selection, I recommend using a ray-intersection selection test. Orthographic views are mainly for 2D editing.

    I would recommend using something like Ogre3D since it has a scene manager built-in. And you can still use OpenGL as a rendering API.

Similar Threads

  1. cg tutorial examples
    By duck bong in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-04-2006, 01:58 AM
  2. Examples
    By Brian Jones in forum OpenGL: General
    Replies: 1
    Last Post: 06-26-2003, 11:10 AM
  3. terrain map examples?
    By mcsellski in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-11-2002, 12:31 PM
  4. Non-GLUT Examples?
    By Tiggyboo in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-27-2002, 10:08 PM
  5. New and better documentation with more examples
    By santyhamer in forum OpenGL: General
    Replies: 1
    Last Post: 09-27-2000, 02:11 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