Documente Academic
Documente Profesional
Documente Cultură
Home Submit Your Project CG Lab Program Download Downloads Payment and Buyer
Search Projects
http://www.openglprojects.in/2012/06/mini-project-on-bellman-ford-algorithm.html#gsc.tab=0 1/3
2/12/2018 Mini Project on Bellman-Ford algorithm using OpenGL | OpenGL Projects
Each node connected to another node with a cost, now when the packet
ows through a path it result some cost to the network . To minimize the
cost of network communication Bellman-Ford algorithm is implemented and
the packet ow to the path which costs less in the communication.
2
Working Principle
How to Draw
First we draw the nodes and connecting lines by passing co-
Circle in OpenGL
ordinate values to a GL_LINES .It will draw the network and connections of
the network. The shortest path is calculated by using Bellman-Ford In the OpenGL Computer
graphics there major problem in
algorithm using the following formula-
drawing circle. In this post we
1.Initialization are going to study How to Draw
Di=∞; for all i≠ d (3.1) Circle in OpenGL. Th...
Dd=0 (3.2) Readmore
2.Updation
Di=minj{Cij+Dj} (3.3)
Repeat step 2 until no more change occur in iteration. 3
3D Car Animation
To draw the packet we pass the co-ordinate values to the GL_QUAD. Now to
OpenGL
move the packet from one node to another node we draw the packet at
Computer
different points of co-ordinate using for loop. The loop will make the polygon
Graphics
in the certain color speci ed from the starting co-ordinate to the end with the
Program
incremented value. Now we cover the part of the long polygon which is
generated in the loop using the same co-ordinate values and loop coloring
We have came across so
with black. The black color cover the previous color and this makes the
many Computer Graphics
sense for the movement of the packet. Similar thing is done for all the packet
Program that draws Cars,
movement including the racing games. In
this post we are presenting 3D
Usages : Car An... Readmore
Mouse interaction : Click on the node to choose the node from where the
shortest distance is to be measured. Click on quit block to exit the program.
Key board : The program will ask after every node select, showing the
shortest path if you wan to continue or not press y to continue press n to exit 4
the program.
Flag Hoisting
Graphics
Download : Project Code
Programs in
C/C++
http://www.openglprojects.in/2012/06/mini-project-on-bellman-ford-algorithm.html#gsc.tab=0 2/3
2/12/2018 Mini Project on Bellman-Ford algorithm using OpenGL | OpenGL Projects
5
Running Train
Implementation of path Draw Crab Pong Game
nding game with opengl using OpenGL Opengl Projects
Example
► 2018 ( 1 )
Name
► 2017 ( 13 )
► 2016 ( 35 )
Sir plz send me the error free source code of dis algorithm... ► 2014 ( 33 )
► 2011 ( 43 )
Privacy Policy
© 2018 OpenGL Projects All rights
reserved.
http://www.openglprojects.in/2012/06/mini-project-on-bellman-ford-algorithm.html#gsc.tab=0 3/3