Hey all.
I'm tyring to retrieve 2D grid cells based on a scanline triangle raster. I have it working for pixels but when it comes to add a cell offset of 1024 width of cell, it returns squares or bits of the triangle. I also have a working Bresenham's line algorithm with the cell off setand this works fine.
I used this to test my triangle points and they all check out. But I don't use the line function in the triangle no need for it there.
But for some reason I just cant apply the offset in the triangle raster. any tips or whats wrong. I've been at this for 25 hour hehe I'm ashamed.
I wrote the line algo from less info about 2 years ago in less time.
This is the info I'm following. It works perfect but I cant add an offset for pixels(cells in this case) being larger then 1