Pixel-perfect sprites in 3D?
Blitz3D Forums/Blitz3D Programming/Pixel-perfect sprites in 3D?
| ||
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. |
| ||
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 ;] |
| ||
No, on many cards this is not possible. |
| ||
"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 |
| ||
A more interesting question is "why would you want to"... |
| ||
Most probably for a HUD. |
| ||
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. |