Hi guys,
i developed my scanline road engine but now i’m blocked
I can not slide the road! the movement is done by simply changing the colors and all this is fine if the road is straight; instead if the road is curved then does not approach
how can I do?
for(i=0; i < horizon; i++)
{
get line’s x0, calculated with zBuffer and scaleFactor
get line’s x1, calculated with zBuffer and scaleFactor
get line’s color
draw line with x0…x1…y
}
repeat…the road runs but the curves do not.
Help