Hey guys welcome to another computer graphics tutorial before starting with the tutorial
I would like to request you to make sure that we subscribe to my channel second thing make
sure that you watch this video completely as I am going to take an example also while
explaining this to make sure you was this video completely third thing if you have any
doubt don't worry as them in the comment section below i will reply as soon as possible and
if you like this video it that like button and share this video with your friends so
i just started first will cover the basics of the digital differential analyser scan
conversion line algorithm based on calculating either the dx or dy or delta y our second
point is very important formula for dda algorithm is the formula of slope is equal to y to minus
one upon x 2 - x or it also means that slope is equal to y and minus y start divided by
6 and minus x start it means that your to subtract from the and quality and y coordinates
the starting y coordinates ÷ and x co-ordinate - the state coordinator for example over here
that say we have a line starting point is 2, 1 and ending point is 3, so have you find
the slope find - 5 star trek send - x. start ok so what is the y and. y and coordinate
4 ok what is the y starting coordinate 144 - 1 divided by 40 is the starting coordinate
of x it is too and what is the ending coordinate of x or ending x co-ordinate it is 3 so
sample the full length recent played at unit intervals by incrementing in one coordinate
and then computing the other product so if you didn't understand this will look at an
example then you'll understand if the slope of the line I'm ok how we represent slope
with m so if m is less than or equal to 1 then to compute the point we use this for
me xscape + 1 is equal to x k plus one that is the previous coordinate plus one you had
one to the previous value I'm ok
so you add to the previous anyone by ok to find y k plus one that is the next why got
in at what you do you just add 1 to the previous order that is like a plus one ok so let's
see what is algorithm for this if the slope is m less than 1 ok we separate ac unit accent
hour so that is why increment by dx that is the difference between the x co-ordinate will
be 1 and computer successive y coordinates why do we just increment the x co-ordinate
by 1 and then we find next why coordinate with slow problem so like this so we know
that we have the slope is less than 1 soda do we increment the x by 1 so difference between
the x co-ordinate is one so x k + 1 is equal
to x case which is one you don't know the difference between
the y coordinates so we just ride like a plus one that is the next 49 - 5 / in our case
the difference between axis forex coordinate is one so we just write one so we multiply
1 over here and then rearrange this equation what do we get white is equal to m this - will
go and recome plus so I'm + y k ok so therefore when n is less than 1 what is the coordinates
of the next value or what is the value of the next coordinate xk plus one will become
x k + 1 y k plus one will become like a plus i'm so that's how we get this value ok this
xk + 1 is equal to x k + 1 and y k + 1 is equal to y k + 10 that's how we get it ok
now this is about what is the slope is greater than 1 is greater than 1 what we do is his
sample the unit why that is we just increment the wife ordinate by one okay therefore we
know the delta why all ty as one and therefore y k plus one will become like a plus one now
we substitute this to find the xscape lesson similarly what we did over there you are going
to do it with the y coordinates so m is equal to delta why I wanted it ok and m is equal
to since we know the value of delta by which is difference is 13 just write one over we
just write like a + 1 x cube + 1 - x k ok so we just sandisk a + 1 - x key on the other
side is equal to one upon them rearrange this and send this xk - x k on the other side because
plus extreme so we know the value of x cube + 1 as x k + 1 by m therefore when m is greater
than one what happens is xk plus one that is the next quadrant becomes xk that is previous
coordinate + 1 by 10 and y k plus one becomes like a plus one that is a previous coordinate
plus one ok so what happens when m is equal to one that is the slope is one therefore
x delta h and delta why are one to one by one is one so y k plus one becomes like a
+ 1 and x k plus one becomes xscape plus this is very simple way we just increment both
the y co-ordinate annexe coordinate by one that's how we do it for when m is equal to
one now will take a look at the summary over so when n is less than 1 x co-ordinate is
a plus one next excotica ok and next why coordinate is like a + 1 m is equal to one next expert
in 18 sq + 1 and x y co-ordinate is like a + 1 and when n is greater than 1 x square
+ 1 is equal to x k flay ok so this is how we get the next x and y coordinates how you
find the slope y and minus five star upon x and minus extract - why is what 4 - 1 ok
that becomes 3 and x and minus x start that is 3 - 2 so that is one so it becomes 4 - 1
3 by 1 is equal to 3 so now we know the slope and is equal to 3 what does that tell u n
is equal to 3 business and is greater than one ok now since I'm is greater than 1 wheel
over there to do we have to just increment to find the next why coordinate what you are
to do just incremented by 1 so y k plus one becomes like a plus one ok now as well as
its starting point ok because we are using it from the starting point till we reach the
end. ok so what we do is why oneplus one that is k + 1 is equal to buy oneplus one so we
know what is the value of a one way you can see in the diagram what is the value of y
one by one is one ok so it becomes 1 + 1 which is too so we have got the value of the way
to coordinate which is 2 now I have to find the value of text to co-ordinate how do we
do it we just use the same formula so ja is greater than 1 x cube + 1 is equal to x k
+ 1 by mms 3 so what is the thing that you can check 2 + 1 by 3 + 1 by 3 that comes
approximately 2.33 have returned on 2.34 so now we have got the coordinates of text to
ny to that is the next. what are the coordinates. 342 ok no x2 y2 let's find out ex 3.3 first
let's just for simplicity was just checking will just find the slope of x 2, y 22 x and
y ok what will be the slow wind - y2 upon x and minus x to which comes to 4 minus 2
upon 3 minus 2.33 3334 which is 2.02 by 0.6 6667 approximately comes to 3 so slow because
it is part of the same you don't have to find the slope again and again I am just showing
you ok now since slope is greater than why we have to just follow the same formula ok
like a plus one that is the next coordinate which will be by 3 like a plus one ok so which
makes it why 2 + 1 and x k plus one will be xk plus one by m so here is equal to 2 so
to find y3 what way to do y2 plus one that comes to buy 3 is equal to in our case why
do we got to ok so 2 + 1 3 so we have got the value of by 3 by 3 is 3 okay nx3 just
substitute the value of x to which is 2.34 + 1 by m so slope is again 3.34 + 1 by 3 so
x3 wear 2.674 x 3 by 3 wicket 2.67 3 so this is how we get the no, one is a starting point
3, 4 is the ending. k is equal to two that is the second point we got is 2.342 and third
point where k is equal to 3 is 2.673 so when you pass a line through this we get a straight
line this is dda line drawing algorithm alright that's it for today guys you have any doubt
I mean any doubt feel free to ask them in the comment section below if you didn't understand
anything just go back in the video and share this video with your friends if you think
it is going to be helpful for them like this video and make sure you subscribe thank you
For more infomation >> Rise - Understudies, Episode 3: Old Fart Alert (Digital Exclusive) - Duration: 1:48. 
For more infomation >> [SONG] Monday Blues l MLP Equestria Girls Digital Series [HD] (Turkish Sub) ★EB★ - Duration: 3:17. 


For more infomation >> Edición Digital Houston 03/29/18 - Duration: 32:35. 


For more infomation >> Anything on the internet is a digital tattoo: Scott McNealy - Duration: 7:58.
For more infomation >> Experiment of Digital Design-A-1062 Assignment 2 XOR circuit - Duration: 0:27. 

For more infomation >> XEIKON DIGITAL PRESS - Duration: 0:12. 



Không có nhận xét nào:
Đăng nhận xét