Results 1 to 4 of 4

Thread: 3d rectangles

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2001
    Posts
    1

    3d rectangles

    I can see how to draw 3d cubes and spheres using GLUT.

    But is there an easy way to draw a 3d rectangle??? maybe using glut or glu....

    Without having to draw the thing from scratch (specifying each vertices etc).

    any help would be appreciated!

  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2011
    Posts
    288

    Re: 3d rectangles

    Ask yourself: how you want to describe a triangle simplier than specifying three vertices?

  3. #3
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    477

    Re: 3d rectangles

    With GLUT, there's a function like this for making a cube :

    glutSolidCube(float Height);

    Looks in the help, there's perhaps a
    glutSolidRectangle(float Height, float Width)

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    653

    Re: 3d rectangles

    You can always use glscale with a cube to get your rectangle

Similar Threads

  1. Rectangles don't have the same size
    By Lumanior in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 03-16-2011, 02:44 AM
  2. Overlapping Rectangles
    By gh001 in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 03-01-2008, 10:55 AM
  3. Rectangles appear as triangles
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-10-2005, 02:15 PM
  4. Drawing rectangles
    By electricate in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-21-2002, 09:19 AM
  5. glScissor - rectangles
    By holy_moly in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 03-27-2000, 10:32 PM

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