Pixel-perfect sprites in 3D?

Blitz3D Forums/Blitz3D Programming/Pixel-perfect sprites in 3D?

asbjorn(Posted 2003) [#1]
Hi,

this has probably been up before, but I'd like to know if it is possible to achieve pixel-perfect placement of sprites.

That is - a pixel in a graphics file become exactly one pixel on the screen.

Thank you for any help you may be able to provide.


Hotcakes(Posted 2003) [#2]
Yes, for sure it is. But you need to get your scaling and camera positioning/zooming just right. Very possible, but not a whole heap of fun ;]


Michael Reitzenstein(Posted 2003) [#3]
No, on many cards this is not possible.


BlitzSupport(Posted 2003) [#4]
"Use the Code Archives, Luke"... :P

http://www.blitzbasic.com/codearcs/codearcs.php?code=64
http://www.blitzbasic.com/codearcs/codearcs.php?code=321
http://www.blitzbasic.com/codearcs/codearcs.php?code=456


FlameDuck(Posted 2003) [#5]
A more interesting question is "why would you want to"...


Zethrax(Posted 2003) [#6]
Most probably for a HUD.


jhocking(Posted 2003) [#7]
I have to go with "why would you want to?" Half the point of doing 2D graphics with 3D elements (sprites, quads, etc.) is to make them resolution independent. This would mean of course that there isn't an exact mapping of image pixels to screen pixels but that doesn't matter. The appearance is all that matters.