Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Kek flag in open gl

  1. #1
    Newbie Newbie
    Join Date
    Dec 2017

    Kek flag in open gl

    Hi i am really a newbie in opengl i have made some objects and other stuff but i cant complete this flag. The hearts at the top left seem to be impossible and its had to overlay all the lines maybe someone can do it and type the code so i can see how

    Click image for larger version. 

Name:	CFkPNBTgNNABqac-1600x900-noPad.jpg 
Views:	95 
Size:	80.7 KB 
ID:	2570

  2. #2
    Junior Member Newbie
    Join Date
    Dec 2017
    I'm not even sure what that flag is. If you are doing it by code vs texture then take up trig because it's going to be an adventure. Bruce Eckels didn't name his book "Thinking in C++" for nothing.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2017
    Might want to simplify it to make it feasible with vertices. Use a grid drawing tool and translate the coordinates to OpenGL.
    So what are you making? A game for ethnic Kekistanis?

  4. #4
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Bay Area, CA, USA
    Your approach is wrong. You should load this image as a texture and then apply the texture to a mesh of triangles if you want a flag. Then you can animate the mesh with a wave pattern or other dynamic simulation and it will correctly deform the texture pattern you have applied to the mesh. There are plenty of examples out there on how to do this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts