Originally Posted by wossname
So much criticism, did I inadvertently upset someone?
Its pretty obvious taht the texture does have perspective all you have to do is look at the corners of the image, but anyway I have rendered a chessboard just to prove it. See attachment.
The black dots are a problem because i am scanning lines that are parallel to the sides of the quad at the moment not horizontally and vertically. This is something I need to fix soon and it was a strategy in mind when I wrote this but I had to make sure my pixel mapping was right so I just used the trajectories to check. Its still bloody quick though :D
It'll be even faster when I work out the orthographics scan lines :D i'll probably keep 2 arrays, one for xstart another for xstop, both with a length equal to the height of the destination bitmap, then convert all the pixels from start to stop adn then move down 1 line. I'll jsut need to work out how to assign the start and stop values from the quads. I can do this with the trajectories I already have though so this means less floating point operations and more ptr++ :D
When I'm done with this I hope to be able to get 90fps on this machine for a quad of the same size as above. And we won't have to worry about pointers running off the screen either.