Results 1 to 3 of 3

Thread: subject

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2005


    dList := glGenLists(1);
    glNewList(dList, GL_COMPILE);
    PL is an array of 15 colors

    glColor4ubv(@PL[Code]); //
    glVertex3f(P.X, P.Y, height);
    glVertex3f(P1.X, P1.Y, height);
    glVertex3f(P3.X, P3.Y, height);
    glVertex3f(P2.X, P2.Y, height);

    Code := 5; //
    glColor4ubv(@PL[Code]); //
    glVertex3f(P4.X, P4.Y, height);
    glVertex3f(P5.X, P5.Y, height);
    glVertex3f(P6.X, P6.Y, height);
    glVertex3f(P7.X, P2.8, height);

    gluPerspective(230, 1, 1, 500);

    each one of these is a GL_quads with one color, the next quad im gonna plotting might, or might not be the same color.

    give you a little idea what im working with, perhaps some bells will ring,

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Aug 2004
    munich, germany

    Re: subject

    1. glNewList without glEndList is not good
    2. glBegin(GL_QUADS) without glEnd() is not good
    3. using gluPerspective after drawing your quads is not good
    4. glEnable(GL_BLEND) and glDisable(GL_DEPTH_TEST) have no effect, either.
    5. in glVertex3f(P7.X, P2.8, height); P2.8 seems to be a typo ?
    6. your links leads to nowhere

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2005

    Re: subject

    yes im not a pro,

    you get the basic idea tho, right?

    yes i mistyped the site,

    also my very first post shows what (part of) this code does. Also the effect im after.

    really dont believe i can achieve that with masking

Similar Threads

  1. error too long to list in subject line
    By mikeglaz in forum OpenGL: Linux
    Replies: 4
    Last Post: 03-14-2012, 08:38 AM
  2. on the subject of point sprites
    By zed in forum OpenGL: GLSL
    Replies: 4
    Last Post: 01-22-2005, 09:59 AM
  3. A little off subject
    By azncrip4lif in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 06-29-2004, 08:06 AM
  4. It's a big subject, and i need help (collision detection
    By Enalis in forum OpenGL: Advanced Coding
    Replies: 12
    Last Post: 01-11-2002, 11:37 AM
  5. cool subject: tips to how to accelerate a own opengl engine
    By MofuX in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 08-30-2001, 10:49 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