Results 1 to 4 of 4

Thread: help in 2d mode for beginner

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2004
    Posts
    3

    help in 2d mode for beginner

    what would be the easiest way to get a 5point star on the screen, i have tried some mathematical equaions but i can seem to get it right. Anyone know a good way???

  2. #2
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: help in 2d mode for beginner

    Start with a 10 vertex circle, then scale every other vertex towards the middle. Use a trifan with an extra starting point in the middle to start with and it will appear correctly without additional subdivision, remember to duplicate the second vertex at the end to complete the shape.

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2004
    Posts
    3

    Re: help in 2d mode for beginner

    thanks, i'll give it a show

  4. #4
    Junior Member Newbie
    Join Date
    Sep 2004
    Posts
    3

    Re: help in 2d mode for beginner

    i got the star! now is there a way to fill in the color within the star????

Similar Threads

  1. Acceralated mode vs. generic (soft) mode question
    By sharp in forum OpenGL: Windows
    Replies: 13
    Last Post: 12-01-2008, 06:15 PM
  2. Replies: 1
    Last Post: 03-18-2004, 05:10 PM
  3. Another beginner
    By omac in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-28-2002, 07:20 PM
  4. Explain me: Immediate mode and Retained mode. In OGL and D3D!
    By Anonymous Coward in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 09-18-2000, 07:37 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