Archive Pages Design$type=blogging

Flag of South Africa

A computer graphics projects that draw the flag of South Africa using OpenGL Glut.

We have a great computer graphics OpenGL Projects on Flag Hoisting. Following that we have developed another graphics program based on Flag. The projects will draw the flag of South Africa.


Projects Description : 

This Computer Graphics projects as mentioned above draw Flag of South Africa. As you can see in the projects output image above, we have flag with flagpole. In this projects there is no user interaction as well as the project is static one. This projects only draw the flag and flagpole nothing else, there is no motion or animation in it.

A basic OpenGL program have included header files, global variable declaration, draw function, init function and main function. This program have only these basic functions, since it not required to have anything else.just draw the primitives to give a proper shape of flag. 

Draw Function

All objects in this project is included in draw function. As you can see the flag have three strips of different color. Also left part have triangular strips, along with a middle rectangular strip. There is also a long with small width rectangle for pole and last but not least the three rectangular flag base. All these strips are drawn with the help of polygon. We have use the glBegin(GL_POLYGON) and glBegin(GL_TRIANGLES) to draw the rectangular (polygon) and triangular objects respectively. 

One of the important thing and the main part is to understand the coordinate system. So, before draw have a sketch of the flag and point out the proper coordinate.  Unlike other complex projects, this projects is simple hence assign the proper coordinate is not a tough task.

glColor3f(1,0,0);
glBegin(GL_POLYGON);
glVertex2f(-15,30);
glVertex2f(-15,23.34);
glVertex2f(15,23.34);
glVertex2f(15,30);
glEnd();

The above mentioned is code snippet of this projects which draw the upper rectangular portion of flag. Similarly with proper coordinate, color section and use of glBegin(GL_POLYGON); (glBegin(GL_TRIANGLES); for triangular) the whole projects can be completed.

What Can be added to this projects

There are many things that can be added to it including the user interaction or waving of flag. many other idea we might find in our previous flag projects. As as creative students you may come up with new idea and implement to make this projects far better.

One of the good part of this projects is that it can be used as framework for drawing other flags.

Video Demo



COMMENTS

Name

3D Bi-Cycle 3D Game 3D Laptop 3D Objects 3D Projects 3D Zoo Algorithm Android Aquarium Bellman-Ford Algorithm B├ęzier curves Block Breaker Blockshooting Bucket Sort C# Chess Clock Code Blocks Colors Complex Project Complex Projects Crab Pong Cross Zero Doll DSAV Escapa Fighter Jet First Come First Serve Flag Flag Hoisting Fluids Font Demo Games Gear Motion GlutDino Glutplane Graphics Editor iOS iPhone Java Java OpenGL Graphics Programming Light Torus Linked List Ludo Board Game Mancala board games Memory blocks game Memory Game Menu Mickey Mouse Minesweeper Miniature Steam Engine moth Motion Blur MoveLight moving car Moving Ship Multiplex Networking Based Project Nuclear Power Plant Olympic opengl c++ examples OpenGL ES OpenGL Programming OpenGL Tutorial Origami OS Based Projects Paint Paper Folding Particles Drop Path Finding ping pong Pong Game Project Report Projects Report Puzzles qix like Queuqe Random Flowing lines Ray Rigid Body Rings Robot sample c++ opengl code Screen Saver Screen Saver Ship Shadow Cube Shadowfun Ship Iceberg Simple Drawing Simple Haloed Lined Wireframe Simple Move Light Simple Project Simulation SNAKE XENZIA GAME Solar system Sorting Sphere Spot Light Swing Stack Stars Taj Mahal The Edge Game Tic Tac Toe Tower of Hanoi Traffic Signal Transformation Triangular Animation Trippy Tutorial water ripple effects Whirlpool
false
ltr
item
OpenGL Projects: Flag of South Africa
Flag of South Africa
A computer graphics projects that draw the flag of South Africa using OpenGL Glut.
https://1.bp.blogspot.com/-c1sc4_21H_E/WS2aMrpXeAI/AAAAAAAAIVo/Ie9dmH4OdKU6SRphc1VWLp5LzsrKx01lgCLcB/s400/flag%2Bof%2Bsouth%2Bafrica.PNG
https://1.bp.blogspot.com/-c1sc4_21H_E/WS2aMrpXeAI/AAAAAAAAIVo/Ie9dmH4OdKU6SRphc1VWLp5LzsrKx01lgCLcB/s72-c/flag%2Bof%2Bsouth%2Bafrica.PNG
OpenGL Projects
http://www.openglprojects.in/2017/05/flag-of-south-africa.html
http://www.openglprojects.in/
http://www.openglprojects.in/
http://www.openglprojects.in/2017/05/flag-of-south-africa.html
true
2020194800836807725
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago