Single Surface Pixel Perfect 3D, How?

Blitz3D Forums/Blitz3D Programming/Single Surface Pixel Perfect 3D, How?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm looking for an explanation on Single Surface Pixel Perfect that can help me devise a new style of 3D GUI Lib.

The first milestone in the Library is to produce a set of 3D functions that can replace Blitz 2D Image and Graphic Drawing Commands. The first goal in the milestone is to create a function in which you pass a Surface Handle, Image Handle, StartCoords,Rect_X,Rect_Y,rect_width,rect_height. With these parameters the function should be able to create a Pixel Perfect Sprite on the surface appropiatelty distanced from the camera.

So far I've identified a set variables involved with creating a Single Surface Pixel Perfect Sprite:

Screen_Width, Screen_Height
Viewport_Width, Viewport_Height
Sprite_Width, Sprite_Height (Common Surface)
Texture_Width, Texture_Height (Divisible by 2)
VertexTexCoords_U(0-3), VertexTexCoords_V(0-3)
Sprite_ To_Camera_Distance

It would seem that with this set of variables one could formulate in infallible Single Surface Pixel Perfect Sprite Solution (formula, algorithm, etc). I've examined several Freely available Pixel Perfect Sprite systems. But the Solution isnt as obvious as I would like. I know the solution is within the set of variables. I 'm stumped!

Any help from the Blitz Gurus would be appreciated.