Part of the Khronos Group
OpenGL.org

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
    Posts
    2

    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
    Thanks!

    Click image for larger version. 

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

  2. #2
    Junior Member Newbie
    Join Date
    Dec 2017
    Posts
    22
    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
    Posts
    14
    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
    Location
    Bay Area, CA, USA
    Posts
    3,968
    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.

    http://nehe.gamedev.net/tutorial/fla...exture)/16002/
    http://duriansoftware.com/joe/An-int...g-Shading.html

Posting Permissions

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