Thursday, July 9, 2015

Having Bugs in CG Code ?


I see a lot of people having problems in CG codes.

In codes like DDA, especially when it comes to the different cases.

And some have problems in deriving stuff in Bresenham's line algorithm for cases other than positive m, m<1.

And take it from me, try not to look too much into the "Left to Right" and "Right to Left" thingy in the line algorithms...try to generalize that concept in your implementation, and it will consequently decrease the number of cases.

And try some math before coding and understand what's actually going on.

And you can always mail me your code, I will help you out ! :)

My mail id : karuppiah7890@gmail.com

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.