Skip to main content

dda line algorithm easily create in c using opengl|opengl bangla tutorials

dda line  algorithm easily create in c using opengl|opengl bangla tutorials .

I try  to show how to easily draw digital differential analyzer line drawing algorithm using opengl c programming.DDA line drawing algorithm is the importent part  in computer graphics .I just wanted to explain the source code how it is  work easily .



Formula of DDA line drawing algorithm:
Step : 1
If the slope is less than or equal to 1, the unit x intervals Dx =1 and compute each successive y values.
Dx =1
m= Dy / Dx
        m = ( y2 – y1 ) / 1
m = (yk+1 – yk)/ 1 
       yk+1 = yk + m

Step : 2
If the slope is greater than 1, the roles of x any y at the unit y intervals Dy =1  and compute each successive x values.
   
Dy =1
m= Dy / Dx 
m = 1 / (x2 – x1 )
m = 1 / (xk+1 – xk)
 xk+1 = xk + (1/m)

Step : 3
If the processing is reversed, the starting point at the right .
Dx =-1
m= Dy / Dx
m = ( y2 – y1 ) / -1
yk+1 = yk - m   



Step : 4
 Dy =-1
m= Dy / Dx 
m = -1 / (x2 – x1 )
m = -1 / (xk+1 – xk)
xk+1 = xk – (1/m)



 I believe that if anyone sees this video from the first to the end, he/her can understand how to draw dda line algorithm.I hope you guys  this video are so helpful to draw digital differential analyzer line drawing algorithm.

Keep In Touch:
Facebook:https://www.facebook.com/LearnWithSaiful/
Instagram:https://www.instagram.com/LearnWithSaiful/
Twitter:https://twitter.com/LearnWithSaiful


Comments

Popular posts from this blog

how to install Arena simulation software

Simulation modeling is used in almost all fields of our life.Simulation modeling is a special process that helps to understand the behavior of a dynamic system and understand how various components of the system communicate with each other.Simulation modeling is a digital prototype which predicts any work. Simulation modeling today is especially useful for engineers, business people, computers, which can be easily understood which part of a system can fail and which might impede people to interfere. Arena Simulation Modeling is widely used today to solve the problems of people's early life problems and to analyze it. I try to describe, how easily install Arena simulation software   .  I believe that if anyone sees this video from the first to the end, he/her can understand how to install Arena simulation software.I hope you guys  this video are so helpful to install Arena simulation software Keep In Touch: Facebook: https://www.facebook.com/LearnWithSaiful...

Install OpenGL, GLUT On Windows With CodeBlocks OpenGL Tutorial

If you want to work with computer graphics in code block, then first download our code block.Then, we need to install Opengl and Glut in our code block.I try  to show how easily it is run  in opengl and glut on the codeblocks. computer graphics is very popular in the world today . I believe that if anyone sees this video from the first to the end, he can understand how to download and install it. Keep In Touch: Facebook: https://www.facebook.com/LearnWithSaiful/ Instagram: https://www.instagram.com/LearnWithSaiful/ Twitter:  https://twitter.com/LearnWithSaiful

how to create chess game components in opengl c

Components of chess games are easily made with  opengl c programming language.To create the components we need to know about the chart..Having  good knowledge about our chart, it does not matter to create chess  components . First look at the image of the chess  components I will easily see how this photo is easily made.  Chess game is very popular on the earth. I try to describe, how easily create chess game components  . If you follow full code you easily understand. Keep In Touch: Facebook:   https://www.facebook.com/LearnWithSaiful/ Instagram:https://www.instagram.com/LearnWithSaiful/ Twitter:  https://twitter.com/LearnWithSaiful o