Results 1 to 3 of 3

Thread: HOW TO HAVE A ROTATING CIRCLE WITH TWO COLR CHANGES HAPPENING.

  1. #1
    Member Contributor
    Join Date
    Oct 2002
    Location
    bangalore
    Posts
    56

    HOW TO HAVE A ROTATING CIRCLE WITH TWO COLR CHANGES HAPPENING.

    hay,
    i need to draw a circle. the circle has a measure of indication of pitch and roll angle of the aircrafts.
    according to the quanties meaured, either pitch or role , the circle should be able to change the proportion of colors accordingly.
    blue indiating towards sky and brown towards
    earth.
    i am able to draw some lines , representing various degrees of pitch and roll.
    but how to make them move(translate) i dont know.
    pls help.
    thanks & regards
    Prashant G.P

  2. #2
    Member Newbie
    Join Date
    Oct 2002
    Location
    Rijeka, Croatia
    Posts
    36

    Re: HOW TO HAVE A ROTATING CIRCLE WITH TWO COLR CHANGES HAPPENING.

    What exactly are you trying to make?

    A HUD?

  3. #3
    Senior Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    764

    Re: HOW TO HAVE A ROTATING CIRCLE WITH TWO COLR CHANGES HAPPENING.

    One way to solve this is to have a texture that is split into two halves, one for each color. Then draw a filled circle (e.g. GL_TRIANGLE_FAN), with the texture coordinates for each vertex mapping so that the texture will be drawn as if pitch & roll is "zero" (standing on the ground). Finally, rotate & and translate the texture with the GL_TEXTURE_MATRIX so that it corresponds to pitch and roll (pitch = translate, roll = rotate).

    Aah, a bit too complicated to explain in a simple post, so this may sound strange.

Similar Threads

  1. Replies: 4
    Last Post: 05-31-2016, 05:21 PM
  2. Connect midpoint circle dots for circle outline
    By TalysShade in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-05-2012, 03:42 PM
  3. rotating circle?
    By moloza in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-19-2009, 11:00 AM
  4. Rotating a circle of points
    By danny1238 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-24-2001, 12:47 PM
  5. rotating a circle
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-27-2000, 05:38 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