No video

Sutherland-Hodgman Polygon Clipping Algorithm

  Рет қаралды 136,159

The BootStrappers

The BootStrappers

Күн бұрын

Computer Graphics : Sutherland-Hodgman Polygon Clipping Algorithm
Thanks again for watching ! If you liked it pls make it a point to comment below. Keeps me going :)

Пікірлер: 158
@rishabsingh2475
@rishabsingh2475 7 жыл бұрын
an entire lecture thing in just 8 min. just wow. much helpful thanks a lot .
@FPChris
@FPChris 2 жыл бұрын
You didn’t explain how you clipped the low left corner. V5’ would wrap to V3’ not magically magically create the corner.
@yetanother7428
@yetanother7428 Ай бұрын
I was thinking the same thing. (Also, I think you meant V2', instead of V3'). This video is wrong. If anyone is looking around, to save time, I found a video with the correct explanation of the algorithm: kzfaq.info/get/bejne/e9ulqppjvtPZYIE.html
@CMSARAN
@CMSARAN 4 жыл бұрын
The video was an good guide for me during my semester exam i thank you for your help and i request you to upload this kind of video with updated version of items frequently EVERY ENGINEER SHOULD WATCH
@nabeelrao2638
@nabeelrao2638 7 жыл бұрын
I have an exam tomorrow and wasn't being able to understand this from the book. But now i clearly understood it. Thanks a lot for this informative video!!!
@anushkamittal4132
@anushkamittal4132 6 жыл бұрын
Amazingly clarified..I must appreciate your way of teaching so politely . Thankyou so mch sir 😇
@talsveta
@talsveta 9 жыл бұрын
Another scenario should be taken into account is the case when both vertices are outside the clipping area, while the line they form *does* cross the clipping area. I guess in this case you should not discard both v1 and v2
@TheBootStrappers
@TheBootStrappers 9 жыл бұрын
talsveta yeah in that case you have to assume a point on the line crossing as a vertices of the polygon(hypothetically) and then break that line into the cases mentioned in the video. Thank for pointing it out though:)
@arpanmajumder655
@arpanmajumder655 7 жыл бұрын
Yeah,I was also thinking the same! Great tutorial otherwise!
@pe_P
@pe_P 2 жыл бұрын
Thankyou for the lecture..👍 And your voice is so beautiful🌝
@umangpancholi5888
@umangpancholi5888 3 жыл бұрын
Thanks a lot! Also, your voice is brilliant XD
@markwoo9845
@markwoo9845 8 жыл бұрын
good tutorial for Sutherland-Hodgman Algorithm. thank you, you really help me a lot
@TheBootStrappers
@TheBootStrappers 8 жыл бұрын
+Mark Woo Thank you :)
@dhruvtonemare8473
@dhruvtonemare8473 4 ай бұрын
Thank you sir simple and easy video with kind understanding ❤😊
@ostaphrytsyshyn3199
@ostaphrytsyshyn3199 8 жыл бұрын
Considering points as "inside" and "outside" will not work in all cases. Check this image. i.imgur.com/e6S0V20.png Segment ED is intersecting rectangle, but nither E nor D is inside the rect.
@jinxblaze
@jinxblaze 8 жыл бұрын
+Ostap Hrytsyshyn yup
@anshulhedaoo8332
@anshulhedaoo8332 6 жыл бұрын
did you get any solution of this bro???
@LionKILLGER
@LionKILLGER 6 жыл бұрын
The solution is to NOT check the 4 cases according to the rectangle but according to the clipping edge I guess. If you have a closer look at the pseudocode provided by e.g. wikipedia ( en.wikipedia.org/wiki/Sutherland%E2%80%93Hodgman_algorithm#Pseudo_code ) you quickly see that one has to pick an edge of the clipping polygon. E.g.: Take the 1. Clipping Edge (e.g. left edge) -> now take as input points all points of the polygon and check the 4 cases against this edge -> i.e. if its left of the edge -> its outside, if its right of it -> its inside -> add the new intersection points like the cases tell you and you get a new list L' -> you take that list as the input list for the next iteration Take the 2. Clipping Edge (e.g. top edge) and as point input list L' from the previous iteration. -> now perform the same steps as before and get the next output list L' ... continue this procedure for the other 2 edges of your rectangle. I think following the steps like I wrote will indeed capture the edge by E and D. ( Please correct me if I am wrong because I also need to know the correct solution :D )
@simranguliani1609
@simranguliani1609 3 ай бұрын
would be great if you have given these in written points,but it was such an easy explanation ,thanks
@mikhailsartakov4750
@mikhailsartakov4750 Ай бұрын
Brilliant video!
@varshathaya2515
@varshathaya2515 6 ай бұрын
very understandable. Thank you 🙏
@ashwaniprasad7381
@ashwaniprasad7381 8 жыл бұрын
Just in one word "AWESOME"
@TheBootStrappers
@TheBootStrappers 8 жыл бұрын
+ashwani prasad just in two words "THANK YOU"
@akanshachaurasia3329
@akanshachaurasia3329 6 жыл бұрын
I really liked your lectures they are very beneficial..... I request you to pls upload more videos on computer graphics
@AndrewJoemon
@AndrewJoemon 3 жыл бұрын
thank you for this video... wonderful explanation..
@Aziz00747
@Aziz00747 9 жыл бұрын
Thank you so much! really well explained! God bless u!
@ruxandraciortea9475
@ruxandraciortea9475 2 жыл бұрын
thank you sir, very nice explanation! very useful!
@amaanhamza1776
@amaanhamza1776 5 жыл бұрын
Tmaari awaaaz, uffff, agar natural hai to im sorry, or ye jaanke istarah ki nikaal rhe ho to, katai jeher ho tum
@abishekh_kc
@abishekh_kc 5 жыл бұрын
thanks buddy... well explained without any doubts.
@talsveta
@talsveta 9 жыл бұрын
Thank you very much! It was great and well explained! Just one other note - I think the last edge you made between the vertices v5' and v3' is not trivial and worth to mention.. I.e. if those vertices had not been signed with a dash, you would have needed to connect them with one direct edge and not over the actually 2 edges that are formed by the surroundings of the clipping area
@TheBootStrappers
@TheBootStrappers 9 жыл бұрын
talsveta sure thanks !
@parvinderyadav007
@parvinderyadav007 8 жыл бұрын
+talsveta Yess you are right ! i think that's the small mistake done by talented buddy :D
@ashankavindu2409
@ashankavindu2409 Жыл бұрын
Thank you very much sir ❤️❤️❤️❤️
@journeytolive8386
@journeytolive8386 8 жыл бұрын
their is a confusion between inside to outside point. which one we have to take you didnt mention in the lecture......
@abrahamjoseph6445
@abrahamjoseph6445 Жыл бұрын
I like to point out a small mistake in in 4 th example The clipping from inside to outside we have to save the inside point v1dash instead of v2dash
@arpityadav1847
@arpityadav1847 5 жыл бұрын
Nice explanation
@omarmoataz
@omarmoataz 8 жыл бұрын
This was great, thanks.
@prateekparabify
@prateekparabify 9 жыл бұрын
Very nicely explained . very precise
@TheBootStrappers
@TheBootStrappers 9 жыл бұрын
prateek parab thank you brother
@this_rishi
@this_rishi 6 жыл бұрын
Thanks a lot for the video... It was really helpful.
@Xaknoth
@Xaknoth 8 жыл бұрын
How does this algorithm handle the case when one or more corners of the rectangles is part of the clipping? You just included the corner without any explanation in the example you solved. One other case that is not handled is when both v1 and v2 are outside the clipping window but the edge between them intersects the clipping window.
@ayeshaparyani1549
@ayeshaparyani1549 8 жыл бұрын
To solve your first query, a corner of the window is supposed to be within its boundaries. So it's treated as 'inside'. For your second question, Sutherland Hodgeman polygon clipping algorithm clips a polygon with respect to one boundary at a time. So you actually need to repeat this four times for a rectangular window. In the video, he has tried to solve it in one go which would create confusion. I suggest you solve this case considering one boundary at a time. It definitely works. However be careful that you figure out 'inside' and 'outside' vertices considering only the boundary then and not the entire polygon.
@ayeshaparyani1549
@ayeshaparyani1549 8 жыл бұрын
Not the entire window* i mean
@renzocoppola4664
@renzocoppola4664 7 жыл бұрын
it works if you repeat the process in EACH edge-boundary, not everything at once.
@zandere1
@zandere1 5 жыл бұрын
@@renzocoppola4664 Yep, and you have to treat them as infinitely long
@filat239
@filat239 3 жыл бұрын
I like that. Well explained!
@VarshaGupta-ku4ez
@VarshaGupta-ku4ez 7 жыл бұрын
please upload the video of midpoint circle drawing algorithm
@kladimirovo
@kladimirovo 9 жыл бұрын
very good explanation, thanks
@TheBootStrappers
@TheBootStrappers 9 жыл бұрын
Kladimir happy to help!
@teemaroronoa9384
@teemaroronoa9384 8 жыл бұрын
Was useful and helpful
@rajeshprajapati6662
@rajeshprajapati6662 Жыл бұрын
08:22 So, initially this polygon had 5 sides. After clipping, the polygon has 7 sides. Right ? or is it 6 ?
@abhishek1verma
@abhishek1verma 6 жыл бұрын
very good explanation
@priyanka9133
@priyanka9133 6 жыл бұрын
Thankyou very much....😊
@kaltwarraith5172
@kaltwarraith5172 2 жыл бұрын
very useful, one note, what you pronounce as v1 dash is more commonly called v1 prime
@allurunsprasad9099
@allurunsprasad9099 8 жыл бұрын
it really helped me.. thanks a lot man
@krcreddy1671
@krcreddy1671 7 жыл бұрын
excellent video bro. nice keep it up...
@thangklen
@thangklen 7 жыл бұрын
when V1 goes from outside to inside V2, the intersection is actually V1', not V2'
@BhupendraChoudharyczar
@BhupendraChoudharyczar 7 жыл бұрын
best video on SHPCA...
@DayIight.
@DayIight. 2 жыл бұрын
Legend
@sahirsharma4541
@sahirsharma4541 3 жыл бұрын
Good job!
@apurbaghosh4856
@apurbaghosh4856 8 жыл бұрын
thanks for the video. it helped a lot.
@kumarabhishek4735
@kumarabhishek4735 8 жыл бұрын
very nice mann
@Alex-vi6fr
@Alex-vi6fr 6 жыл бұрын
how can you tell the direction of the line when the question is not given any direction at all? :/
@abhinavnarendrakumar591
@abhinavnarendrakumar591 5 жыл бұрын
Great tutorial, very helpful
@vibecatcher4416
@vibecatcher4416 4 жыл бұрын
Wow , amazing sir ,, thank you 🙏🏻
@jarikosonen4079
@jarikosonen4079 3 жыл бұрын
This looks like something to test. What would happen if there is a hole in the polygon? Looks like O^2 problems. If v1&v2 both outside, but their segment crossing the corner?
@ahmedal-ahmed7606
@ahmedal-ahmed7606 7 жыл бұрын
Excellent Video , Thanks Bro (Y)
@runasing3293
@runasing3293 7 жыл бұрын
please upload 2-D and 3-D transformation lecture too....its helping a lot
@anmolmangat9128
@anmolmangat9128 6 жыл бұрын
I have watched a few videos of this channel and they are amazing You should publish a full fledged course on Computer Graphics as there is no good source of it on youtube Videos were
@ganeshkolase7203
@ganeshkolase7203 6 жыл бұрын
Nice explanation.. keep it up👍👍👍👍
@zlayaprizlaya
@zlayaprizlaya 7 жыл бұрын
What about the case if all points are outside the window and window is completely inside the polygon?
@fasalurahman697
@fasalurahman697 4 жыл бұрын
Simple mistake last step V5 -V1 not V5' its (V1') Good work bro..
@cristinjhon8444
@cristinjhon8444 4 жыл бұрын
How did you determined the inside and outside points !!!!!!say it first
@kumaripuja7433
@kumaripuja7433 8 жыл бұрын
U said for 'inside to outside' that we consider the outside point but while solving problem u saved the inside point.... So which one we hv to save???
@kshitijmakwana9707
@kshitijmakwana9707 9 жыл бұрын
there seems to be a minor error at time 3:40 in video for rule 'd' as you ask us to save v2' but while solving the sum you consider points v1' as at 6:55 you take point v5' instead of v1' oh !! and love your videos................Good Job :) couldnt find for liang barsky algorithm though please share the link unless you havent made one if so please make one THANK YOU
@singhkamalpreet
@singhkamalpreet 9 жыл бұрын
+Kshitij Makwana sahi a 22
@ankitambekar6073
@ankitambekar6073 6 жыл бұрын
Good Job..
@shadizebari8161
@shadizebari8161 9 жыл бұрын
what about if we have a non-rectangular clipping window?
@grinalpatel1012
@grinalpatel1012 8 жыл бұрын
Well understood…plz Post liang barsky line clipping
@Niteshkumar-zd3kr
@Niteshkumar-zd3kr 5 жыл бұрын
The polygon you have used for clipping is a concave polygon!!
@hiteshpanjwani1613
@hiteshpanjwani1613 6 жыл бұрын
Gr8 one dude
@manognamona9959
@manognamona9959 5 жыл бұрын
In the rule 4 sir u have mentioned v1 inside and v2 outside and we must save v2' in the polygon example the line from v5 to v1 ,v5 is inside and v1 is outside according to rule 4 v1' must be saved but sir y did u mentioned v5'
@sagarmukherjee6297
@sagarmukherjee6297 7 жыл бұрын
its wrong the last part v2' should be connected to v5' directly how can a line bend between to point in clipping
@d.j.peters
@d.j.peters 8 жыл бұрын
It will fail if v0 ,v1,v2 (a triangle larger as the clip rectangle) all outside the 2D screen rectangle or 3D view frustum.
@AryanSingh2512.
@AryanSingh2512. 5 жыл бұрын
DJLinux007 that’s why we have another algorithms.
@vinothkumar7
@vinothkumar7 9 жыл бұрын
Is the algorithm is will work for all complicated shapes??? Or only works on any shapes clipped by rectangle shape??? @The BootStrappers
@antraverma6671
@antraverma6671 8 жыл бұрын
window is nt visible... :/
@jaiminmistry5240
@jaiminmistry5240 8 жыл бұрын
how can you go vertical form v2' and then horizontal ??( 8:00) Vertices of the square polygon have not been saved.
@Mahadeva...
@Mahadeva... 5 жыл бұрын
U have nice communication skills though... And very nicely presented... 👍👌
@trg3-149
@trg3-149 5 жыл бұрын
realy helpfull for me! thanks
@initpwn
@initpwn 7 жыл бұрын
+The BootStrappers, 8:01 tho,... That v2' & v5' should be joined connected directly... Right? :\ Anyway, awesome presentation... really helped me! :) :')
@abhaychandrasingha3448
@abhaychandrasingha3448 6 жыл бұрын
awsome video
@abuelkheirshorts252
@abuelkheirshorts252 2 жыл бұрын
thanks brother
@bhavyagosalia4890
@bhavyagosalia4890 5 жыл бұрын
thanks mahn ....helped a lot
@harshpreetbakshi8935
@harshpreetbakshi8935 8 жыл бұрын
nice explanation...
@sanduferi3225
@sanduferi3225 5 жыл бұрын
God bless you !
@cristinjhon8444
@cristinjhon8444 4 жыл бұрын
There is some mistake in this video!!!!! V3 to v4 there should be saved v4' but you saved v3' and there is also mistakes in v5 to v1
@iyapa889
@iyapa889 Жыл бұрын
yes how can we save that point ?
@ashishmaxmaxal312
@ashishmaxmaxal312 7 жыл бұрын
Can we start from any vertex of polygon? or what would be the direction to move (clockwise or anti.C)?
@saisaran1882
@saisaran1882 8 жыл бұрын
well explained.... also post liang barsky algo...pls...
@1step4ward96
@1step4ward96 8 жыл бұрын
really helping tutorial... thankyou (y)
@TheBootStrappers
@TheBootStrappers 8 жыл бұрын
Thank you :)
@mohamedhossam921
@mohamedhossam921 5 жыл бұрын
i think according to rules when goes from v3 to v4 we make v4' so how we make 2nd V4' when we go from v4 to v5 that should make also V4' that will make 2 v'4 ???
@minhajuddindanish2167
@minhajuddindanish2167 4 жыл бұрын
It's awsm bro
@renzocoppola4664
@renzocoppola4664 7 жыл бұрын
joining the end points? you mean to reiterate the algorithm?
@renzocoppola4664
@renzocoppola4664 7 жыл бұрын
Uhm, no. You know about this case after checking if it's two sides off
@sohammondal578
@sohammondal578 9 жыл бұрын
Look the video is very good but there was a problem in the sheet 3 where you did not draw the window..How are gonna know if the line is going in or out if you dont show the window ?
@TheBootStrappers
@TheBootStrappers 9 жыл бұрын
Soham Mondal sorry buddy I'll take care of it next time!
@sohammondal578
@sohammondal578 9 жыл бұрын
yes,plz !!
@naimaakther259
@naimaakther259 6 жыл бұрын
Thanks
@devkaran1448
@devkaran1448 8 жыл бұрын
Please upload Liang barsky algorithm
@mayurinegi9624
@mayurinegi9624 6 жыл бұрын
Isn't the last point which you saved, suppose to be v1'?
@akshaaaaaaaaaaaaaaay
@akshaaaaaaaaaaaaaaay 7 жыл бұрын
At 3:50 it should be v1 dash not v2 dash. Thnx for great lec.
@sushmitaroy9684
@sushmitaroy9684 7 жыл бұрын
thank you
@ElChavale
@ElChavale 5 жыл бұрын
Which is the link for line clipping?
@mdsayedahammed2367
@mdsayedahammed2367 7 жыл бұрын
Amazing !!
@bonny27196
@bonny27196 6 жыл бұрын
Awesome
@aadarshgupta2253
@aadarshgupta2253 7 жыл бұрын
You have to follow LRBT. Otherwise you can't say about the v2' and v1'.
@anantsoni6335
@anantsoni6335 6 жыл бұрын
Helpful.....
@FurqaanShafi
@FurqaanShafi 5 жыл бұрын
thanks broda!!!
@sunny10528
@sunny10528 9 жыл бұрын
After clipping , in the final diag you didn't name the vertex between v2' and v5' What about that?
@tirtha2chester
@tirtha2chester 9 жыл бұрын
SAYAN BOSE bhaaiiii aar poris na
@christopherlusiga2112
@christopherlusiga2112 7 жыл бұрын
Thank u bro
@shubhammittal5164
@shubhammittal5164 7 жыл бұрын
Hehe In the end, V2' and V5' ke centre wala point kaise liya ?
@blackaura345
@blackaura345 9 жыл бұрын
Concise explanation, sir. But be a bit fast.
@TheBootStrappers
@TheBootStrappers 9 жыл бұрын
blackaura345 sure ! Will take note of it in the upcoming videos
@halfway16
@halfway16 9 жыл бұрын
The BootStrappers This is a good tutorial bro, no need to be faster because there is some people who dont understand english well.. Keep the good work!!
Cohen-Sutherland Line Clipping Algorithm
12:17
The BootStrappers
Рет қаралды 44 М.
Weiler-Atherton Polygon Clipping Algorithm
8:51
The BootStrappers
Рет қаралды 117 М.
SCHOOLBOY. Последняя часть🤓
00:15
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 12 МЛН
Советы на всё лето 4 @postworkllc
00:23
История одного вокалиста
Рет қаралды 5 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 45 МЛН
Harley Quinn lost the Joker forever!!!#Harley Quinn #joker
00:19
Harley Quinn with the Joker
Рет қаралды 28 МЛН
Computer Graphics: Lecture #19: Sutherland- Hodgeman Polygon clipping
13:59
How Dijkstra's Algorithm Works
8:31
Spanning Tree
Рет қаралды 1,3 МЛН
COHEN SUTHERLAND LINE CLIPPING IN COMPUTER GRAPHICS
25:01
Sundeep Saradhi Kanthety
Рет қаралды 184 М.
SHA: Secure Hashing Algorithm - Computerphile
10:21
Computerphile
Рет қаралды 1,2 МЛН
Installing The Sonic Drive-In Operating System
36:26
Bringus Studios
Рет қаралды 524 М.
SUTHERLAND HODGEMAN POLYGON CLIPPING ALGORITHM IN COMPUTER GRAPHICS
33:37
Sundeep Saradhi Kanthety
Рет қаралды 134 М.
Computer Graphics: Lecture #17: Cohen-Sutherland Line Clipping
24:22
Jyothi Mandala
Рет қаралды 49 М.
The Bingo Paradox: 3× more likely to win
30:15
Stand-up Maths
Рет қаралды 101 М.
SCHOOLBOY. Последняя часть🤓
00:15
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 12 МЛН